Documentation
Video Call (Legacy)
API Reference
Agora C++ API Reference for All Platforms
Agora C++ API Reference for All Platforms
|
enum | PLANE_TYPE { Y_PLANE = 0,
U_PLANE = 1,
V_PLANE = 2,
NUM_OF_PLANES = 3
} |
|
enum | VIDEO_TYPE {
VIDEO_TYPE_UNKNOWN = 0,
VIDEO_TYPE_I420 = 1,
VIDEO_TYPE_IYUV = 2,
VIDEO_TYPE_RGB24 = 3,
VIDEO_TYPE_ABGR = 4,
VIDEO_TYPE_ARGB = 5,
VIDEO_TYPE_ARGB4444 = 6,
VIDEO_TYPE_RGB565 = 7,
VIDEO_TYPE_ARGB1555 = 8,
VIDEO_TYPE_YUY2 = 9,
VIDEO_TYPE_YV12 = 10,
VIDEO_TYPE_UYVY = 11,
VIDEO_TYPE_MJPG = 12,
VIDEO_TYPE_NV21 = 13,
VIDEO_TYPE_NV12 = 14,
VIDEO_TYPE_BGRA = 15,
VIDEO_TYPE_RGBA = 16,
VIDEO_TYPE_I422 = 17
} |
|
◆ PLANE_TYPE
Enumerator |
---|
Y_PLANE | |
U_PLANE | |
V_PLANE | |
NUM_OF_PLANES | |
◆ VIDEO_TYPE
Enumerator |
---|
VIDEO_TYPE_UNKNOWN | |
VIDEO_TYPE_I420 | |
VIDEO_TYPE_IYUV | |
VIDEO_TYPE_RGB24 | |
VIDEO_TYPE_ABGR | |
VIDEO_TYPE_ARGB | |
VIDEO_TYPE_ARGB4444 | |
VIDEO_TYPE_RGB565 | |
VIDEO_TYPE_ARGB1555 | |
VIDEO_TYPE_YUY2 | |
VIDEO_TYPE_YV12 | |
VIDEO_TYPE_UYVY | |
VIDEO_TYPE_MJPG | |
VIDEO_TYPE_NV21 | |
VIDEO_TYPE_NV12 | |
VIDEO_TYPE_BGRA | |
VIDEO_TYPE_RGBA | |
VIDEO_TYPE_I422 | |
◆ release()
virtual void agora::media::IVideoFrame::release |
( |
| ) |
|
|
pure virtual |
◆ buffer()
virtual const unsigned char* agora::media::IVideoFrame::buffer |
( |
PLANE_TYPE |
type | ) |
const |
|
pure virtual |
◆ copyFrame()
virtual int agora::media::IVideoFrame::copyFrame |
( |
IVideoFrame ** |
dest_frame | ) |
const |
|
pure virtual |
Copies the frame.
If the required size is larger than the allocated size, new buffers of the adequate size will be allocated.
- Parameters
-
dest_frame | Address of the returned destination frame. See IVideoFrame. |
- Returns
-
◆ convertFrame()
virtual int agora::media::IVideoFrame::convertFrame |
( |
VIDEO_TYPE |
dst_video_type, |
|
|
int |
dst_sample_size, |
|
|
unsigned char * |
dst_frame |
|
) |
| const |
|
pure virtual |
Converts the frame.
- Note
- The source and destination frames have equal heights.
- Parameters
-
dst_video_type | Type of the output video. |
dst_sample_size | Required only for the parsing of M-JPEG. |
dst_frame | Pointer to a destination frame. See IVideoFrame. |
- Returns
- 0: Success.
- < 0: Failure.
◆ allocated_size()
virtual int agora::media::IVideoFrame::allocated_size |
( |
PLANE_TYPE |
type | ) |
const |
|
pure virtual |
Retrieves the specified component in the YUV space.
- Parameters
-
◆ stride()
virtual int agora::media::IVideoFrame::stride |
( |
PLANE_TYPE |
type | ) |
const |
|
pure virtual |
Retrieves the stride of the specified component in the YUV space.
- Parameters
-
◆ width()
virtual int agora::media::IVideoFrame::width |
( |
| ) |
const |
|
pure virtual |
Retrieves the width of the frame.
◆ height()
virtual int agora::media::IVideoFrame::height |
( |
| ) |
const |
|
pure virtual |
Retrieves the height of the frame.
◆ timestamp()
virtual unsigned int agora::media::IVideoFrame::timestamp |
( |
| ) |
const |
|
pure virtual |
Retrieves the timestamp (90 ms) of the frame.
◆ render_time_ms()
virtual int64_t agora::media::IVideoFrame::render_time_ms |
( |
| ) |
const |
|
pure virtual |
Retrieves the render time (ms).
◆ IsZeroSize()
virtual bool agora::media::IVideoFrame::IsZeroSize |
( |
| ) |
const |
|
pure virtual |
Checks if a plane is of zero size.
- Returns
- true: The plane is of zero size.
- false: The plane is not of zero size.
◆ GetVideoType()
virtual VIDEO_TYPE agora::media::IVideoFrame::GetVideoType |
( |
| ) |
const |
|
pure virtual |