OTVideoCaptureConsumer
Définit un consommateur d'un OTVideoCapture objet.
Méthodes
| Nom | Description |
|---|---|
consumeFrame:(frame) |
Consomme une image. |
consumeImageBuffer:orientation:timestamp:metadata:(frame, orientation, ts, metadata) → {BOOL} |
Utilise un tampon d'image CoreVideo. |
consumeFrame : (frame)
Consomme une image.
Paramètres :
| Nom | Type | Description |
|---|---|---|
frame |
OTVideoFrame * | Le cadre à consommer. |
consumeImageBuffer:orientation:timestamp:metadata:(image, orientation, ts, metadata) → {BOOL}
Utilise un tampon d'image CoreVideo.
Paramètres :
| Nom | Type | Description |
|---|---|---|
frame |
CVImageBufferRef | 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 |
OTVideoOrientation | L'orientation du cadre. |
ts |
CMTime | L'horodatage de l'image. |
metadata |
NSData * | Les métadonnées de l'image. |
Retours :
OUI si la mémoire tampon d'image a été chargée avec succès, ou NON en cas d'échec.