BaseVideoRenderer.Frame

public final class Frame

包含クラス: BaseVideoRenderer

ビデオストリームのフレームを定義します。 getBuffer フレームデータを取得する 方法。データはI420形式で格納されています。

プロパティ

名称 タイプ 説明
internalBuffer 長い protected
buffer ByteBuffer protected
format otc_video_frame_format protected
width イント protected
height イント protected
mirrored ブール値 protected
yStride イント protected
uvStride イント protected
metadata byte[] protected

方法

名称 説明
Frame()
convertInPlace(yPlane, uPlane, vPlane, yStride, uvStride) 新しいプレーンを割り当てることなく、ビデオフレームを変換します。
destroy() このフレームに関連するすべてのリソースを解放してください。
finalize()
getBuffer() → {ByteBuffer} I420形式のビデオフレームデータを含むバイトバッファを返します。
getFormat() → {int} 動画フレームのフォーマットを取得します。
getHeight() → {int} ビデオフレームの高さをピクセル単位で返します。
getUVplaneSize() → {int} U 面および V 面のサイズを返します。
getUplane() → {ByteBuffer} Uプレーンのビデオフレームデータを含むバイトバッファを返します。
getUvStride() → {int} U または V のストライドの値を返します。
getVplane() → {ByteBuffer} Vプレーンのビデオフレームデータを含むバイトバッファを返します。
getWidth() → {int} ビデオフレームの幅をピクセル単位で返します。
getYplane() → {ByteBuffer} Y平面のビデオフレームデータを含むバイトバッファを返します。
getYplaneSize() → {int} Y軸方向のサイズを返します。
getYstride() → {int} Y ストライドの値を返します。
isMirroredX() → {boolean} その動画のフレームがx軸を軸として左右反転しているかどうか(true)または(false).
recycle()

Frame()

convertInPlace(yPlane, uPlane, vPlane, yStride, uvStride)

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

パラメータ:
名称 タイプ 説明
yPlane ByteBuffer 見る getYplane() 詳細はこちら
uPlane ByteBuffer 見る getUplane() 詳細はこちら
vPlane ByteBuffer 見る getVplane() 詳細はこちら
yStride イント 見る getYstride()} 詳細については
uvStride イント 見る getUvStride() 詳細はこちら

destroy()

このフレームに関連するすべてのリソースを解放します。 destroy の呼び出し後、バッファが null になります

finalize()

getBuffer() →{ByteBuffer}

I420形式のビデオフレームデータを含むバイトバッファを返します。

リターンズ

ByteBuffer

getFormat() →{int}

動画フレームのフォーマットを取得します。

リターンズ

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

getHeight() →{int}

ビデオフレームの高さをピクセル単位で返します。

リターンズ

int

getUVplaneSize() →{int}

U 面および V 面のサイズを返します。

リターンズ

int

getUplane() →{ByteBuffer}

Uプレーンのビデオフレームデータを含むバイトバッファを返します。

リターンズ

ByteBuffer

getUvStride() →{int}

U または V のストライドの値を返します。

リターンズ

int

getVplane() →{ByteBuffer}

Vプレーンのビデオフレームデータを含むバイトバッファを返します。

リターンズ

ByteBuffer

getWidth() →{int}

ビデオフレームの幅をピクセル単位で返します。

リターンズ

int

getYplane() →{ByteBuffer}

Y平面のビデオフレームデータを含むバイトバッファを返します。

リターンズ

ByteBuffer

getYplaneSize() →{int}

Y軸方向のサイズを返します。

リターンズ

int

getYstride() →{int}

Y ストライドの値を返します。

リターンズ

int

isMirroredX() →{boolean}

その動画のフレームがx軸を軸として左右反転しているかどうか(true) か、そうでないか(false).

リターンズ

boolean

recycle()

非推奨 — フレームのメモリを解放したい場合は、その参照をnullに設定し、GCがそれを回収するのを待つだけでよい