public class VideoFrame
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
VideoFrame.Buffer |
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,
android.graphics.Matrix transformMatrix) |
Modifier and Type | Method and Description |
---|---|
VideoFrame.Buffer |
getBuffer() |
int |
getHeight() |
int |
getRotation()
Rotation of the frame in degrees.
|
long |
getTimestampNs()
Timestamp of the frame in nano seconds.
|
android.graphics.Matrix |
getTransformMatrix()
Retrieve the transform matrix associated with the frame.
|
int |
getWidth()
Resolution of the frame in pixels.
|
void |
release() |
void |
retain()
Reference counting of the underlying buffer.
|
public VideoFrame(VideoFrame.Buffer buffer, int rotation, long timestampNs, android.graphics.Matrix transformMatrix)
public VideoFrame.Buffer getBuffer()
public int getRotation()
public long getTimestampNs()
public android.graphics.Matrix getTransformMatrix()
public int getWidth()
public int getHeight()
public void retain()
public void release()