|
MeiCam SDK For iOS
3.7.2
|
Special effects. More...
#import <NvsEffect.h>
Instance Methods | |
| (void) | - setIntVal:val: |
| Sets effect parameter of integer type. More... | |
| (int) | - getIntVal: |
| Get effect parameter of integer type. More... | |
| (void) | - setFloatVal:val: |
| Sets effect parameter of float type. More... | |
| (double) | - getFloatVal: |
| Gets effect parameter of float type. More... | |
| (void) | - setBooleanVal:val: |
| Sets effect parameter of BOOL type. More... | |
| (BOOL) | - getBooleanVal: |
| Gets effect parameter of BOOL type. More... | |
| (void) | - setStringVal:val: |
| Sets effect parameter of string type. More... | |
| (NSString *) | - getStringVal: |
| Gets effect parameter of string value. More... | |
| (void) | - setColorVal:val: |
| Sets effect parameter of color type. More... | |
| (NvsEffectColor) | - getColorVal: |
| Gets effect parameter of color value. More... | |
| (void) | - setPosition2DVal:val: |
| Sets effect parameter of 2D coordinates type. More... | |
| (NvsEffectPosition2D) | - getPosition2DVal: |
| Gets effect parameter of 2D coordinates value. More... | |
| (void) | - setPosition3DVal:val: |
| Sets effect parameter of 3D coordinates type. More... | |
| (NvsEffectPosition3D) | - getPosition3DVal: |
| Gets effect parameter of 3D coordinates value. More... | |
| (void) | - setMenuVal:val: |
| Sets effect parameter of menu type. More... | |
| (NSString *) | - getMenuVal: |
| Gets effect parameter of menu value. More... | |
| (void) | - setArbDataVal:val: |
| Sets the effect parameter of custom type. More... | |
| (NvsArbitraryData *) | - getArbDataVal: |
| Gets the effect parameter of custom type. More... | |
| (void) | - setArbDataValAtTime:val:time: |
| Sets custom data parameter value. More... | |
| (NvsArbitraryData *) | - getArbDataValAtTime:time: |
| Get custom data parameter value at a specified time point. More... | |
| (bool) | - removeKeyframeAtTime:time: |
| Remove key frame at a specified time point from key frame list. More... | |
| (bool) | - removeAllKeyframe: |
| Remove all key frames from key frame list. More... | |
| (bool) | - hasKeyframeList: |
| Check whether the parameter has key frame list or not. More... | |
| (int64_t) | - findKeyframeTime:time:flags: |
| Get key frame at a specified time point. More... | |
| (bool) | - setKeyFrameControlPoint:time:controlPointPair: |
| Set key frame control point pair. More... | |
| (NvsControlPointPair *) | - getKeyFrameControlPoint:time: |
| Get key frame control point pair. More... | |
| (bool) | - setKeyFrameControlPointMode:time:controlPointModePair: |
| Set key frame control point mode pair. More... | |
| (NvsControlPointModePair *) | - getKeyFrameControlPointMode:time: |
| Get key frame control point mode pair. More... | |
| (void) | - setFilterIntensity: |
| Set the filter intensity. More... | |
| (float) | - getFilterIntensity |
| Gets the filter intensity. More... | |
| (void) | - setFilterMask: |
| Sets the mask of the filter. More... | |
| (bool) | - getFilterMask |
| Gets the usage of the filter's mask. More... | |
| (void) | - setRegional: |
| Sets whether the filter is regional. More... | |
| (BOOL) | - getRegional |
| Gets whether the filter is regional. More... | |
| (void) | - setIgnoreBackground: |
| Sets whether the regional filter ignore Background. More... | |
| (BOOL) | - getIgnoreBackground |
| Gets whether the regional filter ignores Background. More... | |
| (void) | - setInverseRegion: |
| Sets whether the regional filter inverse region. More... | |
| (BOOL) | - getInverseRegion |
| Gets whether the regional filter inverse region. More... | |
| (void) | - setRegion: |
| Sets the region of this regional filter. More... | |
| (NSArray *) | - getRegion |
| Get the region of this regional filter. More... | |
| (NvsMaskRegionInfo *) | - getRegionInfo |
| Get the region of this regional filter. More... | |
| (void) | - setRegionInfo: |
| Sets the region of this regional filter. More... | |
| (void) | - setRegionInfoAtTime:time: |
| Sets the region of this regional filter at certain time. More... | |
| (void) | - setRegionalFeatherWidth: |
| Sets the feather width of this regional filter. More... | |
| (float) | - getRegionalFeatherWidth |
| Gets the feather width of this regional filter. More... | |
| (void) | - setRegionCoordinateSystemType: |
| Sets the coordinate system of the region. More... | |
| (int) | - getRegionCoordinateSystemType |
| Gets the coordinate system of the region. More... | |
| (NvsParticleSystemContext *) | - getParticleSystemContext |
| Gets the particle effect context. More... | |
| (NvsPaintingEffectContext *) | - getPaintingEffectContext |
| Gets the particle effect context. More... | |
| (NvsARSceneManipulate *) | - getARSceneManipulate |
| Get the AR scene operation pointer. More... | |
| (void) | - setExprVar:varValue: |
| Sets the value of the defined parameter in the expression. More... | |
| (double) | - getExprVar: |
| Gets the value of the defined parameter in the expression. More... | |
| (void) | - clearExprVar: |
| Clears the value of the defined parameter in the expression and sets it to the default value of 0. More... | |
| (void) | - clearExprVarCtx |
| Clears the value of all parameters defined in the expression and sets it to the default value of 0. More... | |
Properties | |
| NvsEffectDescription * | description |
Special effects.
Special effects are the basic types of different types of effects such as Video effect. Special effects are a key part of the SDK framework. It can be added by the createVideoEffect:aspectRatio: method of the NvsEffectSdkContext class.
| - (void) clearExprVar: | (NSString *) | varName |
Clears the value of the defined parameter in the expression and sets it to the default value of 0.
| varName | The parameters defined in the expression |
| - (void) clearExprVarCtx |
Clears the value of all parameters defined in the expression and sets it to the default value of 0.
| varName | The parameters defined in the expression |
| - (int64_t) findKeyframeTime: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
| flags: | (int) | flags | |
Get key frame at a specified time point.
| fxParam | The type of custom data parameter for the effect. |
| time | time point (In microseconds). |
| flags | flag of finding mode, Please refer to [KEY_FRAME_FIND_MODE]. |
| - (NvsArbitraryData *) getArbDataVal: | (NSString *) | fxParam |
Gets the effect parameter of custom type.
| fxParam | The type of custom data parameter for the effect |
| - (NvsArbitraryData *) getArbDataValAtTime: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
Get custom data parameter value at a specified time point.
| fxParam | The type of custom data parameter for the effect. |
| time | time point |
| - (NvsARSceneManipulate *) getARSceneManipulate |
Get the AR scene operation pointer.
| - (BOOL) getBooleanVal: | (NSString *) | fxParam |
Gets effect parameter of BOOL type.
| fxParam | Effect parameter BOOL type,please refer toNVS_PARAM_TYPE_BOOL |
| - (NvsEffectColor) getColorVal: | (NSString *) | fxParam |
Gets effect parameter of color value.
| fxParam | Effect parameter color type,please refer toNVS_PARAM_TYPE_COLOR |
| - (double) getExprVar: | (NSString *) | varName |
Gets the value of the defined parameter in the expression.
| varName | The parameters defined in the expression |
| - (float) getFilterIntensity |
Gets the filter intensity.
| - (bool) getFilterMask |
Gets the usage of the filter's mask.
| - (double) getFloatVal: | (NSString *) | fxParam |
Gets effect parameter of float type.
| fxParam | Effect parameter float type,please refer toNVS_PARAM_TYPE_FLOAT |
| - (BOOL) getIgnoreBackground |
Gets whether the regional filter ignores Background.
| - (int) getIntVal: | (NSString *) | fxParam |
Get effect parameter of integer type.
| fxParam | Effect parameter integer type,please refer toNVS_PARAM_TYPE_INT. |
| - (BOOL) getInverseRegion |
Gets whether the regional filter inverse region.
| - (NvsControlPointPair*) getKeyFrameControlPoint: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
Get key frame control point pair.
| fxParam | The type of custom data parameter for the effect. |
| time | time point (In microseconds). |
| - (NvsControlPointModePair*) getKeyFrameControlPointMode: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
Get key frame control point mode pair.
| fxParam | The type of custom data parameter for the effect. |
| time | time point (In microseconds). |
| - (NSString *) getMenuVal: | (NSString *) | fxParam |
Gets effect parameter of menu value.
| fxParam | Effect parameter menu type,please refer toNVS_PARAM_TYPE_MENU |
| - (NvsPaintingEffectContext *) getPaintingEffectContext |
Gets the particle effect context.
| - (NvsParticleSystemContext *) getParticleSystemContext |
Gets the particle effect context.
| - (NvsEffectPosition2D) getPosition2DVal: | (NSString *) | fxParam |
Gets effect parameter of 2D coordinates value.
| fxParam | Effect parameter 2D coordinates type,please refer toNVS_PARAM_TYPE_POSITION2D |
| - (NvsEffectPosition3D) getPosition3DVal: | (NSString *) | fxParam |
Gets effect parameter of 3D coordinates value.
| fxParam | Effect parameter 3D coordinates type,please refer toNVS_PARAM_TYPE_POSITION3D |
| - (NSArray *) getRegion |
Get the region of this regional filter.
| - (BOOL) getRegional |
Gets whether the filter is regional.
| - (float) getRegionalFeatherWidth |
Gets the feather width of this regional filter.
| - (int) getRegionCoordinateSystemType |
Gets the coordinate system of the region.
| - (NvsMaskRegionInfo *) getRegionInfo |
Get the region of this regional filter.
| - (NSString *) getStringVal: | (NSString *) | fxParam |
Gets effect parameter of string value.
| fxParam | Effect parameter string type,please refer toNVS_PARAM_TYPE_STRING |
| - (bool) hasKeyframeList: | (NSString *) | fxParam |
Check whether the parameter has key frame list or not.
| fxParam | The type of custom data parameter for the effect. |
| - (bool) removeAllKeyframe: | (NSString *) | fxParam |
Remove all key frames from key frame list.
| fxParam | The type of custom data parameter for the effect. |
| - (bool) removeKeyframeAtTime: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
Remove key frame at a specified time point from key frame list.
| fxParam | The type of custom data parameter for the effect. |
| time | time point (In microseconds). |
| - (void) setArbDataVal: | (NSString *) | fxParam | |
| val: | (NvsArbitraryData *) | val | |
Sets the effect parameter of custom type.
| fxParam | The type of custom data parameter for the effect |
| val | NvsArbitraryData data value |
| - (void) setArbDataValAtTime: | (NSString *) | fxParam | |
| val: | (NvsArbitraryData *) | val | |
| time: | (int64_t) | time | |
Sets custom data parameter value.
| fxParam | The type of custom data parameter for the effect. |
| time | current time (In microseconds). |
| val | String. |
| - (void) setBooleanVal: | (NSString *) | fxParam | |
| val: | (BOOL) | val | |
Sets effect parameter of BOOL type.
| fxParam | Effect parameter BOOL type,please refer toNVS_PARAM_TYPE_BOOL |
| val | BOOL value |
| - (void) setColorVal: | (NSString *) | fxParam | |
| val: | (NvsEffectColor *) | val | |
Sets effect parameter of color type.
| fxParam | Effect parameter color type,please refer toNVS_PARAM_TYPE_COLOR |
| val | Color value |
| - (void) setExprVar: | (NSString *) | varName | |
| varValue: | (double) | varValue | |
Sets the value of the defined parameter in the expression.
| varName | The parameters defined in the expression |
| varValue | The value of a parameter in an expression |
| - (void) setFilterIntensity: | (float) | intensity |
Set the filter intensity.
| intensity | The filter intensity value. The value range is generally [0,1]. 0 means the filter has no effect, the default value is 1. |
| - (void) setFilterMask: | (bool) | useMask |
Sets the mask of the filter.
| useMask | Wether use mask to limit the filter's region |
| - (void) setFloatVal: | (NSString *) | fxParam | |
| val: | (double) | val | |
Sets effect parameter of float type.
| fxParam | Effect parameter float type,please refer toNVS_PARAM_TYPE_FLOAT |
| val | Float value |
| - (void) setIgnoreBackground: | (BOOL) | isIgnoreBackground |
Sets whether the regional filter ignore Background.
| regional | whether the regional filter ignores Background. true means ignored, while false means the opposite. |
| - (void) setIntVal: | (NSString *) | fxParam | |
| val: | (int) | val | |
Sets effect parameter of integer type.
| fxParam | Effect parameter integer type,please refer toNVS_PARAM_TYPE_INT. |
| val | Integer value |
| - (void) setInverseRegion: | (BOOL) | isInverseRegion |
Sets whether the regional filter inverse region.
| regional | whether the regional filter inverse region. true means inversed, while false means the opposite. |
| - (bool) setKeyFrameControlPoint: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
| controlPointPair: | (NvsControlPointPair *) | controlPointPair | |
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. |
| - (bool) setKeyFrameControlPointMode: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
| controlPointModePair: | (NvsControlPointModePair *) | controlPointModePair | |
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. |
| - (void) setMenuVal: | (NSString *) | fxParam | |
| val: | (NSString *) | val | |
Sets effect parameter of menu type.
| fxParam | Effect parameter menu type,please refer toNVS_PARAM_TYPE_MENU |
| val | Menu value |
| - (void) setPosition2DVal: | (NSString *) | fxParam | |
| val: | (NvsEffectPosition2D *) | val | |
Sets effect parameter of 2D coordinates type.
| fxParam | Effect parameter 2D coordinates type,please refer toNVS_PARAM_TYPE_POSITION2D |
| val | 2D coordinates value |
| - (void) setPosition3DVal: | (NSString *) | fxParam | |
| val: | (NvsEffectPosition3D *) | val | |
Sets effect parameter of 3D coordinates type.
| fxParam | Effect parameter 3D coordinates type,please refer toNVS_PARAM_TYPE_POSITION3D |
| val | 3D coordinates value |
| - (void) setRegion: | (NSArray *) | region |
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. |
| - (void) setRegional: | (BOOL) | isRegional |
Sets whether the filter is regional.
| regional | whether the filter is regional. true means regional, while false means the opposite. |
| - (void) setRegionalFeatherWidth: | (float) | featherWidth |
Sets the feather width of this regional filter.
| featherWidth | feather width of regional filter |
| - (void) setRegionCoordinateSystemType: | (int) | type |
Sets the coordinate system of the region.
| type | coordinate system type of the region, NDC as the default. |
| - (void) setRegionInfo: | (NvsMaskRegionInfo *) | info |
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. |
| - (void) setRegionInfoAtTime: | (NvsMaskRegionInfo *) | info | |
| time: | (int64_t) | time | |
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. |
| - (void) setStringVal: | (NSString *) | fxParam | |
| val: | (NSString *) | val | |
Sets effect parameter of string type.
| fxParam | Effect parameter string type,please refer toNVS_PARAM_TYPE_STRING |
| val | String value |
|
readatomicassign |
1.8.18