美摄SDK For Android  3.13.5
| 所有成员列表
com.meicam.sdk.NvsDetectShotParser类 参考

转场检测类 更多...

interface  DetectShotCallback
 

检测错误类型

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)
 设置检测类的回调 更多...
 
void setDetectShotCallback (DetectShotCallback callback, boolean postMainLoop)
 设置检测类的回调 更多...
 
boolean detect (String videoPath)
 检测视频转场帧 更多...
 
boolean detect (String videoPath, long startTime, long endTime)
 检测视频转场帧 更多...
 
void cancelTask (long taskId)
 取消检测任务 更多...
 
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)
 

详细描述

转场检测类

构造及析构函数说明

◆ NvsDetectShotParser()

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

成员函数说明

◆ cancelTask()

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

取消检测任务

参数
taskId任务id

◆ detect() [1/2]

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

检测视频转场帧

参数
videoPath视频路径
返回
是否检测成功

◆ detect() [2/2]

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

检测视频转场帧

参数
videoPath视频路径
startTime开始时间
endTime截止时间,-1标识检测到视频结尾
返回
是否检测成功
自从
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

设置检测类的回调

参数
callback回调对象
postMainLoop是否回调到主消息循环

◆ setDetectShotCallback() [2/2]

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

设置检测类的回调

参数
callback回调对象
hanlder回调的hanlder,如果是null就回调到mainLooper

类成员变量说明

◆ 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

该类的文档由以下文件生成: