FilterEffectOptions
Used to configure filter effects.
public class FilterEffectOptions {
public String path = null;
public float strength;
}
Properties
- path
- Absolute path to the local cube LUT texture file, used for custom filter effects. The specified .cube file must strictly follow the Cube LUT format specification, otherwise the filter parameters will not take effect.
Note:
- The first line of the
.cubefile should contain the identifierLUT_3D_SIZE, which indicates the size of the 3D lookup table. The LUT size for filter effects must be set to 32. - The Agora SDK provides a built-in
built_in_whiten_filter.cubefile. You can pass the absolute path of this file to use the whitening filter effect.
- The first line of the
- strength
- Strength of the filter effect. Range is [0.0, 1.0]. 0.0 means no filter effect. Default is 0.5. The larger the value, the stronger the effect.