FilterEffectOptions

Used to configure filter effect parameters.

struct FilterEffectOptions {
  const char * path;
  float strength;
};
Since
Added since v4.4.1.

Properties

path
Absolute path of the local cube LUT texture file for custom filter effects. The specified .cube file must strictly follow the Cube LUT format specification, otherwise the filter option is invalid.
Note:
  • The first line identifier LUT_3D_SIZE in the cube LUT file indicates the size of the 3D lookup table. The LUT size for filter effects must be 32.
  • The SDK provides a built-in built_in_whiten_filter.cube file. You can pass its absolute path to apply the whitening filter effect.
strength
Strength of the filter effect, range [0.0, 1.0]. 0.0 means no effect. Default is 0.5. The higher the value, the stronger the effect.