MeiCam SDK For iOS  3.7.2
NvsVideoTrack.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright China Digital Video (Beijing) Limited, 2016. All rights reserved.
4 //
5 // This code and information is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the implied
7 // warranties of merchantability and/or fitness for a particular purpose.
8 //
9 //--------------------------------------------------------------------------------
10 // Birth Date: Dec 29. 2016
11 // Author: NewAuto video team
12 //================================================================================
13 
16 #pragma once
17 
18 #import "NvsTrack.h"
19 #import "NvsTimeline.h"
20 #import "NvsTrackCaption.h"
22 #import "NvsCustomVideoFx.h"
25 
26 @class NvsVideoClip;
27 @class NvsVideoTransition;
28 @class NvsTrackVideoFx;
29 
36 typedef enum NvsTrackAddFxFlags {
39 
40 
64 
102 - (NvsVideoClip *)appendClip:(NSString *)filePath;
103 
129 - (NvsVideoClip *)appendClip:(NSString *)filePath trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut;
130 
172 - (NvsVideoClip *)insertClip:(NSString *)filePath clipIndex:(unsigned int)clipIndex;
173 
223 - (NvsVideoClip *)insertClip:(NSString *)filePath trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut clipIndex:(unsigned int)clipIndex;
224 
266 - (NvsVideoClip *)addClip:(NSString *)filePath inPoint:(int64_t)inPoint;
267 
324 - (NvsVideoClip *)addClip:(NSString *)filePath inPoint:(int64_t)inPoint trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut;
325 
342 - (NvsVideoClip *)appendTimelineClip:(NvsTimeline *)timeline;
343 
369 - (NvsVideoClip *)appendTimelineClip:(NvsTimeline *)timeline trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut;
370 
390 - (NvsVideoClip *)insertTimelineClip:(NvsTimeline *)timeline clipIndex:(unsigned int)clipIndex;
391 
418 - (NvsVideoClip *)insertTimelineClip:(NvsTimeline *)timeline trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut clipIndex:(unsigned int)clipIndex;
419 
442 - (NvsVideoClip *)addTimelineClip:(NvsTimeline *)timeline inPoint:(int64_t)inPoint;
443 
468 - (NvsVideoClip *)addTimelineClip:(NvsTimeline *)timeline inPoint:(int64_t)inPoint trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut;
469 
483 - (NvsVideoClip *)getClipWithIndex:(unsigned int)clipIndex;
484 
496 - (NvsVideoClip *)getClipWithTimelinePosition:(int64_t)timelinePos;
497 
543 - (NvsVideoTransition *)setBuiltinTransition:(unsigned int)srcClipIndex withName:(NSString *)transitionName;
544 
560 - (NvsVideoTransition *)setPackagedTransition:(unsigned int)srcClipIndex withPackageId:(NSString *)packageId;
561 
580 - (NvsVideoTransition *)setCustomVideoTransition:(unsigned int)srcClipIndex withCustomRender:(id<NvsCustomVideoTransitionRenderer>)customVideoFxRender;
581 
593 - (NvsVideoTransition *)getTransitionWithSourceClipIndex:(unsigned int)srcClipIndex;
594 
606 
618 
631 - (NvsTrackVideoFx *)getPrevTrackVideoFx:(NvsTrackVideoFx *)videoFx;
632 
645 - (NvsTrackVideoFx *)getNextTrackVideoFx:(NvsTrackVideoFx *)videoFx;
646 
665 - (NSArray *)getTrackVideoFxByPosition:(int64_t)pos;
666 
678 - (void)setEnableOriginalRender:(BOOL)enable;
679 
691 - (BOOL)isOriginalRender;
692 
705 - (void)setProxyScale:(NvsRational)proxyScale;
706 
720 
732 
744 
756 - (NvsTrackCaption *)getPrevCaption:(NvsTrackCaption *)caption;
757 
769 - (NvsTrackCaption *)getNextCaption:(NvsTrackCaption *)caption;
770 
788 - (NSArray *)getCaptionsByTimelinePosition:(int64_t)timelinePos;
789 
813 - (NvsTrackCaption *)addCaption:(NSString *)captionText inPoint:(int64_t)inPoint duration:(int64_t)duration captionStylePackageId:(NSString *)captionStylePackageId;
814 
839 - (NvsTrackCaption *)addPanoramicCaption:(NSString *)captionText inPoint:(int64_t)inPoint duration:(int64_t)duration captionStylePackageId:(NSString *)captionStylePackageId;
840 
862 - (NvsTrackCaption *)addModularCaption:(NSString *)captionText inPoint:(int64_t)inPoint duration:(int64_t)duration;
863 
875 - (NvsTrackCaption *)removeCaption:(NvsTrackCaption *)caption;
876 
889 
902 
915 - (NvsTrackCompoundCaption *)getPrevCompoundCaption:(NvsTrackCompoundCaption *)caption;
916 
929 - (NvsTrackCompoundCaption *)getNextCompoundCaption:(NvsTrackCompoundCaption *)caption;
930 
949 - (NSArray<NvsTrackCompoundCaption*> *)getCompoundCaptionsByTimelinePosition:(int64_t)timelinePos;
950 
974 - (NvsTrackCompoundCaption *)addCompoundCaption:(int64_t)inPoint
975  duration:(int64_t)duration
976  compoundCaptionPackageId:(NSString *)compoundCaptionPackageId;
977 
990 - (NvsTrackCompoundCaption *)removeCompoundCaption:(NvsTrackCompoundCaption *)caption;
991 
1003 
1014 
1026 - (NvsTrackAnimatedSticker *)getPrevAnimatedSticker:(NvsTrackAnimatedSticker *)animatedSticker;
1027 
1039 - (NvsTrackAnimatedSticker *)getNextAnimatedSticker:(NvsTrackAnimatedSticker *)animatedSticker;
1040 
1058 - (NSArray *)getAnimatedStickersByTimelinePosition:(int64_t)timelinePos;
1059 
1085 - (NvsTrackAnimatedSticker *)addAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId;
1086 
1113 - (NvsTrackAnimatedSticker *)addPanoramicAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId;
1114 
1144 - (NvsTrackAnimatedSticker *)addCustomAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId customImagePath:(NSString*)customImagePath;
1145 
1176 - (NvsTrackAnimatedSticker *)addCustomPanoramicAnimatedSticker:(int64_t)inPoint duration:(int64_t)duration animatedStickerPackageId:(NSString*)animatedStickerPackageId customImagePath:(NSString*)customImagePath;
1177 
1189 - (NvsTrackAnimatedSticker *)removeAnimatedSticker:(NvsTrackAnimatedSticker *)animatedSticker;
1190 
1201 
1218 - (NvsTrackVideoFx *)addBuiltinTrackVideoFx:(int64_t)inPoint duration:(int64_t)duration videoFxName:(NSString *)videoFxName;
1219 
1236 - (NvsTrackVideoFx *)addBuiltinTrackVideoFx:(int64_t)inPoint duration:(int64_t)duration videoFxName:(NSString *)videoFxName flags:(int)flags;
1237 
1254 - (NvsTrackVideoFx *)addPackagedTrackVideoFx:(int64_t)inPoint duration:(int64_t)duration videoFxPackageId:(NSString *)videoFxPackageId;
1255 
1272 - (NvsTrackVideoFx *)addCustomTrackVideoFx:(int64_t)inPoint
1273  duration:(int64_t)duration
1274  customVideoFxRender:(id<NvsCustomVideoFxRenderer>)customVideoFxRender;
1275 
1288 - (NvsTrackVideoFx *)removeTrackVideoFx:(NvsTrackVideoFx *)videoFx;
1289 
1290 @end
NvsTrackCaption.h
-[NvsVideoTrack getLastCompoundCaption]
NvsTrackCompoundCaption * getLastCompoundCaption()
Get the last compound caption on the track.
NvsTimeline
Timeline is which the entity of editing the scene.
Definition: NvsTimeline.h:67
NvsTrackCompoundCaption
Track compound caption.
Definition: NvsTrackCompoundCaption.h:24
NvsTrack.h
NvsTrackCompoundCaption.h
NvsTrackAnimatedSticker
Track animated sticker class.
Definition: NvsTrackAnimatedSticker.h:37
NvsTrackAnimatedSticker.h
NvsTrackAddFxFlags_RenderAtClipRawFilter
@ NvsTrackAddFxFlags_RenderAtClipRawFilter
Render this effect when rendering the raw filter on video clip.
Definition: NvsVideoTrack.h:37
NvsVideoTrack
Video track is the collection of video clips.
Definition: NvsVideoTrack.h:64
NvsTrack
Track is container for video and audio clips.
Definition: NvsTrack.h:45
NvsRational
Rational value.
Definition: NvsCommonDef.h:254
-[NvsVideoTrack updateAudioForTrackVideoFx]
void updateAudioForTrackVideoFx()
Update the audio information in the current track effect.
NvsCustomVideoFxRenderer-p
Custom video effects renderer interface.
Definition: NvsCustomVideoFx.h:47
-[NvsVideoTrack getFirstCompoundCaption]
NvsTrackCompoundCaption * getFirstCompoundCaption()
Get the first compound caption on the track.
-[NvsVideoTrack getLastAnimatedSticker]
NvsTrackAnimatedSticker * getLastAnimatedSticker()
Get the last animated sticker on the track.
NvsTrackVideoFx
Track video effect.
Definition: NvsTrackVideoFx.h:40
NvsTrackCaption
Track captions.
Definition: NvsTrackCaption.h:33
-[NvsVideoTrack getLastCaption]
NvsTrackCaption * getLastCaption()
Get the last caption on the track.
-[NvsVideoTrack getFirstTrackVideoFx]
NvsTrackVideoFx * getFirstTrackVideoFx()
Get the first track video effect on the track.
-[NvsVideoTrack isOriginalRender]
BOOL isOriginalRender()
Gets whether the original scale rendering mode is turned on.
NvsCustomVideoTransitionRenderer-p
Custom video effects renderer interface.
Definition: NvsCustomVideoTransition.h:45
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsTrackAddFxFlags
NvsTrackAddFxFlags
Track type.
Definition: NvsVideoTrack.h:36
NvsTimeline.h
-[NvsVideoTrack getFirstCaption]
NvsTrackCaption * getFirstCaption()
Get the first caption on the track.
NvsCustomVideoFx.h
NvsVideoTransition
Video transition is a effect of switching between clips.
Definition: NvsVideoTransition.h:62
-[NvsVideoTrack getProxyScale]
NvsRational getProxyScale()
Gets whether the current track is disabled from rendering at the proxy scale.
NvsVideoClip
The video clip is description of the video file.
Definition: NvsVideoClip.h:133
NvsCustomVideoTransition.h
-[NvsVideoTrack getFirstAnimatedSticker]
NvsTrackAnimatedSticker * getFirstAnimatedSticker()
Get the first animated sticker on the track.
-[NvsVideoTrack getLastTrackVideoFx]
NvsTrackVideoFx * getLastTrackVideoFx()
Get the last track video effect on the track.