MeiCam SDK For Android  3.6.0
Classes | Public Member Functions | Protected Member Functions | List of all members
com.meicam.sdk.NvsPassthroughConvertor Class Reference

NvsPassthroughConvertor. More...

Classes

interface  PassthroughConvertorCallback
 

Public Member Functions

 NvsPassthroughConvertor ()
 
void release ()
 Release passthrough convertor object. More...
 
boolean isReleased ()
 Whether released. More...
 
void setPassthroughConvertorCallback (PassthroughConvertorCallback callback, Handler hanlder)
 Set callback to passthrough convertor. More...
 
void setPassthroughConvertorCallback (PassthroughConvertorCallback callback, boolean postMainLoop)
 Sets callback to passthrough convertor. More...
 
long convertMediaFile (String srcFile, String dstFile, long trimIn, long trimOut, Hashtable< String, Object > configurations)
 Start to passthrough file. More...
 
void cancelTask (long taskId)
 Cancel task. More...
 

Static Public Attributes

passthrough error

static final int PASSTHROUGH_ERROR_NO_ERROR = 0
 no error More...
 
static final int PASSTHROUGH_ERROR_CANCEL = 1
 task is canceled More...
 
static final int PASSTHROUGH_ERROR_PROCESS_VIDEO = 2
 process video error More...
 
static final int PASSTHROUGH_ERROR_PROCESS_AUDIO = 3
 process audio error More...
 
static final int PASSTHROUGH_ERROR_INVALID_DATA = 4
 invalid data error More...
 
static final int PASSTHROUGH_ERROR_IOERROR = 5
 input/output error More...
 
static final int PASSTHROUGH_ERROR_UNKNOWN = 65535
 

Protected Member Functions

void finalize () throws Throwable
 
void notifyProgress (final long taskId, final float progress)
 
void notifyFinish (final long taskId, final String srcFile, final String dstFile, final long trimIn, final long trimOut, final int errorCode)
 

Detailed Description

NvsPassthroughConvertor.

Constructor & Destructor Documentation

◆ NvsPassthroughConvertor()

com.meicam.sdk.NvsPassthroughConvertor.NvsPassthroughConvertor ( )
inline

Member Function Documentation

◆ cancelTask()

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

Cancel task.

Parameters
taskIdTask Id

◆ convertMediaFile()

long com.meicam.sdk.NvsPassthroughConvertor.convertMediaFile ( String  srcFile,
String  dstFile,
long  trimIn,
long  trimOut,
Hashtable< String, Object >  configurations 
)
inline

Start to passthrough file.

Parameters
srcFilesource file
dstFiledestination file
trimIntrim in point
trimOuttrim out point
configurationspassthrough params
Returns
Task ID

◆ finalize()

void com.meicam.sdk.NvsPassthroughConvertor.finalize ( ) throws Throwable
inlineprotected

◆ isReleased()

boolean com.meicam.sdk.NvsPassthroughConvertor.isReleased ( )
inline

Whether released.

Returns
Returns whether released

◆ notifyFinish()

void com.meicam.sdk.NvsPassthroughConvertor.notifyFinish ( final long  taskId,
final String  srcFile,
final String  dstFile,
final long  trimIn,
final long  trimOut,
final int  errorCode 
)
inlineprotected

◆ notifyProgress()

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

◆ release()

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

Release passthrough convertor object.

◆ setPassthroughConvertorCallback() [1/2]

void com.meicam.sdk.NvsPassthroughConvertor.setPassthroughConvertorCallback ( PassthroughConvertorCallback  callback,
boolean  postMainLoop 
)
inline

Sets callback to passthrough convertor.

Parameters
callbackCallback interface
postMainLoopwhether to callback to main looper

◆ setPassthroughConvertorCallback() [2/2]

void com.meicam.sdk.NvsPassthroughConvertor.setPassthroughConvertorCallback ( PassthroughConvertorCallback  callback,
Handler  hanlder 
)
inline

Set callback to passthrough convertor.

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

Member Data Documentation

◆ PASSTHROUGH_ERROR_CANCEL

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_CANCEL = 1
static

task is canceled

◆ PASSTHROUGH_ERROR_INVALID_DATA

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_INVALID_DATA = 4
static

invalid data error

◆ PASSTHROUGH_ERROR_IOERROR

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_IOERROR = 5
static

input/output error

◆ PASSTHROUGH_ERROR_NO_ERROR

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_NO_ERROR = 0
static

no error

◆ PASSTHROUGH_ERROR_PROCESS_AUDIO

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_PROCESS_AUDIO = 3
static

process audio error

◆ PASSTHROUGH_ERROR_PROCESS_VIDEO

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_PROCESS_VIDEO = 2
static

process video error

◆ PASSTHROUGH_ERROR_UNKNOWN

final int com.meicam.sdk.NvsPassthroughConvertor.PASSTHROUGH_ERROR_UNKNOWN = 65535
static

task has unknown error


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