NERTC macOS/Windows SDK V5.9.20
载入中...
搜索中...
未找到
nertc::NERtcVideoExternalBlendConfig结构体 参考

Public 属性

float x = 0.0f
 
float y = 0.0f
 
float w = 0.0f
 
float h = 0.0f
 
bool mirror = false
 
NERtcVideoScalingMode scaling_mode = kNERtcVideoScaleFit
 
uint32_t bg_color = 0
 
bool overlay = false
 

类成员变量说明

◆ bg_color

uint32_t nertc::NERtcVideoExternalBlendConfig::bg_color = 0

混合区域的背景颜色 ARGB格式,其中A无效, 默认渲染为黑色0xFF000000, 0为不设置背景

◆ h

float nertc::NERtcVideoExternalBlendConfig::h = 0.0f

混合区域高度比例 范围[0.0f, 1.0f]. y + h 不能超过 1.0f

◆ mirror

bool nertc::NERtcVideoExternalBlendConfig::mirror = false

是否镜像

◆ overlay

bool nertc::NERtcVideoExternalBlendConfig::overlay = false

是否叠加在原有视频上, 默认false, 默认采用Blend方式,设置为true时采用Overlay方式

◆ scaling_mode

NERtcVideoScalingMode nertc::NERtcVideoExternalBlendConfig::scaling_mode = kNERtcVideoScaleFit

混合区域缩放模式 kNERtcVideoScaleFit: 缩放模式,保持原始比例 kNERtcVideoScaleFullFill: 填充模式,宽高比例不一致时,会进行缩放 kNERtcVideoScaleCropFill: 裁剪模式,宽高比例不一致时,会进行裁剪

◆ w

float nertc::NERtcVideoExternalBlendConfig::w = 0.0f

混合区域宽度比例 范围[0.0f, 1.0f]. x + w 不能超过 1.0f

◆ x

float nertc::NERtcVideoExternalBlendConfig::x = 0.0f

混合区域左上角 x 坐标 范围[0.0f, 1.0f]

◆ y

float nertc::NERtcVideoExternalBlendConfig::y = 0.0f

混合区域左上角 y 坐标 范围[0.0f, 1.0f]


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