|
MeiCam SDK For iOS
3.7.2
|
Effect SDK context class. More...
#import <NvsEffectSdkContext.h>
Class Methods | |
| (BOOL) | + verifySdkLicenseFile: |
| Verifies the SDK license. Note: This interface must be called before the NvsStreamingContext is initialized. More... | |
| (NvsEffectSdkContext *) | + sharedInstance: |
| Gets the unique instance of the effect sdk context. More... | |
| (void) | + destroyInstance |
| Destroys the effect sdk context instance. More... | |
| (int) | + hasARModule |
| Checks if the current SDK contains an AR module. More... | |
| (BOOL) | + initHumanDetection:licenseFilePath:features: |
| Initializes the human body detection mechanism. More... | |
| (BOOL) | + initHumanDetectionExt:licenseFilePath:features: |
| Human detection initialization extension. More... | |
| (BOOL) | + setupHumanDetectionData:dataFilePath: |
| Setup human detection data package. More... | |
| (void) | + closeHumanDetection |
| Turns off the human detection mechanism. More... | |
| (void) | + getSdkVersion:minorVersion:revisionNumber: |
| Gets the version information of Meishe SDK. More... | |
Properties | |
| NvsAssetPackageManager * | assetPackageManager |
| Asset package manager. More... | |
Effect SDK context class.
| + (void) closeHumanDetection |
Turns off the human detection mechanism.
| - (NvsVideoEffectAnimatedSticker *) createAnimatedSticker: | (int64_t) | inPoint | |
| duration: | (int64_t) | duration | |
| isPanoramic: | (bool) | isPanoramic | |
| packageId: | (NSString *) | packageId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Creates animated sticker object.
| inPoint | In point of sticker |
| duration | Duration of sticker |
| isPanoramic | Whether panoramic sticker |
| animatedStickerId | Animated sticker package id. |
| aspectRatio | The aspect ratio of animated sticker. |
| - (NvsVideoEffectCaption *) createCaption: | (NSString *) | captionText | |
| inPoint: | (int64_t) | inPoint | |
| duration: | (int64_t) | duration | |
| captionStylePackageId: | (NSString *) | captionStylePackageId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Create caption.
| captionText | Text of caption |
| inPoint | The in point of the caption (in microseconds) |
| duration | Caption display duration (in microseconds) |
| captionStylePackageId | Caption style package Id.If it does not exist, you can pass an empty string or null. |
| aspectRatio | The aspect ratio of caption |
| - (NvsVideoEffectCompoundCaption *) createCompoundCaption: | (int64_t) | inPoint | |
| duration: | (int64_t) | duration | |
| packageId: | (NSString *) | packageId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Creates compound caption object.
| inPoint | In point of caption |
| duration | Duration of caption |
| packageId | caption package id. |
| aspectRatio | The aspect ratio of caption |
| - (NvsVideoEffectAnimatedSticker *) createCustomAnimatedSticker: | (int64_t) | inPoint | |
| duration: | (int64_t) | duration | |
| isPanoramic: | (bool) | isPanoramic | |
| packageId: | (NSString *) | packageId | |
| customImageFilePath: | (NSString *) | customImageFilePath | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Creates custom animated sticker object.
| inPoint | In point of sticker |
| duration | Duration of sticker |
| isPanoramic | Whether panoramic sticker |
| animatedStickerId | Animated sticker package id. |
| customImageFilePath | Custom sticker image file path. |
| aspectRatio | The aspect ratio of animated sticker. |
| - (NvsEffectRenderCore *) createEffectRenderCore |
Creates a special effect rendering object.
| - (NvsVideoEffectCaption *) createModularCaption: | (NSString *) | captionText | |
| inPoint: | (int64_t) | inPoint | |
| duration: | (int64_t) | duration | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Add a modular caption on the timeline.
| captionText | Text of caption |
| inPoint | The in point of the caption on the timeline (in microseconds) |
| duration | Caption display duration (in microseconds) |
| aspectRatio | The aspect ratio of caption |
| - (NvsVideoEffectCaption *) createPanoramicCaption: | (NSString *) | captionText | |
| inPoint: | (int64_t) | inPoint | |
| duration: | (int64_t) | duration | |
| captionStylePackageId: | (NSString *) | captionStylePackageId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Add a panorama caption on the timeline.
| captionText | Text of caption |
| inPoint | The in point of the caption on the timeline (in microseconds) |
| duration | Caption display duration (in microseconds) |
| captionStylePackageId | Caption style package Id.If it does not exist, you can pass an empty string or null. |
| aspectRatio | The aspect ratio of caption |
| - (NvsVideoEffect *) createVideoEffect: | (NSString *) | effectId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Creates a special effect object.
| effectId | Special effects ID. For build-in video effects, it is the name of the effect. If it is a resource package effect, it is the resource package ID. |
| aspectRatio | Aspect ratio |
| - (NvsVideoEffect *) createVideoEffect: | (NSString *) | effectId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
| realTime: | (BOOL) | realTime | |
Creates a special effect object.
| effectId | Special effects ID. For build-in video effects, it is the name of the effect. If it is a resource package effect, it is the resource package ID. |
| aspectRatio | Aspect ratio |
| realTime | realTime mode |
| - (NvsVideoEffectTransition *) createVideoTransition: | (NSString *) | transitionId | |
| aspectRatio: | (NvsEffectRational) | aspectRatio | |
Creates a special transition object.
| effectId | Special transitions ID. For build-in video transitions, it is the name of the effect. If it is a resource package transition, it is the resource package ID. |
| aspectRatio | Aspect ratio |
| realTime | realTime mode |
| + (void) destroyInstance |
Destroys the effect sdk context instance.
| - (NSArray *) getAllBuiltinVideoFxNames |
Gets a list of all build-in video effects' names.
| + (void) getSdkVersion: | (int *) | majorVersion | |
| minorVersion: | (int *) | minorVersion | |
| revisionNumber: | (int *) | revisionNumber | |
Gets the version information of Meishe SDK.
| majorVersion | Major version number |
| minorVersion | Minor version number |
| revisionNumber | Revision number |
| + (int) hasARModule |
Checks if the current SDK contains an AR module.
| + (BOOL) initHumanDetection: | (NSString *) | modelFilePath | |
| licenseFilePath: | (NSString *) | licenseFilePath | |
| features: | (int) | features | |
Initializes the human body detection mechanism.
| modelFilePath | The file path of the face model |
| licenseFilePath | The file path of license |
| features | Human detection feature flag field. Please refer to Human detection feature |
| + (BOOL) initHumanDetectionExt: | (NSString *) | modelFilePath | |
| licenseFilePath: | (NSString *) | licenseFilePath | |
| features: | (int) | features | |
Human detection initialization extension.
| modelFilePath | Path of the model file |
| licenseFilePath | Path of the license file |
| features | human detection flag field. Please refer to Flag of human detection. |
| - (NSString *) registerFontByFilePath: | (NSString *) | filePath |
Register fonts according to file path.
| + (BOOL) setupHumanDetectionData: | (int) | dataType | |
| dataFilePath: | (NSString *) | dataFilePath | |
Setup human detection data package.
| dataType | Human detection data package type.Please refer toHuman detection data packet type. |
| dataFilePath | The file path of data |
| + (NvsEffectSdkContext *) sharedInstance: | (NvsEffectSdkContextFlag) | flags |
Gets the unique instance of the effect sdk context.
| - (void) UnregisterFontByFilePath: | (NSString *) | filePath |
Unregister fonts according to file path.
| + (BOOL) verifySdkLicenseFile: | (NSString *) | sdkLicenseFilePath |
Verifies the SDK license. Note: This interface must be called before the NvsStreamingContext is initialized.
| sdkLicenseFilePath | SDK license file path |
|
readatomicassign |
Asset package manager.
1.8.18