java.lang.Object

com.opentok.android.BaseVideoRenderer.Frame

包含クラス: : BaseVideoRenderer


public final class BaseVideoRenderer.Frame extends 目的

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

関連項目: : - BaseVideoRenderer.onFrame(Frame)

フィールド概要

フィールド

修飾子と型

フィールド

説明

protected ByteBuffer

buffer

protected com.opentok.otc.otc_video_frame_format

format

protected int

height

protected long

internalBuffer

protected byte[]

metadata

protected boolean

mirrored

protected int

uvStride

protected int

width

protected int

yStride

コンストラクタの概要

コンストラクタ

修飾子

コンストラクタ

説明

protected

Frame()

方法の概要

すべてのメソッド インスタンスメソッド 具体的なメソッド 非推奨のメソッド

修飾子と型

方法

説明

void

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

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

void

destroy()

このフレームに関連するすべてのリソースを解放してください。

protected void

finalize()

ByteBuffer

getBuffer()

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

int

getFormat()

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

int

getHeight()

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

ByteBuffer

getUplane()

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

int

getUVplaneSize()

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

int

getUvStride()

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

ByteBuffer

getVplane()

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

int

getWidth()

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

ByteBuffer

getYplane()

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

int

getYplaneSize()

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

int

getYstride()

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

boolean

isMirroredX()

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

void

recycle()

非推奨です。

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

java.lang クラスから継承されたメソッド。目的

clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

フィールドの詳細

internalBuffer

protected long internalBuffer

バッファ

protected ByteBuffer バッファ

フォーマット

protected com.opentok.otc.otc_video_frame_format format

protected int width

高さ

protected int height

ミラーリングされた

protected boolean mirrored

yStride

protected int yStride

uvStride

protected int uvStride

メタデータ

protected byte[] metadata

コンストラクタの詳細

フレーム

protected Frame()

メソッドの詳細

リサイクル

@非推奨 public void recycle()

非推奨です。

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

確定する

protected void finalize() throws 投げられる

上書き: : finalize 授業中 Object

投球: : Throwable

破壊する

public void destroy()

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

getBuffer

public ByteBuffer getBuffer()

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

getWidth

public int getWidth()

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

getHeight

public int getHeight()

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

getFormat

public int getFormat()

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

戻り値: : ビデオフレームのフォーマット。

isMirroredX

public boolean isMirroredX()

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

getYstride

public int getYstride()

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

getUvStride

public int getUvStride()

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

getYplane

public ByteBuffer getYplane()

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

getUplane

public ByteBuffer getUplane()

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

getVplane

public ByteBuffer getVplane()

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

getYplaneSize

public int getYplaneSize()

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

getUVplaneSize

public int getUVplaneSize()

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

convertInPlace

public void convertInPlace(ByteBuffer yPlane, ByteBuffer uPlane、 ByteBuffer vPlane, int yStride, int uvStride)

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

パラメータ: : yPlane - 参照 getYplane() 詳細については : uPlane - 参照 getUplane() 詳細については : vPlane - 参照 getVplane() 詳細については : yStride - 参照 getYstride()} 詳細については : uvStride - 参照 getUvStride() 詳細はこちら