public static class VideoRenderer.I420Frame
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
int |
height |
int |
rotationDegree |
float[] |
samplingMatrix |
int |
textureId |
int |
width |
boolean |
yuvFrame |
java.nio.ByteBuffer[] |
yuvPlanes |
int[] |
yuvStrides |
构造器和说明 |
---|
I420Frame(int width,
int height,
int rotationDegree,
int[] yuvStrides,
java.nio.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 SurfaceTexture
|
I420Frame(int rotationDegree,
VideoFrame.Buffer buffer,
long nativeFramePointer)
Construct a frame from VideoFrame.Buffer.
|
限定符和类型 | 方法和说明 |
---|---|
byte[] |
getYuvData(VideoRenderer.I420Frame frame,
int index) |
int |
rotatedHeight() |
int |
rotatedWidth() |
java.lang.String |
toString() |
VideoFrame |
toVideoFrame()
Convert the frame to VideoFrame.
|
public final int width
public final int height
@Nullable public final int[] yuvStrides
@Nullable public java.nio.ByteBuffer[] yuvPlanes
public final boolean yuvFrame
@Nullable public final float[] samplingMatrix
public int textureId
public int rotationDegree
public I420Frame(int width, int height, int rotationDegree, int[] yuvStrides, java.nio.ByteBuffer[] yuvPlanes, long nativeFramePointer)
public I420Frame(int width, int height, int rotationDegree, int textureId, float[] samplingMatrix, long nativeFramePointer)
public I420Frame(int rotationDegree, VideoFrame.Buffer buffer, long nativeFramePointer)
public int rotatedWidth()
public int rotatedHeight()
public byte[] getYuvData(VideoRenderer.I420Frame frame, int index)
public java.lang.String toString()
toString
在类中 java.lang.Object
public VideoFrame toVideoFrame()