Agora C++ API Reference for All Platforms
|
#include <IAgoraMediaEngine.h>
Public Attributes | |
VIDEO_FRAME_TYPE | type |
int | width |
int | height |
int | yStride |
int | uStride |
int | vStride |
void * | yBuffer |
void * | uBuffer |
void * | vBuffer |
int | rotation |
int64_t | renderTimeMs |
int | avsync_type |
Video frame information. The video data format is YUV 420. The buffer provides a pointer to a pointer. The interface cannot modify the pointer of the buffer, but can modify the content of the buffer only.
VIDEO_FRAME_TYPE agora::media::IVideoFrameObserver::VideoFrame::type |
int agora::media::IVideoFrameObserver::VideoFrame::width |
Video pixel width.
int agora::media::IVideoFrameObserver::VideoFrame::height |
Video pixel height.
int agora::media::IVideoFrameObserver::VideoFrame::yStride |
For YUV data, the line span of the Y buffer; for RGBA data, the total data length.
int agora::media::IVideoFrameObserver::VideoFrame::uStride |
For YUV data, the line span of the U buffer; for RGBA data, the value is 0.
int agora::media::IVideoFrameObserver::VideoFrame::vStride |
For YUV data, the line span of the V buffer; for RGBA data, the value is 0.
void* agora::media::IVideoFrameObserver::VideoFrame::yBuffer |
For YUV data, the pointer to the Y buffer; for RGBA data, the data buffer.
void* agora::media::IVideoFrameObserver::VideoFrame::uBuffer |
For YUV data, the pointer to the U buffer; for RGBA data, the value is 0.
void* agora::media::IVideoFrameObserver::VideoFrame::vBuffer |
For YUV data, the pointer to the V buffer; for RGBA data, the value is 0.
int agora::media::IVideoFrameObserver::VideoFrame::rotation |
The clockwise rotation angle of the video frame. The supported values are 0, 90, 180, or 270 degrees.
int64_t agora::media::IVideoFrameObserver::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::IVideoFrameObserver::VideoFrame::avsync_type |