| Cumple con | NSObject |
| Declarado en | OTVideoKit.h |
Visión general
Define un objeto que utiliza un objeto OTVideoCapture.
– consumeFrame: método obligatorio
Consume un fotograma.
- (void)consumeFrame:(nonnull OTVideoFrame *)frame
Parámetros
frame |
El fotograma que hay que consumir. |
Declarado en
OTVideoKit.h
– consumeImageBuffer:orientation:timestamp:metadata: método obligatorio
Consume un búfer de imagen de CoreVideo.
- (BOOL)consumeImageBuffer:(nonnull CVImageBufferRef)frame orientation:(OTVideoOrientation)orientation timestamp:(CMTime)ts metadata:(NSData *_Nullable)metadata
Parámetros
frame |
El CVImageBufferRef que se va a utilizar. El tipo de píxel del fotograma debe ser uno de los siguientes: kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_420YpCbCr8Planar, kCVPixelFormatType_420YpCbCr8PlanarFullRange, kCVPixelFormatType_32ARGB, kCVPixelFormatType_32BGRA o kCVPixelFormatType_24RGB. |
orientation |
La orientación del marco. |
ts |
La marca de tiempo del fotograma. |
metadata |
Los metadatos del fotograma. |
Valor devuelto
SÍ si el búfer de imagen se ha cargado correctamente, o NO en caso de error.
Declarado en
OTVideoKit.h