|
Agora Java API Reference for Android
|
#include <AgoraMediaBase.h>
Public Types | |
| enum | EGL_CONTEXT_TYPE { EGL_CONTEXT10 = 0, EGL_CONTEXT14 = 1 } |
| enum | VIDEO_BUFFER_TYPE { VIDEO_BUFFER_RAW_DATA = 1, VIDEO_BUFFER_ARRAY = 2, VIDEO_BUFFER_TEXTURE = 3 } |
Public Attributes | |
| VIDEO_BUFFER_TYPE | type |
| VIDEO_PIXEL_FORMAT | format |
| void * | buffer |
| int | stride |
| int | height |
| int | cropLeft |
| int | cropTop |
| int | cropRight |
| int | cropBottom |
| int | rotation |
| long long | timestamp |
| void * | eglContext |
| EGL_CONTEXT_TYPE | eglType |
| int | textureId |
| float | matrix [16] |
| uint8_t * | metadata_buffer |
| int | metadata_size |
| uint8_t * | alphaBuffer |
| bool | fillAlphaBuffer |
| void * | d3d11_texture_2d |
| int | texture_slice_index |
The definition of the ExternalVideoFrame struct.
| VIDEO_BUFFER_TYPE agora::media::base::ExternalVideoFrame::type |
The buffer type: VIDEO_BUFFER_TYPE.
| VIDEO_PIXEL_FORMAT agora::media::base::ExternalVideoFrame::format |
The pixel format: #VIDEO_PIXEL_FORMAT
| void* agora::media::base::ExternalVideoFrame::buffer |
The video buffer.
| int agora::media::base::ExternalVideoFrame::stride |
The line spacing of the incoming video frame (px). For texture, it is the width of the texture.
| int agora::media::base::ExternalVideoFrame::height |
The height of the incoming video frame.
| int agora::media::base::ExternalVideoFrame::cropLeft |
[Raw data related parameter] The number of pixels trimmed from the left. The default value is 0.
| int agora::media::base::ExternalVideoFrame::cropTop |
[Raw data related parameter] The number of pixels trimmed from the top. The default value is 0.
| int agora::media::base::ExternalVideoFrame::cropRight |
[Raw data related parameter] The number of pixels trimmed from the right. The default value is 0.
| int agora::media::base::ExternalVideoFrame::cropBottom |
[Raw data related parameter] The number of pixels trimmed from the bottom. The default value is 0.
| int agora::media::base::ExternalVideoFrame::rotation |
[Raw data related parameter] The clockwise rotation information of the video frame. You can set the rotation angle as 0, 90, 180, or 270. The default value is 0.
| long long agora::media::base::ExternalVideoFrame::timestamp |
The timestamp (ms) of the incoming video frame. An incorrect timestamp results in a frame loss or unsynchronized audio and video.
Please refer to getAgoraCurrentMonotonicTimeInMs or getCurrentMonotonicTimeInMs to determine how to fill this filed.
| void* agora::media::base::ExternalVideoFrame::eglContext |
[Texture-related parameter] When using the OpenGL interface (javax.microedition.khronos.egl.*) defined by Khronos, set EGLContext to this field. When using the OpenGL interface (android.opengl.*) defined by Android, set EGLContext to this field.
| EGL_CONTEXT_TYPE agora::media::base::ExternalVideoFrame::eglType |
[Texture related parameter] Texture ID used by the video frame.
| int agora::media::base::ExternalVideoFrame::textureId |
[Texture related parameter] Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.
| float agora::media::base::ExternalVideoFrame::matrix[16] |
[Texture related parameter] Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.
| uint8_t* agora::media::base::ExternalVideoFrame::metadata_buffer |
[Texture related parameter] The MetaData buffer. The default value is NULL
| int agora::media::base::ExternalVideoFrame::metadata_size |
[Texture related parameter] The MetaData size. The default value is 0
| uint8_t* agora::media::base::ExternalVideoFrame::alphaBuffer |
Indicates the alpha channel of current frame, which is consistent with the dimension of the video frame. The value range of each pixel is [0,255], where 0 represents the background; 255 represents the foreground. The default value is NULL. @technical preview
| bool agora::media::base::ExternalVideoFrame::fillAlphaBuffer |
Extract alphaBuffer from bgra or rgba data. Set it true if you do not explicitly specify the alphabuffer. The default value is false @technical preview
| void* agora::media::base::ExternalVideoFrame::d3d11_texture_2d |
[Windows Texture related parameter] The pointer of ID3D11Texture2D used by the video frame.
| int agora::media::base::ExternalVideoFrame::texture_slice_index |
[Windows Texture related parameter] The index of ID3D11Texture2D array used by the video frame.
1.8.18