MeiCam SDK For iOS  3.13.5
NvsDetectShotParser.h
Go to the documentation of this file.
1 //================================================================================
2 //
3 // (c) Copyright Meishe Co. Ltd, 2023. 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: Oct 27. 2023
11 // Author: Meishe video team
12 //================================================================================
13 #pragma once
14 
15 #import "NvsCommonDef.h"
16 #import <Foundation/Foundation.h>
17 
24 typedef enum {
32 
33 @protocol NvsDetectShotParserDelegate <NSObject>
34 @optional
35 
46 - (void)didDetectStarted:(NSString*)videoPath taskId:(int64_t)taskId;
47 
58 - (void)didDetectFinished:(int64_t)taskId timeStampArray:(NSArray *)timeStampArray;
59 
70 - (void)didDetectError:(int64_t)taskId errorType:(int)errorType;
71 
82 - (void)didDetectProgress:(int64_t)taskId progress:(float)progress;
83 
84 @end
85 
95 NVS_EXPORT @interface NvsDetectShotParser : NSObject
96 
97 @property (atomic, weak) id<NvsDetectShotParserDelegate> delegate;
98 
99 
100 - (instancetype)init;
101 
112 - (Boolean)detect:(NSString *)videoPath;
113 
128 - (Boolean)detect:(NSString *)videoPath startTime:(int64_t)startTime endTime:(int64_t)endTime;
129 
138 - (void)cancelTask:(int64_t)taskId;
139 
140 @end
NvsDetectShotErrorType_NoError
@ NvsDetectShotErrorType_NoError
Definition: NvsDetectShotParser.h:25
NvsDetectShotErrorType_IO_Permission
@ NvsDetectShotErrorType_IO_Permission
Definition: NvsDetectShotParser.h:28
NvsDetectShotErrorType_IO
@ NvsDetectShotErrorType_IO
Definition: NvsDetectShotParser.h:27
NvsDetectShotParser
Detect shot parser class.
Definition: NvsDetectShotParser.h:96
NvsDetectShotParserDelegate-p
Definition: NvsDetectShotParser.h:33
NvsDetectShotErrorType_VideoDecode
@ NvsDetectShotErrorType_VideoDecode
Definition: NvsDetectShotParser.h:29
-[NvsDetectShotParser init]
instancetype init()
NVS_EXPORT
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
NvsDetectShotErrorType
NvsDetectShotErrorType
Type of detect error.
Definition: NvsDetectShotParser.h:24
NvsCommonDef.h
NvsDetectShotErrorType_FileType
@ NvsDetectShotErrorType_FileType
Definition: NvsDetectShotParser.h:26
NvsDetectShotErrorType_Process
@ NvsDetectShotErrorType_Process
Definition: NvsDetectShotParser.h:30
NvsDetectShotParser::delegate
id< NvsDetectShotParserDelegate > delegate
Definition: NvsDetectShotParser.h:97