FColorEnhanceOptions
色彩增强选项。
C++
USTRUCT(BlueprintType)
struct FColorEnhanceOptions
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ColorEnhanceOptions")
float strengthLevel = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ColorEnhanceOptions")
float skinProtectLevel = 0;
FColorEnhanceOptions(){}
FColorEnhanceOptions(const agora::rtc::ColorEnhanceOptions & AgoraData){
strengthLevel = AgoraData.strengthLevel;
skinProtectLevel = AgoraData.skinProtectLevel;
}
agora::rtc::ColorEnhanceOptions CreateAgoraData() const {
agora::rtc::ColorEnhanceOptions AgoraData;
AgoraData.strengthLevel = strengthLevel;
AgoraData.skinProtectLevel = skinProtectLevel;
return AgoraData;
}
void FreeAgoraData(agora::rtc::ColorEnhanceOptions& AgoraData) const {
}
};
strengthLevel
色彩增强程度。取值范围为 [0.0,1.0]。
0.0
表示不对视频进行色彩增强。取值越大,色彩增强的程度越大。默认值为 0.5
。skinProtectLevel
肤色保护程度。取值范围为 [0.0,1.0]。0.0
表示不对肤色进行保护。取值越大,肤色保护的程度越大。默认值为 1.0
。
- 当色彩增强程度较大时,人像肤色会明显失真,你需要设置肤色保护程度;
- 肤色保护程度较大时,色彩增强效果会略微降低。