15 #import <Foundation/Foundation.h>
27 NvsPassthroughConvertorErrorType_NoError = 0,
28 NvsPassthroughConvertorErrorType_Cancled,
29 NvsPassthroughConvertorErrorType_ProcessVideoError,
30 NvsPassthroughConvertorErrorType_ProcessAudioError,
31 NvsPassthroughConvertorErrorType_InvalidData,
32 NvsPassthroughConvertorErrorType_IO,
33 NvsPassthroughConvertorErrorType_UnkownError = 65535
34 } NvsPassthroughConvertorErrorType;
36 @protocol NvsPassthroughConvertorDelegate<NSObject>
38 - (void)didConvertorProgress:(int64_t)taskId progress:(
float)progress;
40 - (void)didConvertorFinish:(int64_t)taskId sourceFile:(NSString*)src outputFile:(NSString*)dst trimIn:(int64_t)trimIn trimOut:(int64_t)trimOut errorCode:(NvsPassthroughConvertorErrorType)error;
45 NVS_EXPORT @interface NvsPassthroughConvertor : NSObject
47 @property (nonatomic, weak) id<NvsPassthroughConvertorDelegate> delegate;
51 - (int64_t)convertMediaFile:(NSString *)srcFilePath
52 outputFile:(NSString *)outputFilePath
53 trimIn:(int64_t)trimIn
54 trimOut:(int64_t)trimOut
55 options:(NSMutableDictionary *)options;
57 - (void)cancelTask:(int64_t)taskId;