|
Agora Java API Reference for Android
|
Public Member Functions | |
| BeautyOptions (int contrastLevel, float lightening, float smoothness, float redness, float sharpness) | |
Public Attributes | |
| int | lighteningContrastLevel |
| float | lighteningLevel |
| float | smoothnessLevel |
| float | rednessLevel |
| float | sharpnessLevel |
Static Public Attributes | |
| static final int | LIGHTENING_CONTRAST_LOW = 0 |
| static final int | LIGHTENING_CONTRAST_NORMAL = 1 |
| static final int | LIGHTENING_CONTRAST_HIGH = 2 |
Sets the image enhancement options.
| io.agora.rtc2.video.BeautyOptions.BeautyOptions | ( | int | contrastLevel, |
| float | lightening, | ||
| float | smoothness, | ||
| float | redness, | ||
| float | sharpness | ||
| ) |
The image enhancement options.
| contrastLevel | The contrast level, used with the {lighteningLevel} parameter: 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. |
|
static |
0: low contrast for lightening.
|
static |
1: normal contrast for lightening.
|
static |
2: high contrast for lightening.
| int io.agora.rtc2.video.BeautyOptions.lighteningContrastLevel |
The lightening contrast level, used with {lighteningLevel}: {LIGHTENING_CONTRAST_LOW(0)}: low contrast level. LIGHTENING_CONTRAST_NORMAL(1): (default) normal contrast level. {LIGHTENING_CONTRAST_HIGH(2)}: high contrast level.
| float io.agora.rtc2.video.BeautyOptions.lighteningLevel |
The brightness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.6.
| float io.agora.rtc2.video.BeautyOptions.smoothnessLevel |
The 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.
| float io.agora.rtc2.video.BeautyOptions.rednessLevel |
The 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.
| float io.agora.rtc2.video.BeautyOptions.sharpnessLevel |
The smoothness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.3.
1.8.18