| Conforme à | NSObject |
| Déclaré dans | OTVideoKit.h |
Vue d'ensemble
Définit un consommateur d'un objet OTVideoCapture.
– consumeFrame: méthode obligatoire
Consomme une image.
- (void)consumeFrame:(nonnull OTVideoFrame *)frame
Paramètres
frame |
Le cadre à consommer. |
Déclaré à
OTVideoKit.h
– consumeImageBuffer:orientation:timestamp:metadata: méthode obligatoire
Utilise un tampon d'image CoreVideo.
- (BOOL)consumeImageBuffer:(nonnull CVImageBufferRef)frame orientation:(OTVideoOrientation)orientation timestamp:(CMTime)ts metadata:(NSData *_Nullable)metadata
Paramètres
frame |
La référence CVImageBufferRef à utiliser. Le type de pixel de l'image doit être l'un des suivants : kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange, kCVPixelFormatType_420YpCbCr8BiPlanarFullRange, kCVPixelFormatType_420YpCbCr8Planar, kCVPixelFormatType_420YpCbCr8PlanarFullRange, kCVPixelFormatType_32ARGB, kCVPixelFormatType_32BGRA ou kCVPixelFormatType_24RGB. |
orientation |
L'orientation du cadre. |
ts |
L'horodatage de l'image. |
metadata |
Les métadonnées de l'image. |
Valeur de retour
OUI si la mémoire tampon d'image a été chargée avec succès, ou NON en cas d'échec.
Déclaré à
OTVideoKit.h