FColorEnhanceOptions
The color enhancement options.
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 {
}
};
Attributes
- strengthLevel
- The level of color enhancement. The value range is [0.0, 1.0].
0.0is the default value, which means no color enhancement is applied to the video. The higher the value, the higher the level of color enhancement. The default value is0.5. - skinProtectLevel
The level of skin tone protection. The value range is [0.0, 1.0].
0.0means no skin tone protection. The higher the value, the higher the level of skin tone protection. The default value is1.0.- When the level of color enhancement is higher, the portrait skin tone can be significantly distorted, so you need to set the level of skin tone protection.
- When the level of skin tone protection is higher, the color enhancement effect can be slightly reduced.