PixelBufferYUV
public class PixelBufferYUV : Output
PixelBufferYUV output presents provided OffscreenRenderTarget into the CVPixelBuffer with defined pixelFormatType and orientation.
Uses CGImage and Accelerate to speedup orientation and color space transformations.
-
Declaration
Swift
public enum PixelFormat -
Create pixel buffer YUV output
Declaration
Swift
public init( onPresent: @escaping (CVPixelBuffer?) -> Void, pixelFormatType: PixelFormat = .k420YpCbCr8BiPlanarFullRange, orientation: CGImagePropertyOrientation = .up )Parameters
onPresentcallback is fired when frame is presented
pixelFormatTypeYUV pixel format
orientationframe orientation
-
Declaration
Swift
public func present(renderTarget: OffscreenRenderTarget)
PixelBufferYUV Class Reference