CVOpenGLTextureCacheCreateTextureFromImage(_:_:_:_:_:)
Creates a CVOpenGLTexture object from an existing Cvimagebuffer Q40.
Declaration
func CVOpenGLTextureCacheCreateTextureFromImage(_ allocator: CFAllocator?, _ textureCache: CVOpenGLTextureCache, _ sourceImage: CVImageBuffer, _ attributes: CFDictionary?, _ textureOut: UnsafeMutablePointer<CVOpenGLTexture?>) -> CVReturnParameters
- allocator:
The
CFAllocatorRefto use for allocating theCVOpenGLTextureobject. May beNULL. - textureCache:
The texture cache object that will manage the texture.
- sourceImage:
The source
CVImageBufferfor which to create anCVOpenGLTexture. - 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.