Frame
public class Frame<T> : Output where T : FramePresentable
Frame output presents provided OffscreenRenderTarget
into the generic frame: UIImage
, RenderedFrame
, CIImage
.
Recommended to use PixelBuffer
output insted, because of performance.
-
Create frame output
Declaration
Swift
public init(onPresent: @escaping (T?) -> Void)
Parameters
onPresent
callback is fired when frame is presented
-
Declaration
Swift
public func present(renderTarget: OffscreenRenderTarget)