Contents

CVOpenGLTextureCacheCreateTextureFromImage(_:_:_:_:_:)

Creates a CVOpenGLTexture object from an existing Cvimagebuffer Q40.

Declaration

func CVOpenGLTextureCacheCreateTextureFromImage(_ allocator: CFAllocator?, _ textureCache: CVOpenGLTextureCache, _ sourceImage: CVImageBuffer, _ attributes: CFDictionary?, _ textureOut: UnsafeMutablePointer<CVOpenGLTexture?>) -> CVReturn

Parameters

  • allocator:

    The CFAllocatorRef to use for allocating the CVOpenGLTexture object. May be NULL.

  • textureCache:

    The texture cache object that will manage the texture.

  • sourceImage:

    The source CVImageBuffer for which to create an CVOpenGLTexture.

  • attributes:

    This parameter is not currently supported and is for future use only.

    The desired buffer attributes for the CVOpenGLTexture.

  • textureOut:

    Upon return, contains the newly created texture.

Return Value

Returns kCVReturnSuccess on success.

See Also

Functions