|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
Field Summary | |
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. |
Method Summary | |
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. |
Methods inherited from interface javax.media.Controls |
getControl,
getControls |
Field Detail |
public static final int BUFFER_PROCESSED_OK
Buffer
was converted successfully to output.public static final int BUFFER_PROCESSED_FAILED
Buffer
could not be handled.public 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
.public 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
.public static final int PLUGIN_TERMINATED
Method Detail |
public java.lang.String getName()
String
that contains the descriptive name of the
plug-in.public void open() throws ResourceUnavailableException
open
is called.
Buffers should not
be passed into the plug-in without first calling this method.public void close()
close
is called. A closed
plug-in can be reinstated by calling
open
again.public void reset()
reset
method is typically called if the end of media
is reached or the media
is repositioned.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |