準拠規格 NSObject
宣言された場所 OTVideoKit.h

概要

OTVideoCapture オブジェクトのコンシューマーを定義します。

– consumeFrame: 必須メソッド

1フレームを消費します。

- (void)consumeFrame:(nonnull OTVideoFrame *)frame

パラメータ

frame 消費すべきフレーム。

登録地

OTVideoKit.h

– consumeImageBuffer:orientation:timestamp:metadata: 必須メソッド

CoreVideoの画像バッファを消費します。

- (BOOL)consumeImageBuffer:(nonnull CVImageBufferRef)frame orientation:(OTVideoOrientation)orientation timestamp:(CMTime)ts metadata:(NSData *_Nullable)metadata

パラメータ

frame 使用する CVImageBufferRef。フレームのピクセル型は、kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange、kCVPixelFormatType_420YpCbCr8BiPlanarFullRange、 kCVPixelFormatType_420YpCbCr8Planar、kCVPixelFormatType_420YpCbCr8PlanarFullRange、kCVPixelFormatType_32ARGB、 kCVPixelFormatType_32BGRA、または kCVPixelFormatType_24RGB のいずれかです。
orientation フレームの向き。
ts フレームのタイムスタンプ。
metadata フレームのメタデータ。

戻り値

画像バッファの読み込みに成功した場合は「YES」、失敗した場合は「NO」を返します。

登録地

OTVideoKit.h