Camera
public class Camera : Input, Attachable
extension Camera: CameraDeviceVideoDelegate
Camera input takes frames from CameraDevice
and pushes them into the realtime processor.
Uses asynchronous processor, so frames can be dropped in case of Player
latency.
-
Create camera input
Declaration
Swift
public init(cameraDevice: CameraDevice)
Parameters
cameraDevice
provides frames feed
-
Declaration
Swift
public func frameProcessor() -> BNBFrameProcessor?
-
Declaration
Swift
public func attach()
-
Declaration
Swift
public func detach()
-
Declaration
Swift
public func push(pixelBuffer: CVPixelBuffer, fullImage: BNBFullImageData)