更新时间: 2023-10-23 16:45:52
rtc::ExternalVideoFrame结构体 参考
rtc::ExternalVideoFrame结构体 参考

Public 类型

enum  RTC_VIDEO_BUFFER_TYPE { VIDEO_BUFFER_RAW_DATA = 1 }
 
enum  RTC_VIDEO_PIXEL_FORMAT { VIDEO_PIXEL_UNKNOWN = 0 , VIDEO_PIXEL_I420 = 1 , VIDEO_PIXEL_BGRA = 2 , VIDEO_PIXEL_NV12 = 8 }
 

Public 属性

RTC_VIDEO_BUFFER_TYPE type
 
RTC_VIDEO_PIXEL_FORMAT format
 
void * buffer
 
int stride
 
int height
 
int cropLeft
 
int cropTop
 
int cropRight
 
int cropBottom
 
int rotation
 
long long timestamp
 

详细描述

The external video frame.

成员枚举类型说明

◆ RTC_VIDEO_BUFFER_TYPE

The video buffer type.

枚举值
VIDEO_BUFFER_RAW_DATA 

1: The video buffer in the format of raw data.

◆ RTC_VIDEO_PIXEL_FORMAT

The video pixel format.

枚举值
VIDEO_PIXEL_UNKNOWN 

0: The video pixel format is unknown.

VIDEO_PIXEL_I420 

1: The video pixel format is I420.

VIDEO_PIXEL_BGRA 

2: The video pixel format is BGRA.

VIDEO_PIXEL_NV12 

8: The video pixel format is NV12.

类成员变量说明

◆ type

RTC_VIDEO_BUFFER_TYPE rtc::ExternalVideoFrame::type

The buffer type. See RTC_VIDEO_BUFFER_TYPE

◆ format

RTC_VIDEO_PIXEL_FORMAT rtc::ExternalVideoFrame::format

The pixel format. See RTC_VIDEO_PIXEL_FORMAT

◆ buffer

void* rtc::ExternalVideoFrame::buffer

The video buffer.

◆ stride

int rtc::ExternalVideoFrame::stride

Line spacing of the incoming video frame, which must be in pixels instead of bytes. For textures, it is the width of the texture.

◆ height

int rtc::ExternalVideoFrame::height

Height of the incoming video frame.

◆ cropLeft

int rtc::ExternalVideoFrame::cropLeft

[Raw data related parameter] The number of pixels trimmed from the left. The default value is 0.

◆ cropTop

int rtc::ExternalVideoFrame::cropTop

[Raw data related parameter] The number of pixels trimmed from the top. The default value is 0.

◆ cropRight

int rtc::ExternalVideoFrame::cropRight

[Raw data related parameter] The number of pixels trimmed from the right. The default value is 0.

◆ cropBottom

int rtc::ExternalVideoFrame::cropBottom

[Raw data related parameter] The number of pixels trimmed from the bottom. The default value is 0.

◆ rotation

int rtc::ExternalVideoFrame::rotation

[Raw data related parameter] The clockwise rotation of the video frame. You can set the rotation angle as 0, 90, 180, or 270. The default value is 0.

◆ timestamp

long long rtc::ExternalVideoFrame::timestamp

Timestamp of the incoming video frame (ms). An incorrect timestamp results in frame loss or unsynchronized audio and video.


该结构体的文档由以下文件生成: