OTVideoFrame
動画のフレームを定義します。詳しくは[OTVideoRender renderVideoFrame:] および [OTVideoCaptureConsumer consumeFrame:].
プロパティ
| 名称 | タイプ | 説明 |
|---|---|---|
planes |
NSPointerArray * | 映像フレーム内に並んだ飛行機の数々。 |
timestamp |
CMTime | 動画フレームのタイムスタンプ。 |
orientation |
OTVideoOrientation | 動画フレームの向き。 |
format |
OTVideoFormat * | 動画フレームのフォーマット。 |
metadata |
NSData * | この動画フレームに関連付けられているメタデータ(ある場合)。 非推奨: このプロパティは非推奨となっており、ライブラリの将来のバージョンで削除される予定です。 |
方法
| 名称 | 説明 |
|---|---|
init() → {id} |
を初期化します OTVideoFrame オブジェクトがある。 |
initWithFormat:(videoFormat) → {id} |
を初期化します OTVideoFrame 指定された形式を持つオブジェクト。 |
setPlanesWithPointers:numPlanes:(planes, numPlanes) |
ビデオフレームの設定を行います。 |
clearPlanes() |
動画フレーム内の平面をクリーンアップします。 |
convertInPlace:planes:strides:(pixelFormat, planes, strides) |
新しいプレーンを割り当てることなく、ビデオフレームを変換します。 |
getPlaneBinaryData:(plane) → {uint8_t *} |
個々の動画フレームのバイナリデータを取得します。 |
getPlaneStride:(plane) → {int} |
平面のストライド値を取得します |
init() →{id}
を初期化します OTVideoFrame オブジェクトがある。
リターンズ
initWithFormat:(videoFormat) →{id}
を初期化します OTVideoFrame 指定された形式を持つオブジェクト。
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
videoFormat |
OTVideoFormat * | その動画フレームで使用されている動画形式。 |
リターンズ
setPlanesWithPointers:numPlanes:(planes, numPlanes)
ビデオフレームの設定を行います。
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
planes |
uint8_t *[] | 割り当てる飛行機。 |
numPlanes |
イント | 割り当てる航空機の数。 |
clearPlanes()
動画フレーム内の平面をクリーンアップします。
convertInPlace:planes:strides:(pixelFormat, planes, strides)
新しいプレーンを割り当てることなく、ビデオフレームを変換します。
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
pixelFormat |
OTPixelFormat | |
planes |
uint8_t * * | |
strides |
int * |
getPlaneBinaryData:(plane) →{uint8_t *}
個々の動画フレームのバイナリデータを取得します。
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
plane |
イント | 割り当てる飛行機。 |
リターンズ
getPlaneStride:(plane) →{int}
平面のストライド値を取得します
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
plane |
イント | 割り当てる飛行機。 |