public class I420Frame extends Object
Modifier and Type | Field and Description |
---|---|
int |
height
Height of frame
|
int |
rotationDegree
The degree that the frame must be rotated clockwise to be rendered correctly.
|
int |
width
Width of frame
|
ByteBuffer[] |
yuvPlanes
Array of pixel data for each plane.
|
int[] |
yuvStrides
Array of strides for each plane.
|
Modifier and Type | Method and Description |
---|---|
void |
release()
Called when a
VideoRenderer has completed rendering a frame. |
int |
rotatedHeight()
Returns the height of the frame based on the current
rotationDegree . |
int |
rotatedWidth()
Returns the width of the frame based on the current
rotationDegree . |
String |
toString() |
public final int width
public final int height
public final int[] yuvStrides
public final ByteBuffer[] yuvPlanes
public int rotationDegree
public int rotatedWidth()
rotationDegree
.public int rotatedHeight()
rotationDegree
.public void release()
VideoRenderer
has completed rendering a frame. This must be invoked
for each frame to ensure that resources are not leaked.