Package io.agora.rtc2.video
Class BeautyOptions
java.lang.Object
io.agora.rtc2.video.BeautyOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int2: high contrast for lightening.static final int0: low contrast for lightening.static final int1: normal contrast for lightening.intThe contrast level, used with the `lighteningLevel` parameter.floatThe brightening level, in the range [0.0,1.0], where 0.0 means the original brightening.floatThe redness level, in the range [0.0,1.0], where 0.0 means the original redness.floatThe sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness.floatThe smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. -
Constructor Summary
ConstructorsConstructorDescriptionBeautyOptions(int contrastLevel, float lightening, float smoothness, float redness, float sharpness) The image enhancement options. -
Method Summary
-
Field Details
-
LIGHTENING_CONTRAST_LOW
public static final int LIGHTENING_CONTRAST_LOW0: low contrast for lightening.- See Also:
-
LIGHTENING_CONTRAST_NORMAL
public static final int LIGHTENING_CONTRAST_NORMAL1: normal contrast for lightening.- See Also:
-
LIGHTENING_CONTRAST_HIGH
public static final int LIGHTENING_CONTRAST_HIGH2: high contrast for lightening.- See Also:
-
lighteningContrastLevel
public int lighteningContrastLevelThe contrast level, used with the `lighteningLevel` parameter. The larger the value, the greater the contrast between light and dark. - LIGHTENING_CONTRAST_LOW (0): Low contrast level. - LIGHTENING_CONTRAST_NORMAL (1): Normal contrast level. - LIGHTENING_CONTRAST_HIGH (2): High contrast level. -
lighteningLevel
public float lighteningLevelThe brightening level, in the range [0.0,1.0], where 0.0 means the original brightening. The default value is 0.6. The higher the value, the greater the degree of brightening. -
smoothnessLevel
public float smoothnessLevelThe smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. The default value is 0.5. The greater the value, the greater the smoothness level. -
rednessLevel
public float rednessLevelThe redness level, in the range [0.0,1.0], where 0.0 means the original redness. The default value is 0.1. The larger the value, the greater the redness level. -
sharpnessLevel
public float sharpnessLevelThe sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness. The default value is 0.3. The larger the value, the greater the sharpness level.
-
-
Constructor Details
-
BeautyOptions
public BeautyOptions(int contrastLevel, float lightening, float smoothness, float redness, float sharpness) The image enhancement options.- Parameters:
contrastLevel- The contrast level, used with thelighteningLevelparameter:LIGHTENING_CONTRAST_LOW(0): low contrast level.LIGHTENING_CONTRAST_NORMAL(1): (default) normal contrast level.LIGHTENING_CONTRAST_HIGH(2): high contrast level.
lightening- The brightness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.7.smoothness- The sharpness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.5. This parameter is usually used to remove blemishes.redness- The redness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.1. This parameter adjusts the red saturation level.
-
BeautyOptions
public BeautyOptions()
-