|
Agora Java API Reference for Android
|
Provides methods to manage and configure video effects, such as beauty, style makeup, and filter. More...
#include <IAgoraRtcEngine.h>
Public Types | |
| enum | VIDEO_EFFECT_NODE_ID : uint32_t { VIDEO_EFFECT_NODE_ID::BEAUTY = 1U << 0, VIDEO_EFFECT_NODE_ID::STYLE_MAKEUP = 1U << 1, VIDEO_EFFECT_NODE_ID::FILTER = 1U << 2 } |
| Types of applicable video effect nodes. More... | |
| enum | VIDEO_EFFECT_ACTION { SAVE = 1, RESET = 2 } |
| Actions that can be performed on video effect nodes. More... | |
Public Member Functions | |
| virtual int | addOrUpdateVideoEffect (uint32_t nodeId, const char *templateName)=0 |
| Adds or updates the video effect for the specified node ID and template. More... | |
| virtual int | removeVideoEffect (uint32_t nodeId)=0 |
| Removes the video effect with the specified node ID. More... | |
| virtual int | performVideoEffectAction (uint32_t nodeId, VIDEO_EFFECT_ACTION actionId)=0 |
| Performs an action on the specified video effect node. More... | |
| virtual int | setVideoEffectFloatParam (const char *option, const char *key, float param)=0 |
| Sets the float parameter for video effects. More... | |
| virtual int | setVideoEffectIntParam (const char *option, const char *key, int param)=0 |
| Sets an integer parameter for video effects. More... | |
| virtual int | setVideoEffectBoolParam (const char *option, const char *key, bool param)=0 |
| Sets the boolean parameter for video effects. More... | |
| virtual float | getVideoEffectFloatParam (const char *option, const char *key)=0 |
Retrieves float type parameters in video effects. More... | |
| virtual int | getVideoEffectIntParam (const char *option, const char *key)=0 |
| Retrieves integer parameters in video effects. More... | |
| virtual bool | getVideoEffectBoolParam (const char *option, const char *key)=0 |
| Gets the boolean parameter in video effects. More... | |
Public Member Functions inherited from agora::RefCountInterface | |
| virtual void | AddRef () const =0 |
| virtual RefCountReleaseStatus | Release () const =0 |
| virtual bool | HasOneRef () const =0 |
Provides methods to manage and configure video effects, such as beauty, style makeup, and filter.
|
strong |
|
pure virtual |
Adds or updates the video effect for the specified node ID and template.
VIDEO_EFFECT_NODE_ID::STYLE_MAKEUP node takes precedence over the VIDEO_EFFECT_NODE_ID::FILTER parameter.VIDEO_EFFECT_NODE_ID::FILTER parameter, you must first remove the VIDEO_EFFECT_NODE_ID::STYLE_MAKEUP node: | nodeId | The unique identifier or combination of identifiers for the video effect node. See VIDEO_EFFECT_NODE_ID. Examples:
|
| templateName | The name of the effect template. If set to null or an empty string, the SDK loads the default configuration from the resource package. |
|
pure virtual |
Removes the video effect with the specified node ID.
| nodeId | The unique identifier of the video effect node to remove. See VIDEO_EFFECT_NODE_ID. |
|
pure virtual |
Performs an action on the specified video effect node.
| nodeId | The unique identifier of the video effect node. |
| actionId | The action to perform. See VIDEO_EFFECT_ACTION. |
|
pure virtual |
Sets the float parameter for video effects.
| option | The category of the parameter option. |
| key | The key name of the parameter. |
| param | The float value to set. |
|
pure virtual |
Sets an integer parameter for video effects.
| option | The category of the option to which the parameter belongs. |
| key | The key name of the parameter. |
| param | The integer parameter value to set. |
|
pure virtual |
Sets the boolean parameter for video effects.
| option | The category of the parameter option. |
| key | The key name of the parameter. |
| param | The boolean value to set.
|
|
pure virtual |
Retrieves float type parameters in video effects.
Used to retrieve the value of a float type parameter corresponding to the specified option and key in video effects.
| option | The category of the option to which the parameter belongs. |
| key | The key name of the parameter. |
float value.
|
pure virtual |
Retrieves integer parameters in video effects.
Used to retrieve integer-type parameters in video effects.
| option | The category of the parameter option. |
| key | The key name of the parameter. |
|
pure virtual |
Gets the boolean parameter in video effects.
| option | The option category to which the parameter belongs. |
| key | The key name of the parameter. |
true: The parameter is enabled.false: The parameter is not enabled or does not exist.
1.8.18