|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface PlugIn
The base interface for JMF plug-ins. A PlugIn
is a media processing
unit that accepts data in a particular format and processes or presents the
data. Plug-ins are registered through the PlugInManager
.
字段摘要 | |
---|---|
static int |
BUFFER_PROCESSED_FAILED
The input Buffer could not be handled. |
static int |
BUFFER_PROCESSED_OK
The input Buffer was converted successfully to output. |
static int |
INPUT_BUFFER_NOT_CONSUMED
The input Buffer chunk was not fully consumed. |
static int |
OUTPUT_BUFFER_NOT_FILLED
The output Buffer chunk was not filled. |
static int |
PLUGIN_TERMINATED
The processing of the given buffer has caused the plugin to terminate. |
方法摘要 | |
---|---|
void |
close()
Closes the plug-in component and releases the resources it was using. |
java.lang.String |
getName()
Gets the name of this plug-in as a human-readable string. |
void |
open()
Opens the plug-in software or hardware component and acquires the resources that the plug-in needs to operate. |
void |
reset()
Resets the state of the plug-in. |
从接口 javax.media.Controls 继承的方法 |
---|
getControl, getControls |
字段详细信息 |
---|
static final int BUFFER_PROCESSED_OK
Buffer
was converted successfully to output.
static final int BUFFER_PROCESSED_FAILED
Buffer
could not be handled.
static final int INPUT_BUFFER_NOT_CONSUMED
Buffer
chunk was not fully consumed.
The plug-in should update the offset + length fields of the
Buffer
. The plug-in will be called later with the same
input Buffer
.
static final int OUTPUT_BUFFER_NOT_FILLED
Buffer
chunk was not filled. The plug-in should update
the offset + length fields of the Buffer
.
The plug-in will be called later with the same output Buffer
.
static final int PLUGIN_TERMINATED
方法详细信息 |
---|
java.lang.String getName()
String
that contains the descriptive name of the
plug-in.void open() throws ResourceUnavailableException
open
is called.
Buffers should not
be passed into the plug-in without first calling this method.
ResourceUnavailableException
- If all of the required resources cannot be
acquired.void close()
close
is called. A closed
plug-in can be reinstated by calling
open
again.
void reset()
reset
method is typically called if the end of media
is reached or the media
is repositioned.
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |