|
NERTC macOS/Windows SDK V5.9.20
|
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 |
| uint32_t nertc::NERtcVideoExternalBlendConfig::bg_color = 0 |
混合区域的背景颜色 ARGB格式,其中A无效, 默认渲染为黑色0xFF000000, 0为不设置背景
| float nertc::NERtcVideoExternalBlendConfig::h = 0.0f |
混合区域高度比例 范围[0.0f, 1.0f]. y + h 不能超过 1.0f
| bool nertc::NERtcVideoExternalBlendConfig::mirror = false |
是否镜像
| bool nertc::NERtcVideoExternalBlendConfig::overlay = false |
是否叠加在原有视频上, 默认false, 默认采用Blend方式,设置为true时采用Overlay方式
| NERtcVideoScalingMode nertc::NERtcVideoExternalBlendConfig::scaling_mode = kNERtcVideoScaleFit |
混合区域缩放模式 kNERtcVideoScaleFit: 缩放模式,保持原始比例 kNERtcVideoScaleFullFill: 填充模式,宽高比例不一致时,会进行缩放 kNERtcVideoScaleCropFill: 裁剪模式,宽高比例不一致时,会进行裁剪
| float nertc::NERtcVideoExternalBlendConfig::w = 0.0f |
混合区域宽度比例 范围[0.0f, 1.0f]. x + w 不能超过 1.0f
| float nertc::NERtcVideoExternalBlendConfig::x = 0.0f |
混合区域左上角 x 坐标 范围[0.0f, 1.0f]
| float nertc::NERtcVideoExternalBlendConfig::y = 0.0f |
混合区域左上角 y 坐标 范围[0.0f, 1.0f]