程序包 rtc
类 VideoRenderer.I420Frame
java.lang.Object
rtc.VideoRenderer.I420Frame
- 封闭类:
- VideoRenderer
I420 视频帧
-
字段概要
修饰符和类型字段说明final int
int
final float[]
int
final int
final boolean
final int[]
-
构造器概要
构造器说明I420Frame
(int width, int height, int rotationDegree, int[] yuvStrides, ByteBuffer[] yuvPlanes, long nativeFramePointer) Construct a frame of the given dimensions with the specified planar data.I420Frame
(int width, int height, int rotationDegree, int textureId, float[] samplingMatrix, long nativeFramePointer) Construct a texture frame of the given dimensions with data in SurfaceTextureI420Frame
(int rotationDegree, rtc.webrtc.VideoFrame.Buffer buffer, long nativeFramePointer) Construct a frame from VideoFrame.Buffer. -
方法概要
修饰符和类型方法说明byte[]
getYuvData
(VideoRenderer.I420Frame frame, int index) int
int
toString()
rtc.webrtc.VideoFrame
Convert the frame to VideoFrame.
-
字段详细资料
-
width
public final int width -
height
public final int height -
yuvStrides
public final int[] yuvStrides -
yuvPlanes
-
yuvFrame
public final boolean yuvFrame -
samplingMatrix
public final float[] samplingMatrix -
textureId
public int textureId -
rotationDegree
public int rotationDegree
-
-
构造器详细资料
-
I420Frame
public I420Frame(int width, int height, int rotationDegree, int[] yuvStrides, ByteBuffer[] yuvPlanes, long nativeFramePointer) Construct a frame of the given dimensions with the specified planar data. -
I420Frame
public I420Frame(int width, int height, int rotationDegree, int textureId, float[] samplingMatrix, long nativeFramePointer) Construct a texture frame of the given dimensions with data in SurfaceTexture -
I420Frame
public I420Frame(int rotationDegree, rtc.webrtc.VideoFrame.Buffer buffer, long nativeFramePointer) Construct a frame from VideoFrame.Buffer.
-
-
方法详细资料