|
Agora Java API Reference for Android
|
Configurations of the video frame. More...
#include <AgoraMediaBase.h>
Public Attributes | |
| VIDEO_PIXEL_FORMAT | type |
| int | width |
| int | height |
| int | yStride |
| int | uStride |
| int | vStride |
| uint8_t * | yBuffer |
| uint8_t * | uBuffer |
| uint8_t * | vBuffer |
| int | rotation |
| int64_t | renderTimeMs |
| int | avsync_type |
| uint8_t * | metadata_buffer |
| int | metadata_size |
| void * | sharedContext |
| int | textureId |
| void * | d3d11Texture2d |
| float | matrix [16] |
| uint8_t * | alphaBuffer |
| ALPHA_STITCH_MODE | alphaStitchMode |
| void * | pixelBuffer |
| IVideoFrameMetaInfo * | metaInfo |
| Hdr10MetadataInfo | hdr10MetadataInfo |
| ColorSpace | colorSpace |
Configurations of the video frame.
Note that the buffer provides a pointer to a pointer. This interface cannot modify the pointer of the buffer, but it can modify the content of the buffer.
| VIDEO_PIXEL_FORMAT agora::media::base::VideoFrame::type |
The pixel format. See VIDEO_PIXEL_FORMAT.
| int agora::media::base::VideoFrame::width |
The width of the video, in pixels.
| int agora::media::base::VideoFrame::height |
The height of the video, in pixels.
| int agora::media::base::VideoFrame::yStride |
For YUV data, the line span of the Y buffer; for RGBA data, the total data length.
| int agora::media::base::VideoFrame::uStride |
For YUV data, the line span of the U buffer; for RGBA data, the value is 0.
| int agora::media::base::VideoFrame::vStride |
For YUV data, the line span of the V buffer; for RGBA data, the value is 0.
| uint8_t* agora::media::base::VideoFrame::yBuffer |
For YUV data, the pointer to the Y buffer; for RGBA data, the data buffer.
| uint8_t* agora::media::base::VideoFrame::uBuffer |
For YUV data, the pointer to the U buffer; for RGBA data, the value is 0.
| uint8_t* agora::media::base::VideoFrame::vBuffer |
For YUV data, the pointer to the V buffer; for RGBA data, the value is 0.
| int agora::media::base::VideoFrame::rotation |
The clockwise rotation of the video frame before rendering. Supported values include 0, 90, 180, and 270 degrees.
| int64_t agora::media::base::VideoFrame::renderTimeMs |
The Unix timestamp (ms) when the video frame is rendered. This timestamp can be used to guide the rendering of the video frame. This parameter is required.
| int agora::media::base::VideoFrame::avsync_type |
Reserved for future use.
| uint8_t* agora::media::base::VideoFrame::metadata_buffer |
This parameter only applies to video data in Texture format. The MetaData buffer. The default value is NULL.
| int agora::media::base::VideoFrame::metadata_size |
This parameter only applies to video data in Texture format. The MetaData size. The default value is 0.
| void* agora::media::base::VideoFrame::sharedContext |
This parameter only applies to video data in Texture format. EGL Context.
| int agora::media::base::VideoFrame::textureId |
This parameter only applies to video data in Texture format. Texture ID.
| void* agora::media::base::VideoFrame::d3d11Texture2d |
This parameter only applies to video data in Windows Texture format. It represents a pointer to an object of typeID3D11Texture2D, which is used by a video frame.
| float agora::media::base::VideoFrame::matrix[16] |
This parameter only applies to video data in Texture format. Incoming 4 × 4 transformational matrix. The typical value is a unit matrix.
| uint8_t* agora::media::base::VideoFrame::alphaBuffer |
The alpha channel data output by using portrait segmentation algorithm. This data matches the size of the video frame, with each pixel value ranging from [0,255], where 0 represents the background and 255 represents the foreground (portrait). By setting this parameter, you can render the video background into various effects, such as transparent, solid color, image, video, etc.
alphaBuffer is exactly the same size as the video frame (width × height), otherwise it may cause the app to crash. | ALPHA_STITCH_MODE agora::media::base::VideoFrame::alphaStitchMode |
When the video frame contains alpha channel data, it represents the relative position of alphaBuffer and the video frame. See ALPHA_STITCH_MODE.
| void* agora::media::base::VideoFrame::pixelBuffer |
The type of CVPixelBufferRef, for iOS and macOS only.
| IVideoFrameMetaInfo* agora::media::base::VideoFrame::metaInfo |
The meta information in the video frame. To use this parameter, contact technical support.
| Hdr10MetadataInfo agora::media::base::VideoFrame::hdr10MetadataInfo |
metadata info used for hdr video data
| ColorSpace agora::media::base::VideoFrame::colorSpace |
By default, the color space properties of video frames will apply the Full Range and BT.709 standard configurations.
1.8.18