#include <AgoraMediaBase.h>
The definition of the ExternalVideoFrame struct.
◆ VIDEO_BUFFER_TYPE
Video buffer types.
Enumerator |
---|
VIDEO_BUFFER_RAW_DATA | 1: Raw data.
|
VIDEO_BUFFER_ARRAY | 2: The same as VIDEO_BUFFER_RAW_DATA.
|
VIDEO_BUFFER_TEXTURE | 3: The video buffer in the format of texture.
|
◆ ExternalVideoFrame()
agora::media::base::ExternalVideoFrame::ExternalVideoFrame |
( |
| ) |
|
|
inline |
◆ buffer
void* agora::media::base::ExternalVideoFrame::buffer |
◆ cropBottom
int agora::media::base::ExternalVideoFrame::cropBottom |
[Raw data related parameter] The number of pixels trimmed from the bottom. The default value is 0.
◆ cropLeft
int agora::media::base::ExternalVideoFrame::cropLeft |
[Raw data related parameter] The number of pixels trimmed from the left. The default value is 0.
◆ cropRight
int agora::media::base::ExternalVideoFrame::cropRight |
[Raw data related parameter] The number of pixels trimmed from the right. The default value is 0.
◆ cropTop
int agora::media::base::ExternalVideoFrame::cropTop |
[Raw data related parameter] The number of pixels trimmed from the top. The default value is 0.
◆ format
◆ height
int agora::media::base::ExternalVideoFrame::height |
The height of the incoming video frame.
◆ rotation
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.
◆ stride
int agora::media::base::ExternalVideoFrame::stride |
The line spacing of the incoming video frame (px). For texture, it is the width of the texture.
◆ timestamp
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.
◆ type
The documentation for this struct was generated from the following file: