public class AgoraVideoFrame
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
byte[] |
buf
The buffer of this frame.
|
static int |
BUFFER_TYPE_ARRAY
2: The buffer type is array.
|
static int |
BUFFER_TYPE_BUFFER
1: The buffer type is buffer.
|
static int |
BUFFER_TYPE_NONE
-1: No buffer type.
|
static int |
BUFFER_TYPE_TEXTURE
3: The buffer type is texture.
|
int |
cropBottom
The number of pixels to crop from the bottom.
|
int |
cropLeft
The number of pixels to crop from the left.
|
int |
cropRight
The number of pixels to crop from the right.
|
int |
cropTop
The number of pixels to crop from the top.
|
javax.microedition.khronos.egl.EGLContext |
eglContext10
EGLContext10.
|
android.opengl.EGLContext |
eglContext14
EGLContext14.
|
int |
format
Format of the incoming video frame, which must be specified as one of the following:
10: (Default)
GL_TEXTURE_2D
11: OES , typically from the camera
1: I420
3: NV21
4: RGBA
|
static int |
FORMAT_BGRA
2: The video format is BGRA.
|
static int |
FORMAT_I420
1: The video format is I420.
|
static int |
FORMAT_I422
16: Video frame in the format of I422.
|
static int |
FORMAT_NONE
-1: No video format.
|
static int |
FORMAT_NV21
3: The video format is NV21.
|
static int |
FORMAT_RGBA
4: The video format is RGBA.
|
static int |
FORMAT_TEXTURE_2D
10: The video format is TEXTURE_2D.
|
static int |
FORMAT_TEXTURE_OES
11: The video format is TEXTURE_OES.
|
int |
height
The height of this frame.
|
int |
rotation
The rotation information (clockwise) of this frame.
|
int |
stride
The stride of this frame, which means the number of pixels between two consecutive
rows.
|
boolean |
syncMode
Determines whether to enable the sync mode, which means that
the SDK waits while the texture is being processed.
|
int |
textureID
The ID of the texture.
|
long |
timeStamp
The timestamp (ms) of this frame.
|
float[] |
transform
The extra transform for the texture.
|
Constructor and Description |
---|
AgoraVideoFrame() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public static final int FORMAT_NONE
public static final int FORMAT_TEXTURE_2D
public static final int FORMAT_TEXTURE_OES
public static final int FORMAT_I420
public static final int FORMAT_BGRA
public static final int FORMAT_NV21
public static final int FORMAT_RGBA
public static final int FORMAT_I422
public static final int BUFFER_TYPE_NONE
public static final int BUFFER_TYPE_BUFFER
public static final int BUFFER_TYPE_ARRAY
public static final int BUFFER_TYPE_TEXTURE
public int format
GL_TEXTURE_2D
OES
, typically from the camera
I420
NV21
RGBA
public long timeStamp
public int stride
public int height
public int textureID
public boolean syncMode
public float[] transform
public javax.microedition.khronos.egl.EGLContext eglContext10
public android.opengl.EGLContext eglContext14
public byte[] buf
public int cropLeft
public int cropTop
public int cropRight
public int cropBottom
public int rotation