Package io.agora.rtc2.video
Class BeautyOptions
java.lang.Object
io.agora.rtc2.video.BeautyOptions
Sets the image enhancement options.
-
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 lightening contrast level, used withlighteningLevel:LIGHTENING_CONTRAST_LOW(0): low contrast level.floatThe brightness level.floatThe redness level.floatThe smoothness level.floatThe smoothness level. -
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 lightening contrast level, used withlighteningLevel:LIGHTENING_CONTRAST_LOW(0): low contrast level.LIGHTENING_CONTRAST_NORMAL(1): (default) normal contrast level.LIGHTENING_CONTRAST_HIGH(2): high contrast level.
-
lighteningLevel
public float lighteningLevelThe brightness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.6. -
smoothnessLevel
public float smoothnessLevelThe smoothness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.5. This parameter is usually used to remove blemishes. -
rednessLevel
public float rednessLevelThe redness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.1. This parameter adjusts the red saturation level. -
sharpnessLevel
public float sharpnessLevelThe smoothness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.3.
-
-
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()
-