Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
agora::rtc::ColorEnhanceOptions Struct Reference

`#include <AgoraBase.h>`

## Public Member Functions
| ColorEnhanceOptions (float stength, float skinProtect)
| ColorEnhanceOptions ()

## Public Attributes
float | strengthLevel
float | skinProtectLevel

## Detailed Description

Since
  v4.0.0

## Constructor & Destructor Documentation

## ◆ ColorEnhanceOptions() [1/2]

agora::rtc::ColorEnhanceOptions::ColorEnhanceOptions | ( | float | stength,
|  | float | skinProtect )
| inline

## ◆ ColorEnhanceOptions() [2/2]

agora::rtc::ColorEnhanceOptions::ColorEnhanceOptions | ( |  | ) |
| inline

## Member Data Documentation

## ◆ strengthLevel

float agora::rtc::ColorEnhanceOptions::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 is `0.5`.

## ◆ skinProtectLevel

float agora::rtc::ColorEnhanceOptions::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 is `1.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. Therefore, to get the best color enhancement effect, Agora recommends that you adjust `strengthLevel` and `skinProtectLevel` to get the most appropriate values.