OpenTok.VideoFrame
コピー
public class VideoFrame : IDisposable
IVideoRenderer.RenderFrame(VideoFrame) および IVideoFrameConsumer.Consume(VideoFrame) メソッド用のビデオフレームを定義します。
プロパティ
方法
| 名称 | 説明 |
|---|---|
ConvertInPlace(destinationFormat, planes, strides) |
|
(static) CreateFrameFromBuffer(format, width, height, planes, strides) → {VideoFrame} |
|
(static) CreateFrameFromBuffer(format, width, height, buffer) → {VideoFrame} |
|
(static) CreateYuv420pFrameFromBitmap(bitmap) → {VideoFrame} |
|
(static) CreateYuv420pFrameFromBuffer(sourceFormat, width, height, planes, strides) → {VideoFrame} |
|
Dispose(disposing) |
|
Dispose() |
以下の事項を処理する ビデオフレーム オブジェクトのリソース。 |
GetPlane(index) → {IntPtr} |
|
GetPlaneHeight(index) → {int} |
|
GetPlaneSize(index) → {int} |
|
GetPlaneStride(index) → {int} |
|
GetPlaneWidth(index) → {int} |
ConvertInPlace(destinationFormat, planes, strides)
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
destinationFormat |
PixelFormat | 動画形式について。現在、これは以下の形式でのみ動作しますので、ご注意ください。 PixelFormat.FormatYuv420p. |
planes |
IntPtr[] | ビデオデータの保存先バッファの各プレーンを指すポインタ。 |
strides |
int[] | 1行のピクセルデータに含まれるバイト数。 |
(static) CreateFrameFromBuffer(format, width, height, planes, strides) →{VideoFrame}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
format |
PixelFormat | ソースフレームの形式。 |
width |
イント | 幅(ピクセル単位)。 |
height |
イント | 高さ(ピクセル単位)。 |
planes |
IntPtr[] | ソースプレーンを含む配列。 |
strides |
int[] | ソースのストライドを含む配列。 |
リターンズ
VideoFrame
(static) CreateFrameFromBuffer(format, width, height, buffer) →{VideoFrame}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
format |
PixelFormat | ソースフレームの形式。 |
width |
イント | 幅(ピクセル単位)。 |
height |
イント | 高さ(ピクセル単位)。 |
buffer |
IntPtr | ソースバッファへのポインタ。 |
リターンズ
VideoFrame
(static) CreateYuv420pFrameFromBitmap(bitmap) →{VideoFrame}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
bitmap |
ビットマップ | そのフレームのソースビットマップ。 |
リターンズ
VideoFrame
(static) CreateYuv420pFrameFromBuffer(sourceFormat, width, height, planes, strides) →{VideoFrame}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
sourceFormat |
PixelFormat | ソースフレームの形式。 |
width |
イント | 幅(ピクセル単位)。 |
height |
イント | 高さ(ピクセル単位)。 |
planes |
IntPtr[] | ソースプレーンを含む配列。 |
strides |
int[] | ソースのストライドを含む配列。 |
リターンズ
VideoFrame
Dispose(破棄中)
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
disposing |
bool |
Dispose()
以下の事項を処理する ビデオフレーム オブジェクトのリソース。
GetPlane(index) →{IntPtr}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
index |
イント | フレームのインデックス。の NumberOfPlanes プロパティは、 ビデオフレーム object は、利用可能なプレーンの数です。 |
リターンズ
IntPtr
GetPlaneHeight(index) →{int}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
index |
イント | フレームのインデックス。の NumberOfPlanes プロパティは、 ビデオフレーム object は、利用可能なプレーンの数です。 |
リターンズ
int
GetPlaneSize(index) →{int}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
index |
イント | フレームのインデックス。の NumberOfPlanes プロパティは、 ビデオフレーム object は、利用可能なプレーンの数です。 |
リターンズ
int
GetPlaneStride(index) →{int}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
index |
イント | フレームのインデックス。の NumberOfPlanes プロパティは、 ビデオフレーム object は、利用可能なプレーンの数です。 |
リターンズ
int
GetPlaneWidth(index) →{int}
パラメータ:
| 名称 | タイプ | 説明 |
|---|---|---|
index |
イント | フレームのインデックス。の NumberOfPlanes プロパティは、 ビデオフレーム object は、利用可能なプレーンの数です。 |
リターンズ
int