Contents

CVPixelBufferReleasePlanarBytesCallback

Defines a pointer to a pixel buffer release callback function, which is called when a pixel buffer created by Cvpixelbuffercreatewithplanarbytes(_:_:_:_:_:_:_:_:_:_:_:_:_:_:_:) is released.

Declaration

typealias CVPixelBufferReleasePlanarBytesCallback = (UnsafeMutableRawPointer?, UnsafeRawPointer?, Int, Int, UnsafeMutablePointer<UnsafeRawPointer?>?) -> Void

Parameters

Discussion

You would declare a callback named MyPixelBufferReleasePlanarBytes like this:

Discussion

You use this callback to release the pixels and perform any other cleanup when a pixel buffer is released.

See Also

Callbacks