ColorEnhanceOptions

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);
}

Properties

strengthLevel
Color enhancement level. Value range is [0.0, 1.0]. 0.0 means no color enhancement is applied to the video. The higher the value, the stronger the color enhancement. Default is 0.5.
skinProtectLevel
Skin tone protection level. Value range is [0.0, 1.0]. 0.0 means no skin tone protection is applied. The higher the value, the stronger the protection. Default is 1.0.
  • When the color enhancement level is high, facial skin tones may appear distorted. You need to set the skin tone protection level.
  • A higher skin tone protection level slightly reduces the color enhancement effect.
Therefore, to achieve the best color enhancement effect, it is recommended that you dynamically adjust strengthLevel and skinProtectLevel to achieve the optimal result.