ColorEnhanceOptions
The color enhancement options.
class ColorEnhanceOptions { const ColorEnhanceOptions({this.strengthLevel, this.skinProtectLevel}); @JsonKey(name: 'strengthLevel') final double? strengthLevel; @JsonKey(name: 'skinProtectLevel') final double? skinProtectLevel; factory ColorEnhanceOptions.fromJson(Map<String, dynamic> json) => _$ColorEnhanceOptionsFromJson(json); Map<String, dynamic> toJson() => _$ColorEnhanceOptionsToJson(this); }
Attributes
- strengthLevel
- The level of color enhancement. The value range is [0.0, 1.0].
0.0
is 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.0
means 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.