OTVideoCaptureConsumer

あるの消費者を定義する OTVideoCapture オブジェクトがある。

方法

名称 説明
consumeFrame:(frame) 1フレームを消費します。
consumeImageBuffer:orientation:timestamp:metadata:(frame, orientation, ts, metadata) → {BOOL} CoreVideoの画像バッファを消費します。

consumeFrame:(frame)

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

パラメータ:
名称 タイプ 説明
frame OTVideoFrame * 消費すべきフレーム。

consumeImageBuffer:orientation:timestamp:metadata:(frame, orientation, ts, metadata) →{BOOL}

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

パラメータ:
名称 タイプ 説明
frame CVImageBufferRef 使用する CVImageBufferRef。フレームのピクセル型は、kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange、kCVPixelFormatType_420YpCbCr8BiPlanarFullRange、 kCVPixelFormatType_420YpCbCr8Planar、kCVPixelFormatType_420YpCbCr8PlanarFullRange、kCVPixelFormatType_32ARGB、 kCVPixelFormatType_32BGRA、または kCVPixelFormatType_24RGB のいずれかです。
orientation OTVideoOrientation フレームの向き。
ts CMTime フレームのタイムスタンプ。
metadata NSData * フレームのメタデータ。
リターンズ

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