継承元 NSObject
宣言された場所 OTVideoKit.h

概要

動画のフレームを定義します。詳しくは [OTVideoRender renderVideoFrame:] そして [OTVideoCaptureConsumer consumeFrame:].

OTVideoFrame オブジェクトのプロパティ

planes

映像フレーム内に並んだ飛行機の数々。

@property (nonatomic, strong) NSPointerArray *planes

登録地

OTVideoKit.h

timestamp

動画フレームのタイムスタンプ。

@property (nonatomic, assign) CMTime timestamp

登録地

OTVideoKit.h

orientation

動画フレームの向き。

@property (nonatomic, assign) OTVideoOrientation orientation

登録地

OTVideoKit.h

format

動画フレームのフォーマット。

@property (nonatomic, strong) OTVideoFormat *format

登録地

OTVideoKit.h

metadata

この動画フレームに関連付けられているメタデータ(ある場合)。 (非推奨: (このプロパティは非推奨となっており、ライブラリの将来のバージョンで削除される予定です。)

@property (nonatomic, readonly) NSData *metadata

登録地

OTVideoKit.h

OTVideoFrame オブジェクトのインスタンス化

– init

OTVideoFrame オブジェクトを初期化します。

- (nonnull id)init

登録地

OTVideoKit.h

– initWithFormat:

指定されたフォーマットで OTVideoFrame オブジェクトを初期化します。

- (nonnull id)initWithFormat:(nonnull OTVideoFormat *)videoFormat

パラメータ

videoFormat その動画フレームで使用されている動画形式。

登録地

OTVideoKit.h

– setPlanesWithPointers:numPlanes:

ビデオフレームの設定を行います。

- (void)setPlanesWithPointers:(uint8_t *_Nonnull [ _Nonnull ])planes numPlanes:(int)numPlanes

パラメータ

planes 割り当てる飛行機。
numPlanes 割り当てる航空機の数。

登録地

OTVideoKit.h

– clearPlanes

動画フレーム内の平面をクリーンアップします。

- (void)clearPlanes

登録地

OTVideoKit.h

– convertInPlace:planes:strides:

新しいプレーンを割り当てることなく、ビデオフレームを変換します。

- (void)convertInPlace:(OTPixelFormat)pixelFormat planes:(uint8_t *_Nonnull *_Nonnull)planes strides:(int *_Nonnull)strides

登録地

OTVideoKit.h

– getPlaneBinaryData:

個々の動画フレームのバイナリデータを取得します。

- (uint8_t *_Nonnull)getPlaneBinaryData:(int)plane

パラメータ

plane 割り当てる飛行機。

登録地

OTVideoKit.h

– getPlaneStride:

平面のストライド値を取得します

- (int)getPlaneStride:(int)plane

パラメータ

plane 割り当てる飛行機。

登録地

OTVideoKit.h