MeiCam SDK For iOS
3.14.0
|
Go to the documentation of this file.
24 #import <CoreGraphics/CGGeometry.h>
116 typedef NS_ENUM(NSInteger, NvsClipRawFilterProcessesMode) {
117 NvsClipRawFilterProcessesModeNone = 0,
118 NvsClipRawFilterProcessesModeVarSize,
119 NvsClipRawFilterProcessesModeVarSizeWithFillModeUsed
179 - (void)setPlayInReverse:(BOOL)playInReverse;
242 - (void)setPan:(
float)pan andScan:(
float)scan;
255 - (void)getPan:(
float *)pan andScan:(
float *)scan;
267 - (void)enableVideoClipROI:(BOOL) enable;
312 - (void)setSourceBackgroundColor:(
NvsColor *)color;
335 - (void)disableAmbiguousCrop:(BOOL) disable;
364 - (void)setImageMotionROI:(
NvsRect *)startROI endROI:(
NvsRect *)endROI;
400 - (void)setAudioFadeInDuration:(int64_t)fadeInDuration;
424 - (void)setAudioFadeOutDuration:(int64_t)fadeOutDuration;
456 - (void)changeVariableSpeed:(
double)startSpeed endSpeed:(
double)endSpped keepAudioPitch:(BOOL)keepAudioPitch;
527 - (void)setOpacity:(
float)opacity;
553 - (void)setEnableOriginalRender:(BOOL)enable;
580 - (void)enableClipFreezeFrame:(BOOL)enable;
603 - (void)setClipFreezeFrameTrimPosition:(
long)trimPos;
638 - (void)enableRawSourceMode:(BOOL) enable;
668 - (
NvsAudioFx *)appendAudioFx:(NSString *)fxName;
688 - (
NvsAudioFx *)insertAudioFx:(NSString *)fxName fxIndex:(
unsigned int)fxIndex;
738 - (BOOL)removeAudioFx:(
unsigned int)fxIndex;
754 - (
NvsAudioFx *)getAudioFxWithIndex:(
unsigned int)fxIndex;
769 - (
NvsVideoFx *)appendBuiltinFx:(NSString *)fxName;
786 - (
NvsVideoFx *)insertBuiltinFx:(NSString *)fxName fxIndex:(
unsigned int)fxIndex;
801 - (
NvsVideoFx *)appendPackagedFx:(NSString *)fxPackageId;
818 - (
NvsVideoFx *)insertPackagedFx:(NSString *)fxPackageId fxIndex:(
unsigned int)fxIndex;
859 - (
NvsVideoFx *)appendRawBuiltinFx:(NSString *)fxName;
874 - (
NvsVideoFx *)insertRawBuiltinFx:(NSString *)fxName fxIndex:(
unsigned int)fxIndex;
887 - (
NvsVideoFx *)appendRawPackagedFx:(NSString *)fxPackageId;
902 - (
NvsVideoFx *)insertRawPackagedFx:(NSString *)fxPackageId fxIndex:(
unsigned int)fxIndex;
958 - (
NvsVideoFx *)insertBeautyFx:(
unsigned int)fxIndex;
976 - (
NvsVideoFx *)appendBuiltinFx:(NSString *)fxName inPoint:(int64_t)inPoint duration:(int64_t)duration;
996 - (
NvsVideoFx *)insertBuiltinFx:(NSString *)fxName fxIndex:(
unsigned int)fxIndex inPoint:(int64_t)inPoint duration:(int64_t)duration;
1013 - (
NvsVideoFx *)appendPackagedFx:(NSString *)fxPackageId inPoint:(int64_t)inPoint duration:(int64_t)duration;
1032 - (
NvsVideoFx *)insertPackagedFx:(NSString *)fxPackageId fxIndex:(
unsigned int)fxIndex inPoint:(int64_t)inPoint duration:(int64_t)duration;
1079 - (
NvsVideoFx *)appendRawBuiltinFx:(NSString *)fxName inPoint:(int64_t)inPoint duration:(int64_t)duration;
1096 - (
NvsVideoFx *)insertRawBuiltinFx:(NSString *)fxName fxIndex:(
unsigned int)fxIndex inPoint:(int64_t)inPoint duration:(int64_t)duration;
1111 - (
NvsVideoFx *)appendRawPackagedFx:(NSString *)fxPackageId inPoint:(int64_t)inPoint duration:(int64_t)duration;
1128 - (
NvsVideoFx *)insertRawPackagedFx:(NSString *)fxPackageId fxIndex:(
unsigned int)fxIndex inPoint:(int64_t)inPoint duration:(int64_t)duration;
1160 - (
NvsVideoFx *)insertRawCustomFx:(
id<
NvsCustomVideoFxRenderer>)customVideoFxRender fxIndex:(
unsigned int)fxIndex inPoint:(int64_t)inPoint duration:(int64_t)duration;
1194 - (
NvsVideoFx *)insertBeautyFx:(
unsigned int)fxIndex inPoint:(int64_t)inPoint duration:(int64_t)duration;
1208 - (BOOL)removeFx:(
unsigned int)fxIndex;
1221 - (BOOL)removeRawFx:(
unsigned int)fxIndex;
1266 - (
NvsVideoFx *)getFxWithIndex:(
unsigned int)fxIndex;
1290 - (
NvsVideoFx *)getRawFxByIndex:(
unsigned int)fxIndex;
1338 - (void)setRefImageSize:(
NvsSize)refImageSize;
1386 - (void)setRefImageBackgroundColor:(
NvsColor *)color;
1410 - (void)setRefImageBackgroundBlurRadius:(
float)radius;
1435 - (void)setRefImageBackgroundBlurNewModeEnable:(BOOL)newModeEnable;
1484 - (void)enablePropertyVideoFx:(BOOL)enable;
1558 - (NSArray *)getCaptionsByClipTimePosition:(int64_t)cliptimePos;
1584 - (
NvsClipCaption *)addCaption:(NSString *)captionText inPoint:(int64_t)inPoint duration:(int64_t)duration captionStylePackageId:(NSString *)captionStylePackageId;
1610 - (
NvsClipCaption *)addPanoramicCaption:(NSString *)captionText inPoint:(int64_t)inPoint duration:(int64_t)duration captionStylePackageId:(NSString *)captionStylePackageId;
1633 - (
NvsClipCaption *)addModularCaption:(NSString *)captionText inPoint:(int64_t)inPoint duration:(int64_t)duration;
1747 duration:(int64_t)duration
1748 compoundCaptionPackageId:(NSString *)compoundCaptionPackageId;
1835 - (NSArray *)getAnimatedStickersByClipTimePosition:(int64_t)cliptimePos;
1863 - (
NvsClipAnimatedSticker *)addAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId;
1891 - (
NvsClipAnimatedSticker *)addPanoramicAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId;
1923 - (
NvsClipAnimatedSticker *)addCustomAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId customImagePath:(NSString*)customImagePath;
1955 - (
NvsClipAnimatedSticker *)addCustomPanoramicAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId customImagePath:(NSString*)customImagePath;
Video effect.
Definition: NvsVideoFx.h:48
Clip animated sticker class.
Definition: NvsClipAnimatedSticker.h:37
NvsRoleInTheme
The role of the clip in the theme.
Definition: NvsCommonDef.h:121
typedef NS_ENUM(NSInteger, NvsClipRawFilterProcessesMode)
Definition: NvsVideoClip.h:116
@ NvsSourceBackgroundModeBlur
Blur.
Definition: NvsVideoClip.h:59
BOOL imageMotionAnimationEnabled
Whether it supports animation of images.
Definition: NvsVideoClip.h:149
@ NvsVariantImageFillModeAspectFit
Select one of the long sides of the length and width as the basis to fill in equal proportions.
Definition: NvsVideoClip.h:70
@ NvsExtraVideoRotation_90
Definition: NvsVideoClip.h:83
@ NvsClipBlendingMode_LinearBurn
Linear Burn mode.
Definition: NvsVideoClip.h:103
@ NvsStreamingEngineImageClipMotionMode_LetterBoxZoomOut
Zoom out.
Definition: NvsVideoClip.h:46
@ NvsExtraVideoRotation_270
Definition: NvsVideoClip.h:85
NvsClipWrapMode
Definition: NvsVideoClip.h:75
Rectangle.
Definition: NvsCommonDef.h:361
BOOL getPlayInReverse()
Gets whether the clip is reversed.
NvsClipCaption * getLastCaption()
Get the last caption on the clip.
@ NvsClipWrapMode_Repeat
Definition: NvsVideoClip.h:78
@ NvsStreamingEngineImageClipMotionMode_ROI
The image clip's ROI(Region Of Interesting) //!< 图片片段ROI(Region Of Interesting)
Definition: NvsVideoClip.h:47
NvsSourceBackgroundMode getSourceBackgroundMode()
Gets the background mode.
@ NvsClipBlendingMode_Subtract
Subtract mode.
Definition: NvsVideoClip.h:97
@ NvsClipBlendingMode_Overlay
Overlay mode.
Definition: NvsVideoClip.h:106
@ NvsClipBlendingMode_SoftLight
SoftLight mode.
Definition: NvsVideoClip.h:107
@ NvsClipWrapMode_Repeat_FirstFrame
Definition: NvsVideoClip.h:77
NvsClipCompoundCaption * getFirstCompoundCaption()
Get the first compound caption on the Clip.
@ NvsClipBlendingMode_Screen
Screen mode.
Definition: NvsVideoClip.h:98
Custom audio effects renderer interface.
Definition: NvsCustomAudioFx.h:39
NvsRoleInTheme roleInTheme
The clip's role in themes (General, title and trailer).
Definition: NvsVideoClip.h:145
NvsColor getSourceBackgroundColor()
Gets the background color.
NvsClipAnimatedSticker * getLastAnimatedSticker()
Get the last animated sticker on the Clip.
long getClipFreezeFrameTrimPosition()
Gets video freeze trim position(in microseconds).
NvsStreamingEngineImageClipMotionMode
The motion mode of the clip.
Definition: NvsVideoClip.h:44
@ NvsClipBlendingMode_VividLight
VividLight mode.
Definition: NvsVideoClip.h:109
@ NvsClipBlendingMode_Darken
Darken mode.
Definition: NvsVideoClip.h:101
unsigned int getRawFxCount()
Gets the number of effects on the raw input on the clip. Note: The effect index on the clip starts fr...
NvsExtraVideoRotation getExtraVideoRotation()
Gets the video's extra rotation angle.
Custom video effects renderer interface.
Definition: NvsCustomVideoFx.h:52
NvsRect endROI
Image clip's ending ROI (Region Of Interesting)
Definition: NvsVideoClip.h:153
NvsVariantImageFillMode
Definition: NvsVideoClip.h:69
@ NvsClipBlendingMode_Difference
Difference mode.
Definition: NvsVideoClip.h:113
@ NvsExtraVideoRotation_0
Definition: NvsVideoClip.h:82
float getRefImageBackgroundBlurRadius()
Gets ref image background blur radius.
Self-defined color.
Definition: NvsCommonDef.h:403
NvsClipBlendingMode getBlendingMode()
get blending mode from video clip.
NvsSourceBackgroundMode
Background mode.
Definition: NvsVideoClip.h:57
BOOL isVideoClipROIEnabled()
Gets whether to enable ROI mode on video clip.
BOOL removeAllAudioFx()
Remove all the audio effects.
NvsSourceBackgroundMode getRefImageBackgroundMode()
Gets ref image background mode.
NvsRect startROI
Image clip's starting ROI (Region Of Interesting)
Definition: NvsVideoClip.h:151
@ NvsVideoClipType_AV
Audio and video.
Definition: NvsVideoClip.h:33
NvsClipWrapMode getClipWrapMode()
Gets the clip's loop mode.
NvsVideoFx * getPropertyVideoFx()
Gets the property effect of the video clip.
@ NvsClipBlendingMode_Lighten
Lighten mode.
Definition: NvsVideoClip.h:104
@ NvsClipBlendingMode_HardLight
HardLight mode.
Definition: NvsVideoClip.h:108
BOOL removeAllVideoFx()
Remove all the video effects.
int64_t getAudioFadeOutDuration()
Get Audio Fade-Out Duration.
double getEndSpeed()
Get the playback speed of the clip.
BOOL getRefImageBackgroundBlurNewModeEnable()
Gets ref image background blur new mode enable.
NvsVideoClipType
The type of the video clip.
Definition: NvsVideoClip.h:32
NvsVideoClipType videoType
Type of the video clip.
Definition: NvsVideoClip.h:142
BOOL isAmbiguousCropDisabled()
Gets whether the video disables the approximate scale cropping of the screen.
@ NvsClipBlendingMode_PinLight
PinLight mode.
Definition: NvsVideoClip.h:110
void updateAudioForClipVideoFx()
Update the audio information in the current clip effect.
@ NvsClipBlendingMode_HardMix
HardMix mode.
Definition: NvsVideoClip.h:112
@ NvsClipBlendingMode_Add
Add mode.
Definition: NvsVideoClip.h:99
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsVideoFx * appendBeautyFx()
Appends the beauty effect on the clip.
@ NvsStreamingEngineImageClipMotionMode_Crop
Image clip's crop.
Definition: NvsVideoClip.h:48
Clip compound caption.
Definition: NvsClipCompoundCaption.h:36
@ NvsClipBlendingMode_Normal
Normal mode.
Definition: NvsVideoClip.h:95
@ NvsClipBlendingMode_Burn
Burn mode.
Definition: NvsVideoClip.h:102
BOOL isClipFreezeFrameEnabled()
Gets video freeze frame enabled.
NvsStreamingEngineImageClipMotionMode imageMotionMode
The motion mode of the image clip.
Definition: NvsVideoClip.h:147
NvsClipRawFilterProcessesMode rawFilterProcessesMode
raw filter processes mode
Definition: NvsVideoClip.h:157
BOOL removeAllFx()
Remove all the effects.
Clip captions.
Definition: NvsClipCaption.h:33
Clips are specific description of audio and video files.
Definition: NvsClip.h:47
NvsSize getRefImageSize()
Gets ref image size.
@ NvsClipWrapMode_Repeat_LastFrame
Definition: NvsVideoClip.h:76
BOOL isPropertyVideoFxEnabled()
Gets whether the original scale rendering mode is turned on.
NvsExtraVideoRotation
Definition: NvsVideoClip.h:81
@ NvsVideoClipType_Image
Image.
Definition: NvsVideoClip.h:34
NvsColor getRefImageBackgroundColor()
Gets the ref image background color.
int64_t getAudioFadeInDuration()
Get Audio Fade-In Duration.
The video clip is description of the video file.
Definition: NvsVideoClip.h:140
@ NvsClipBlendingMode_Multiplay
multiplay mode
Definition: NvsVideoClip.h:96
NvsClipBlendingMode
Track blending mode.
Definition: NvsVideoClip.h:94
double getStartSpeed()
Get the playback speed of the clip.
NvsClipAnimatedSticker * getFirstAnimatedSticker()
Get the first animated sticker on the Clip.
@ NvsVariantImageFillModeAspectFill
Select one of the short sides of the length and width as the basis to fill in equal proportions.
Definition: NvsVideoClip.h:71
NvsClipCaption * getFirstCaption()
Get the first caption on the clip.
NvsVariantImageFillMode getRefImageFillMode()
Gets ref image fill mode.
@ NvsExtraVideoRotation_180
Definition: NvsVideoClip.h:84
NvsClipCompoundCaption * getLastCompoundCaption()
Get the last compound caption on the Clip.
Audio effects.
Definition: NvsAudioFx.h:31
BOOL isOriginalRender()
Gets whether the original scale rendering mode is turned on.
@ NvsClipBlendingMode_Exclusion
Exclusion mode.
Definition: NvsVideoClip.h:100
Size.
Definition: NvsCommonDef.h:350
BOOL isRawSourceModeEnabled()
The raw source mode is enabled.
@ NvsClipBlendingMode_Dodge
Dodge mode.
Definition: NvsVideoClip.h:105
float getOpacity()
set opacity value from video clip.
unsigned int audioFxCount
The count of audio effects on the clip.
Definition: NvsVideoClip.h:155
@ NvsClipBlendingMode_LinearLight
LinearLight mode.
Definition: NvsVideoClip.h:111
@ NvsStreamingEngineImageClipMotionMode_LetterBoxZoomIn
Zoom in.
Definition: NvsVideoClip.h:45
@ NvsVariantImageFillModeFill
fill
Definition: NvsVideoClip.h:72
@ NvsSourceBackgroundModeColorSolid
Solid color.
Definition: NvsVideoClip.h:58