Function

CVPixelBufferCreateWithIOSurface(_:_:_:_:)

Call to create a single pixel buffer for a passed-in IOSurface.

Declaration

func CVPixelBufferCreateWithIOSurface(_ allocator: CFAllocator?, _ surface: IOSurfaceRef, _ pixelBufferAttributes: CFDictionary?, _ pixelBufferOut: UnsafeMutablePointer<Unmanaged<CVPixelBuffer>?>) -> CVReturn

Discussion

The CVPixelBuffer will retain the IOSurface.