MeiCam SDK For Android  3.14.0
Classes | List of all members
com.meicam.sdk.NvsDetectShotParser Class Reference

Detect shot class. More...

Classes

interface  DetectShotCallback
 

detest shot error

static final int DETECTSHOT_ERROR_NO_ERROR = 0
 
static final int DETECTSHOT_ERROR_FILETYPE = 1
 
static final int DETECTSHOT_ERROR_IO = 2
 
static final int DETECTSHOT_ERROR_IO_PERMISSION = 3
 
static final int DETECTSHOT_ERROR_VIDEODECODE = 4
 
static final int DETECTSHOT_ERROR_PROCESS = 5
 
 NvsDetectShotParser ()
 
void release ()
 
void setDetectShotCallback (DetectShotCallback callback, Handler hanlder)
 Set callback to detect. More...
 
void setDetectShotCallback (DetectShotCallback callback, boolean postMainLoop)
 Sets callback to detect. More...
 
boolean detect (String videoPath)
 detect video shot More...
 
boolean detect (String videoPath, long startTime, long endTime)
 detect video shot More...
 
void cancelTask (long taskId)
 Cancel task. More...
 
void notifyStart (final String videoPath, final long taskId)
 
void notifyProgress (final long taskId, final float progress)
 
void notifyFinish (final long taskId, final ArrayList timeStampList)
 
void notifyError (final long taskId, final int errorType)
 

Detailed Description

Detect shot class.

Constructor & Destructor Documentation

◆ NvsDetectShotParser()

com.meicam.sdk.NvsDetectShotParser.NvsDetectShotParser ( )
inline

Member Function Documentation

◆ cancelTask()

void com.meicam.sdk.NvsDetectShotParser.cancelTask ( long  taskId)
inline

Cancel task.

Parameters
taskIdTask Id

◆ detect() [1/2]

boolean com.meicam.sdk.NvsDetectShotParser.detect ( String  videoPath)
inline

detect video shot

Parameters
videoPathvideo path
Returns
succeed or fail

◆ detect() [2/2]

boolean com.meicam.sdk.NvsDetectShotParser.detect ( String  videoPath,
long  startTime,
long  endTime 
)
inline

detect video shot

Parameters
videoPathvideo path
startTimestart time
endTimeend time, -1 indicates detecting to the end
Returns
succeed or fail
Since
3.12.0

◆ notifyError()

void com.meicam.sdk.NvsDetectShotParser.notifyError ( final long  taskId,
final int  errorType 
)
inlineprotected

◆ notifyFinish()

void com.meicam.sdk.NvsDetectShotParser.notifyFinish ( final long  taskId,
final ArrayList  timeStampList 
)
inlineprotected

◆ notifyProgress()

void com.meicam.sdk.NvsDetectShotParser.notifyProgress ( final long  taskId,
final float  progress 
)
inlineprotected

◆ notifyStart()

void com.meicam.sdk.NvsDetectShotParser.notifyStart ( final String  videoPath,
final long  taskId 
)
inlineprotected

◆ release()

void com.meicam.sdk.NvsDetectShotParser.release ( )
inline

◆ setDetectShotCallback() [1/2]

void com.meicam.sdk.NvsDetectShotParser.setDetectShotCallback ( DetectShotCallback  callback,
boolean  postMainLoop 
)
inline

Sets callback to detect.

Parameters
callbackCallback interface
postMainLoopwhether to callback to main looper

◆ setDetectShotCallback() [2/2]

void com.meicam.sdk.NvsDetectShotParser.setDetectShotCallback ( DetectShotCallback  callback,
Handler  hanlder 
)
inline

Set callback to detect.

Parameters
callbackCallback interface
hanlderCallback to this handler,if null will callback to main looper

Member Data Documentation

◆ DETECTSHOT_ERROR_FILETYPE

final int com.meicam.sdk.NvsDetectShotParser.DETECTSHOT_ERROR_FILETYPE = 1
static

◆ DETECTSHOT_ERROR_IO

final int com.meicam.sdk.NvsDetectShotParser.DETECTSHOT_ERROR_IO = 2
static

◆ DETECTSHOT_ERROR_IO_PERMISSION

final int com.meicam.sdk.NvsDetectShotParser.DETECTSHOT_ERROR_IO_PERMISSION = 3
static

◆ DETECTSHOT_ERROR_NO_ERROR

final int com.meicam.sdk.NvsDetectShotParser.DETECTSHOT_ERROR_NO_ERROR = 0
static

◆ DETECTSHOT_ERROR_PROCESS

final int com.meicam.sdk.NvsDetectShotParser.DETECTSHOT_ERROR_PROCESS = 5
static

◆ DETECTSHOT_ERROR_VIDEODECODE

final int com.meicam.sdk.NvsDetectShotParser.DETECTSHOT_ERROR_VIDEODECODE = 4
static

The documentation for this class was generated from the following file: