public class VideoFrame
extends java.lang.Object
This object carries YUV buffers and basic timing/format information for the current frame.
| Modifier and Type | Field and Description |
|---|---|
private int |
height
Height of the video frame in pixels.
|
private int |
rotation
Clockwise rotation of this frame: 0, 90, 180, or 270.
|
private long |
timestampMs
Render timestamp in milliseconds for A/V sync.
|
private byte[] |
uBuffer
Raw U plane buffer.
|
private int |
uStride
Line stride of U buffer in pixels.
|
private byte[] |
vBuffer
Raw V plane buffer.
|
private int |
vStride
Line stride of V buffer in pixels.
|
private int |
width
Width of the video frame in pixels.
|
private byte[] |
yBuffer
Raw Y plane buffer.
|
private int |
yStride
Line stride of Y buffer in pixels.
|
| Constructor and Description |
|---|
VideoFrame() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
int |
getRotation() |
long |
getTimestampMs() |
byte[] |
getuBuffer() |
int |
getuStride() |
byte[] |
getvBuffer() |
int |
getvStride() |
int |
getWidth() |
byte[] |
getyBuffer() |
int |
getyStride() |
void |
setHeight(int height) |
void |
setRotation(int rotation) |
void |
setTimestampMs(long timestampMs) |
void |
setuBuffer(byte[] uBuffer) |
void |
setuStride(int uStride) |
void |
setvBuffer(byte[] vBuffer) |
void |
setvStride(int vStride) |
void |
setWidth(int width) |
void |
setyBuffer(byte[] yBuffer) |
void |
setyStride(int yStride) |
java.lang.String |
toString() |
private int width
private int height
private int yStride
private int uStride
private int vStride
private byte[] yBuffer
private byte[] uBuffer
private byte[] vBuffer
private long timestampMs
private int rotation
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public int getyStride()
public void setyStride(int yStride)
public int getuStride()
public void setuStride(int uStride)
public int getvStride()
public void setvStride(int vStride)
public byte[] getyBuffer()
public void setyBuffer(byte[] yBuffer)
public byte[] getuBuffer()
public void setuBuffer(byte[] uBuffer)
public byte[] getvBuffer()
public void setvBuffer(byte[] vBuffer)
public long getTimestampMs()
public void setTimestampMs(long timestampMs)
public int getRotation()
public void setRotation(int rotation)
public java.lang.String toString()
toString in class java.lang.Object