public class VideoFrame extends java.lang.Object implements RefCounted
Modifier and Type | Class and Description |
---|---|
static interface |
VideoFrame.Buffer
Implements image storage medium.
|
static interface |
VideoFrame.I420Buffer
Interface for I420 buffers.
|
static interface |
VideoFrame.TextureBuffer
Interface for buffers that are stored as a single texture, either in OES or RGB format.
|
Constructor and Description |
---|
VideoFrame(VideoFrame.Buffer buffer,
int rotation,
long timestampNs)
Constructs a new VideoFrame backed by the given
buffer . |
Modifier and Type | Method and Description |
---|---|
VideoFrame.Buffer |
getBuffer() |
int |
getRotatedHeight() |
int |
getRotatedWidth() |
int |
getRotation()
Rotation of the frame in degrees.
|
long |
getTimestampNs()
Timestamp of the frame in nano seconds.
|
void |
release()
Decreases ref count by one.
|
void |
retain()
Increases ref count by one.
|
public VideoFrame(VideoFrame.Buffer buffer, int rotation, long timestampNs)
buffer
.
Note: Ownership of the buffer object is tranferred to the new VideoFrame.public VideoFrame.Buffer getBuffer()
public int getRotation()
public long getTimestampNs()
public int getRotatedWidth()
public int getRotatedHeight()
public void retain()
RefCounted
retain
in interface RefCounted
public void release()
RefCounted
release
in interface RefCounted
6.0.0