OTVideoCaptureConsumer
Defines a the consumer of an OTVideoCapture object.
Methods
| Name | Description |
|---|---|
consumeFrame:(frame) |
Consumes a frame. |
consumeImageBuffer:orientation:timestamp:metadata:(frame, orientation, ts, metadata) → {BOOL} |
Consumes a CoreVideo image buffer. |
consumeFrame:(frame)
Consumes a frame.
Parameters:
| Name | Type | Description |
|---|---|---|
frame |
OTVideoFrame * | The frame to consume. |
consumeImageBuffer:orientation:timestamp:metadata:(frame, orientation, ts, metadata) → {BOOL}
Consumes a CoreVideo image buffer.
Parameters:
| Name | Type | Description |
|---|---|---|
frame |
CVImageBufferRef | The CVImageBufferRef to consume. The frame's pixel type must be one of the following kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_420YpCbCr8Planar, kCVPixelFormatType_420YpCbCr8PlanarFullRange, kCVPixelFormatType_32ARGB, kCVPixelFormatType_32BGRA, or kCVPixelFormatType_24RGB. |
orientation |
OTVideoOrientation | The orientation of the frame. |
ts |
CMTime | The frame timestamp. |
metadata |
NSData * | The frame metadata. |
Returns:
YES if the image buffer consumed successfully, or NO upon failure.