FBeautyOptions
美颜选项。
C++
USTRUCT(BlueprintType)
struct FBeautyOptions
{
GENERATED_BODY()
public:
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|BeautyOptions")
ELIGHTENING_CONTRAST_LEVEL lighteningContrastLevel = ELIGHTENING_CONTRAST_LEVEL::LIGHTENING_CONTRAST_NORMAL;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|BeautyOptions")
float lighteningLevel = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|BeautyOptions")
float smoothnessLevel = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|BeautyOptions")
float rednessLevel = 0;
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|BeautyOptions")
float sharpnessLevel = 0;
FBeautyOptions(){}
FBeautyOptions(const agora::rtc::BeautyOptions & AgoraData){
lighteningContrastLevel = static_cast<ELIGHTENING_CONTRAST_LEVEL>(AgoraData.lighteningContrastLevel);
lighteningLevel = AgoraData.lighteningLevel;
smoothnessLevel = AgoraData.smoothnessLevel;
rednessLevel = AgoraData.rednessLevel;
sharpnessLevel = AgoraData.sharpnessLevel;
}
agora::rtc::BeautyOptions CreateAgoraData() const {
agora::rtc::BeautyOptions AgoraData;
AgoraData.lighteningContrastLevel = static_cast<agora::rtc::BeautyOptions::LIGHTENING_CONTRAST_LEVEL>(lighteningContrastLevel);
AgoraData.lighteningLevel = lighteningLevel;
AgoraData.smoothnessLevel = smoothnessLevel;
AgoraData.rednessLevel = rednessLevel;
AgoraData.sharpnessLevel = sharpnessLevel;
return AgoraData;
}
void FreeAgoraData(agora::rtc::BeautyOptions& AgoraData) const {
}
};
lighteningContrastLevel
对比度,常与 lighteningLevel 搭配使用。取值越大,明暗对比程度越大。详见 ELIGHTENING_CONTRAST_LEVEL。
lighteningLevel
美白程度,取值范围为 [0.0,1.0],其中 0.0 表示原始亮度,默认值为 0.0。取值越大,美白程度越大。
smoothnessLevel
磨皮程度,取值范围为 [0.0,1.0],其中 0.0 表示原始磨皮程度,默认值为 0.0。取值越大,磨皮程度越大。
rednessLevel
红润度,取值范围为 [0.0,1.0],其中 0.0 表示原始红润度,默认值为 0.0。取值越大,红润程度越大。
sharpnessLevel
锐化程度,取值范围为 [0.0,1.0],其中 0.0 表示原始锐度,默认值为 0.0。取值越大,锐化程度越大。