MeiCam SDK For iOS  3.10.0
NvsTrack.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 "NvsObject.h"
19 
26 typedef enum NvsTrackType {
30 
45 
46 @property (readonly) NvsTrackType type;
47 
48 @property (readonly) unsigned int index;
49 
50 @property (readonly) int64_t duration;
51 
52 @property (readonly) unsigned int clipCount;
53 
70 - (int64_t)changeInPoint:(unsigned int)clipIndex newInPoint:(int64_t)newInPoint;
71 
88 - (int64_t)changeOutPoint:(unsigned int)clipIndex newOutPoint:(int64_t)newOutPoint;
89 
126 - (BOOL)splitClip:(unsigned int)clipIndex splitPoint:(int64_t)splitPoint;
127 
143 - (BOOL)removeClip:(unsigned int)clipIndex keepSpace:(BOOL)keepSpace;
144 
161 - (BOOL)removeRange:(int64_t)startTimelinePos endTimelinePos:(int64_t)endTimelinePos keepSpace:(BOOL)keepSpace;
162 
177 - (BOOL)moveClip:(unsigned int)clipIndex destClipIndex:(unsigned int)destClipIndex;
178 
198 - (BOOL)moveClip:(unsigned int)clipIndex targetTimelinePos:(int64_t)targetTimelinePos isInsertTarget:(BOOL)isInsertTarget keepSpace:(BOOL)keepSpace;
199 
211 - (BOOL)removeAllClips;
212 
224 - (void)setVolumeGain:(float)leftVolumeGain rightVolumeGain:(float)rightVolumeGain;
225 
237 - (void)getVolumeGain:(float *)leftVolumeGain rightVolumeGain:(float *)rightVolumeGain;
238 
239 @end
NvsTrackType_Audio
@ NvsTrackType_Audio
Audio.
Definition: NvsTrack.h:28
NvsTrack::index
unsigned int index
Index of track.
Definition: NvsTrack.h:48
NvsTrack::type
NvsTrackType type
Track type.
Definition: NvsTrack.h:46
NvsObject
The NvsObject class inherits from the NSObject class in object-c.
Definition: NvsObject.h:78
NvsTrack
Track is container for video and audio clips.
Definition: NvsTrack.h:45
NvsTrack::duration
int64_t duration
Duration of track (in microseconds).
Definition: NvsTrack.h:50
NvsObject.h
-[NvsTrack removeAllClips]
BOOL removeAllClips()
Remove all clips.
NvsTrackType
NvsTrackType
Track type.
Definition: NvsTrack.h:26
NvsTrack::clipCount
unsigned int clipCount
Count of clips on the track.
Definition: NvsTrack.h:52
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsTrackType_Video
@ NvsTrackType_Video
Video.
Definition: NvsTrack.h:27