音视频通讯SDK API参考手册  Windows 1.6.0
tencent::av::VideoFrameDesc结构体 参考

视频帧描述。 更多...

#include <av_common.h>

Public 成员函数

 VideoFrameDesc ()
 

Public 属性

ColorFormat color_format
 色彩格式,详情见ColorFormat的定义。 更多...
 
uint32 width
 宽度,单位:像素。 更多...
 
uint32 height
 高度,单位:像素。 更多...
 
int32 rotate
 
VideoSrcType src_type
 视频源类型,详情见VideoSrcType的定义。 更多...
 

详细描述

视频帧描述。

构造及析构函数说明

tencent::av::VideoFrameDesc::VideoFrameDesc ( )

类成员变量说明

ColorFormat tencent::av::VideoFrameDesc::color_format
uint32 tencent::av::VideoFrameDesc::height
int32 tencent::av::VideoFrameDesc::rotate

画面旋转的角度:

  • source_type为VIDEO_SRC_TYPE_CAMERA时,表示视频源为摄像头。 在终端上,摄像头画面是支持旋转的,App需要根据旋转角度调整渲染层的处理,以保证画面的正常显示。
  • source_type为其他值时,rotate恒为0。
VideoSrcType tencent::av::VideoFrameDesc::src_type
uint32 tencent::av::VideoFrameDesc::width