MeiCam SDK For Android
3.14.0
|
Special effect. More...
Public Member Functions | |
NvsFxDescription | getDescription () |
Gets the description of the Effect. More... | |
void | setIntVal (String fxParam, int val) |
Sets the integer parameter value of the effect. More... | |
int | getIntVal (String fxParam) |
Gets the integer parameter value of the effect. More... | |
void | setIntValAtTime (String fxParam, int val, long time) |
Sets the integer parameter of NvsFx. More... | |
int | getIntValAtTime (String fxParam, long time) |
Gets the integer parameter of NvsFx. More... | |
void | setFloatVal (String fxParam, double val) |
Sets the float parameter value of the effect. More... | |
double | getFloatVal (String fxParam) |
Gets the float parameter value of the effect. More... | |
void | setFloatValAtTime (String fxParam, double val, long time) |
Sets the float parameter of NvsFx. More... | |
double | getFloatValAtTime (String fxParam, long time) |
Gets the float parameter of NvsFx. More... | |
void | setBooleanVal (String fxParam, boolean val) |
Sets the Boolean parameter value of the effect. More... | |
boolean | getBooleanVal (String fxParam) |
Gets the Boolean parameter value of the effect. More... | |
void | setBooleanValAtTime (String fxParam, boolean val, long time) |
Sets the boolean parameter of NvsFx. More... | |
boolean | getBooleanValAtTime (String fxParam, long time) |
Gets the boolean parameter of NvsFx. More... | |
void | setStringVal (String fxParam, String val) |
Sets the string parameter value of the effect. More... | |
String | getStringVal (String fxParam) |
Gets the string parameter value of the effect. More... | |
void | setStringValAtTime (String fxParam, String val, long time) |
Sets the string parameter of NvsFx. More... | |
String | getStringValAtTime (String fxParam, long time) |
Gets the string parameter of NvsFx. More... | |
void | setColorVal (String fxParam, NvsColor val) |
Sets the color parameter value of the effect. More... | |
NvsColor | getColorVal (String fxParam) |
Gets the color parameter value of the effect. More... | |
void | setColorValAtTime (String fxParam, NvsColor val, long time) |
Sets the color parameter of NvsFx. More... | |
NvsColor | getColorValAtTime (String fxParam, long time) |
Gets the color parameter of NvsFx. More... | |
void | setPosition2DVal (String fxParam, NvsPosition2D val) |
Sets the 2D coordinates parameter value of the effect. More... | |
NvsPosition2D | getPosition2DVal (String fxParam) |
Gets the 2D coordinates parameter value of the effect. More... | |
void | setPosition2DValAtTime (String fxParam, NvsPosition2D val, long time) |
Sets the two dimentional coordinates parameter of NvsFx. More... | |
NvsPosition2D | getPosition2DValAtTime (String fxParam, long time) |
Gets the two dimentional coordinates parameter of NvsFx. More... | |
void | setPosition3DVal (String fxParam, NvsPosition3D val) |
Sets the 3D coordinates parameter value of the effect. More... | |
NvsPosition3D | getPosition3DVal (String fxParam) |
Gets the 3D coordinates parameter value of the effect. More... | |
void | setPosition3DValAtTime (String fxParam, NvsPosition3D val, long time) |
Sets the three dimentional coordinates parameter of NvsFx. More... | |
NvsPosition3D | getPosition3DValAtTime (String fxParam, long time) |
Gets the three dimentional coordinates parameter of NvsFx. More... | |
void | setMenuVal (String fxParam, String val) |
Sets the menu parameter value of the effect. More... | |
String | getMenuVal (String fxParam) |
Gets the menu parameter value of the effect. More... | |
void | setMenuValAtTime (String fxParam, String val, long time) |
Sets the menu parameter of NvsFx. More... | |
String | getMenuValAtTime (String fxParam, long time) |
Gets the menu parameter of NvsFx. More... | |
void | setArbDataVal (String fxParam, NvsArbitraryData val) |
Sets custom data parameter value. More... | |
void | setArbDataValAtTime (String fxParam, NvsArbitraryData val, long time) |
Sets custom data parameter value. More... | |
boolean | removeKeyframeAtTime (String fxParam, long time) |
Remove key frame at time from key frame list. More... | |
boolean | removeAllKeyframe (String fxParam) |
Remove all key frame from key frame list. More... | |
boolean | hasKeyframeList (String fxParam) |
Check has key frame list of param. More... | |
long | findKeyframeTime (String fxParam, long time, int flags) |
Get key frame in list at current time. More... | |
boolean | setKeyFrameControlPoint (String fxParam, long time, NvsControlPointPair controlPointPair) |
Set key frame control point pair. More... | |
NvsControlPointPair | getKeyFrameControlPoint (String fxParam, long time) |
Get key frame control point pair. More... | |
boolean | setKeyFrameControlPointMode (String fxParam, long time, NvsControlPointModePair controlPointModePair) |
Set key frame control point mode pair. More... | |
NvsControlPointModePair | getKeyFrameControlPointMode (String fxParam, long time) |
Get key frame control point mode pair. More... | |
void | setFilterIntensity (float intensity) |
Sets the intensity of the filter. More... | |
float | getFilterIntensity () |
Gets the intensity of the filter. More... | |
void | setRegional (boolean isRegional) |
Sets whether the filter is regional. More... | |
boolean | getRegional () |
Gets whether the filter is regional. More... | |
void | setIgnoreBackground (boolean isIgnoreBackground) |
Sets whether the regional filter ignores Background. More... | |
boolean | getIgnoreBackground () |
Gets whether the regional filter ignores Background. More... | |
void | setInverseRegion (boolean isInverseRegion) |
Sets whether the regional filter inverses region. More... | |
boolean | getInverseRegion () |
Gets whether the regional filter inverses region. More... | |
void | setRegion (float[] region) |
Sets the region of this regional filter. More... | |
void | setRegionInfo (NvsMaskRegionInfo info) |
Sets the region of this regional filter. More... | |
void | setRegionInfoAtTime (NvsMaskRegionInfo info, long time) |
Sets the region of this regional filter at certain time. More... | |
void | setRegionalFeatherWidth (float featherWidth) |
Sets the feather width of this regional filter. More... | |
float | getRegionalFeatherWidth () |
Gets the feather width of this regional filter. More... | |
void | setRegionCoordinateSystemType (int type) |
Sets the coordinate system of the region. More... | |
int | getRegionCoordinateSystemType () |
Gets the coordinate system of the region. More... | |
void | setFilterMask (boolean useMask) |
Sets the mask of the filter. More... | |
boolean | getFilterMask () |
Gets the usage of the filter's mask. More... | |
void | release () |
Releases internal resources. More... | |
NvsParticleSystemContext | getParticleSystemContext () |
NvsPaintingEffectContext | getPaintingEffectContext () |
NvsARFaceContext | getARFaceContext () |
Get face effect context. More... | |
NvsARSceneManipulate | getARSceneManipulate () |
获得NvsARSceneManipulate接口 More... | |
void | setExprVar (String varName, double varValue) |
Set the value of the defined parameter in the expression. More... | |
double | getExprVar (String varName) |
Get the value of the defined parameter in the expression. More... | |
Static Public Attributes | |
Key frame find mode | |
static final int | KEY_FRAME_FIND_MODE_INPUT_TIME_BEFORE = 1 |
find key frame before current time More... | |
static final int | KEY_FRAME_FIND_MODE_INPUT_TIME_AFTER = 2 |
Region Coordinate System Type | |
static final int | REGION_COORDINATE_SYSTEM_TYPE_NDC = 0 |
NDC coordinate system. More... | |
static final int | REGION_COORDINATE_SYSTEM_TYPE_TIMELINE = 1 |
Face Warp Effect Strategy | |
static final int | FACE_WARP_EFFECT_STRATEGY_CUSTOM = 0x7FFFFFFF |
Protected Member Functions | |
void | setInternalObject (long internalObject) |
long | getInternalObject () |
void | finalize () throws Throwable |
Special effect.
Special effects are the basic types of different types of effects such as Video Fx, Audio Fx, Audio Transition, and Video Transition. Special effects are a key part of the SDK framework. Effects derived from NvsEffect class can be added, removed, and retrieved via clip instance, timeline instance, or track instance. At the same time, different API interfaces are provided in the special effects class to set and get the effect parameter types.
|
inlineprotected |
|
inline |
Get key frame in list at current time.
fxParam | The type of custom data parameter for the effect. |
time | current time(In microseconds). |
flags | flag of finding mode,Please refer to [KEY_FRAME_FIND_MODE]. |
Reimplemented in com.meicam.effect.sdk.NvsVideoEffectCompoundCaption.
|
inline |
Get face effect context.
|
inline |
获得NvsARSceneManipulate接口
|
inline |
Gets the Boolean parameter value of the effect.
fxParam | The type of Boolean parameter of the effect. Please refer to PARAM_TYPE_BOOL. |
|
inline |
Gets the boolean parameter of NvsFx.
fxParam | The type of the NvsFx's float parameter. Please refer to [PARAM_TYPE_BOOL]. |
time | point time (In microseconds). |
|
inline |
Gets the color parameter value of the effect.
fxParam | The type of color parameter of the effect. Please refer to PARAM_TYPE_COLOR. |
|
inline |
Gets the color parameter of NvsFx.
fxParam | The type of the NvsFx's color parameter. Please refer to [PARAM_TYPE_COLOR]. |
time | point time (In microseconds). |
|
inline |
Gets the description of the Effect.
|
inline |
Get the value of the defined parameter in the expression.
varName | The parameters defined in the expression |
|
inline |
Gets the intensity of the filter.
|
inline |
Gets the usage of the filter's mask.
|
inline |
Gets the float parameter value of the effect.
fxParam | The type of float parameter of the effect. Please refer to PARAM_TYPE_FLOAT. |
|
inline |
Gets the float parameter of NvsFx.
fxParam | The type of the NvsFx's float parameter. Please refer to [PARAM_TYPE_FLOAT]. |
time | point time (In microseconds). |
|
inline |
Gets whether the regional filter ignores Background.
|
inlineprotected |
|
inline |
Gets the integer parameter value of the effect.
fxParam | The type of the integer parameter of the effect. Please refer toPARAM_TYPE_INT. |
|
inline |
Gets the integer parameter of NvsFx.
fxParam | The type of the NvsFx's integer parameter. Please refer to [PARAM_TYPE_INT]. |
time | point time (In microseconds). |
|
inline |
Gets whether the regional filter inverses region.
|
inline |
Get key frame control point pair.
fxParam | The type of custom data parameter for the effect. |
time | time point (In microseconds). |
|
inline |
Get key frame control point mode pair.
fxParam | The type of custom data parameter for the effect. |
time | time point (In microseconds). |
|
inline |
Gets the menu parameter value of the effect.
fxParam | The type of menu parameter of the effect. Please refer to PARAM_TYPE_MENU. |
|
inline |
Gets the menu parameter of NvsFx.
fxParam | The type of the NvsFx's menu parameter. Please refer to [PARAM_TYPE_MENU]. |
time | point time (In microseconds). |
|
inline |
|
inline |
|
inline |
Gets the 2D coordinates parameter value of the effect.
fxParam | The type of 2D coordinates parameter of the effect. Please refer to PARAM_TYPE_POSITION2D. |
|
inline |
Gets the two dimentional coordinates parameter of NvsFx.
fxParam | The type of the NvsFx's two dimentional coordinates parameter. Please refer to [PARAM_TYPE_POSITION2D]. |
time | point time (In microseconds). |
|
inline |
Gets the 3D coordinates parameter value of the effect.
fxParam | The type of 3D coordinates parameter of the effect. See PARAM_TYPE_POSITION3D. |
|
inline |
Gets the three dimentional coordinates parameter of NvsFx.
fxParam | The type of the NvsFx's three dimentional coordinates parameter. Please refer to [PARAM_TYPE_POSITION3D]. |
time | point time (In microseconds). |
|
inline |
Gets whether the filter is regional.
|
inline |
Gets the feather width of this regional filter.
|
inline |
Gets the coordinate system of the region.
|
inline |
Gets the string parameter value of the effect.
fxParam | The type of string parameter of the effect. Please refer to PARAM_TYPE_STRING. |
|
inline |
Gets the string parameter of NvsFx.
fxParam | The type of the NvsFx's string parameter. Please refer to [PARAM_TYPE_STRING]. |
time | point time (In microseconds). |
|
inline |
Check has key frame list of param.
fxParam | The type of custom data parameter for the effect. |
Reimplemented in com.meicam.effect.sdk.NvsVideoEffectCompoundCaption.
|
inline |
Releases internal resources.
|
inline |
Remove all key frame from key frame list.
fxParam | The type of custom data parameter for the effect. |
Reimplemented in com.meicam.effect.sdk.NvsVideoEffectCompoundCaption.
|
inline |
Remove key frame at time from key frame list.
fxParam | The type of custom data parameter for the effect. |
time | point time (In microseconds). |
Reimplemented in com.meicam.effect.sdk.NvsVideoEffectCompoundCaption.
|
inline |
Sets custom data parameter value.
fxParam | The type of custom data parameter for the effect. |
val | String. |
|
inline |
Sets custom data parameter value.
fxParam | The type of custom data parameter for the effect. |
time | point time (In microseconds). |
val | String. |
|
inline |
Sets the Boolean parameter value of the effect.
fxParam | The type of Boolean parameter of the effect. Please refer to PARAM_TYPE_BOOL. |
val | Bool value. |
|
inline |
Sets the boolean parameter of NvsFx.
fxParam | The type of the NvsFx's float parameter. Please refer to [PARAM_TYPE_BOOL]. |
val | A boolean value. |
time | point time (In microseconds). |
|
inline |
Sets the color parameter value of the effect.
fxParam | The type of color parameter of the effect. Please refer to PARAM_TYPE_COLOR. |
val | Color value. |
|
inline |
Sets the color parameter of NvsFx.
fxParam | The type of the NvsFx's color parameter. Please refer to [PARAM_TYPE_COLOR]. |
val | NvsColor Customized color object. |
time | point time (In microseconds). |
|
inline |
Set the value of the defined parameter in the expression.
varName | The parameters defined in the expression |
varValue | The value of a parameter in the expression |
|
inline |
Sets the intensity of the filter.
intensity | The filter intensity value, the value range is generally [0,1]. 0 means no effect, while 1 indicates the default effect. |
|
inline |
Sets the mask of the filter.
useMask | Wether use mask to limit the filter's region |
|
inline |
Sets the float parameter value of the effect.
fxParam | The type of float parameter of the effect. Please refer to PARAM_TYPE_FLOAT. |
val | Floating point value. |
|
inline |
Sets the float parameter of NvsFx.
fxParam | The type of the NvsFx's float parameter. Please refer to [PARAM_TYPE_FLOAT]. |
val | An float value. |
time | point time (In microseconds). |
|
inline |
Sets whether the regional filter ignores Background.
IgnoreBackground | whether the regional filter ignores Background. true means ignored, while false means the opposite. |
|
inlineprotected |
|
inline |
Sets the integer parameter value of the effect.
fxParam | The type of the integer parameter of the effect. Please refer to PARAM_TYPE_INT. |
val | Integer |
|
inline |
Sets the integer parameter of NvsFx.
fxParam | The type of the NvsFx's integer parameter. Please refer to PARAM_TYPE_INT. |
val | An integer value. |
time | point time (In microseconds). |
|
inline |
Sets whether the regional filter inverses region.
InverseRegion | whether the regional filter inverses region. true means inversed, while false means the opposite. |
|
inline |
Set key frame control point pair.
fxParam | The type of custom data parameter for the effect. |
time | time point (In microseconds). |
controlPointPair | control point pair. |
|
inline |
Set key frame control point mode pair.
fxParam | The type of custom data parameter for the effect. |
time | time point (In microseconds). |
controlPointModePair | control point mode pair. |
|
inline |
Sets the menu parameter value of the effect.
fxParam | The type of menu parameter of the effect. Please refer to PARAM_TYPE_MENU. |
val | String. |
|
inline |
Sets the menu parameter of NvsFx.
fxParam | The type of the NvsFx's menu parameter. Please refer to [PARAM_TYPE_MENU]. |
val | A string value. |
time | point time (In microseconds). |
|
inline |
Sets the 2D coordinates parameter value of the effect.
fxParam | The type of 2D coordinates parameter of the effect. Please refer to PARAM_TYPE_POSITION2D. |
val | 2D coordinates object. |
|
inline |
Sets the two dimentional coordinates parameter of NvsFx.
fxParam | The type of the NvsFx's two dimentional coordinates parameter. Please refer to [PARAM_TYPE_POSITION2D]. |
time | point time (In microseconds). |
val | Two dimentional coordinates object[NvsPosition2D]. |
|
inline |
Sets the 3D coordinates parameter value of the effect.
fxParam | The type of 3D coordinates parameter of the effect. Please refer to PARAM_TYPE_POSITION3D. |
val | 3D coordinates value |
|
inline |
Sets the three dimentional coordinates parameter of NvsFx.
fxParam | The type of the NvsFx's three dimentional coordinates parameter. Please refer to [PARAM_TYPE_POSITION3D]. |
val | Three dimentional coordinates object[NvsPosition3D]. |
time | point time (In microseconds). |
|
inline |
Sets the region of this regional filter.
region | the effective region of this filter. It is composed with a series of points, which are in NDC coordinate system. |
|
inline |
Sets whether the filter is regional.
regional | whether the filter is regional. true means regional, while false means the opposite. |
|
inline |
Sets the feather width of this regional filter.
featherWidth | feather width of regional filter |
|
inline |
Sets the coordinate system of the region.
type | coordinate system type of the region, NDC as the default. |
|
inline |
Sets the region of this regional filter.
region | the effective region of this filter. It could be series of points, cubic bezier curve or ellipse, which are in NDC coordinate system. |
|
inline |
Sets the region of this regional filter at certain time.
region | the effective region of this filter. It could be series of points, cubic bezier curve or ellipse, which are in NDC coordinate system. |
|
inline |
Sets the string parameter value of the effect.
fxParam | The type of string parameter of the effect. Please refer to PARAM_TYPE_STRING. |
val | String |
|
inline |
Sets the string parameter of NvsFx.
fxParam | The type of the NvsFx's string parameter. Please refer to [PARAM_TYPE_STRING]. |
val | A string value. |
time | point time (In microseconds). |
|
static |
Face warp effect custom strategy
|
static |
find key frame after current time
|
static |
find key frame before current time
|
static |
NDC coordinate system.
|
static |
timeline coordinate system