|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A Multiplexer is a media processing unit takes input data from multiple tracks,
combines the data into an interleaved container format, then outputs the
interleaved data through an output DataSource.
It typically has multiple inputs and one output.
A Multiplexer can also have a single track as input. In this case,
multiple tracks don't have to be interleaved, but the Multiplexer
might format the output stream with additional data interleaved with the input track.
If a Multiplexer implements the Clock interface,
it can be used by a Player as
the master time base for synchronization. In this case, the
Multiplexer should update the media time and time-base time as
it processes the media.
| Fields inherited from interface javax.media.PlugIn |
BUFFER_PROCESSED_FAILED,
BUFFER_PROCESSED_OK,
INPUT_BUFFER_NOT_CONSUMED,
OUTPUT_BUFFER_NOT_FILLED,
PLUGIN_TERMINATED |
| Method Summary | |
DataSource |
getDataOutput()
Gets the output DataSource from this Multiplexer. |
Format[] |
getSupportedInputFormats()
Returns the input formats that this Multiplexer supports. |
ContentDescriptor[] |
getSupportedOutputContentDescriptors(Format[] inputs)
Lists the output content-descriptors that this Multiplexer supports. |
int |
process(Buffer buffer,
int trackID)
Processes the input Buffer and multiplexes it with data from other
tracks. |
ContentDescriptor |
setContentDescriptor(ContentDescriptor outputContentDescriptor)
Sets the output content-type for this Multiplexer. |
Format |
setInputFormat(Format format,
int trackID)
Sets the input Format for the specified track. |
int |
setNumTracks(int numTracks)
Sets the number of input tracks that the Multiplexer can expect
to find in the input stream. |
| Methods inherited from interface javax.media.PlugIn |
close,
getName,
open,
reset |
| Methods inherited from interface javax.media.Controls |
getControl,
getControls |
| Method Detail |
public ContentDescriptor[] getSupportedOutputContentDescriptors(Format[] inputs)
Multiplexer supports.public Format[] getSupportedInputFormats()
Multiplexer supports. The Format objects
that are returned might be loosely defined. In this case, setInputFormat
should be called with a more specific Format to make sure that the desired
Format is supported by this Multiplexer.Format objects. If no formats are supported, then
an array of size zero is returned.public int setNumTracks(int numTracks)
Multiplexer can expect
to find in the input stream.numTracks - The number of input tracks that the input stream contains.Multiplexer can handle, this
method returns the maximum number
of tracks supported by the Multiplexer.
public Format setInputFormat(Format format,
int trackID)
Format for the specified track.format - The input Format of the specified track.trackID - The index number of the track for which the Format is being set.Format preferred by the Multiplexer.
This might the same as the specified Format, a more well-defined Format
than was specified, or null if the specified Format is not supported by the
Multiplexer at all.
public int process(Buffer buffer,
int trackID)
Buffer and multiplexes it with data from other
tracks. The multiplexed output is sent to an output
DataSource.buffer - The Buffer of data to process.trackID - The index number of the track to which the input Buffer
belongs.BUFFER_PROCESSED_OK If the processing is successful. Other
possible return codes are defined in PlugIn.PlugInpublic DataSource getDataOutput()
DataSource from this Multiplexer.
The DataSource is returned in the connected state.
The returned DataSource can be a push or pull
DataSource--Push[Pull]DataSource or
Push[Pull]BufferDataSource.DataSource for this Multiplexer.public ContentDescriptor setContentDescriptor(ContentDescriptor outputContentDescriptor)
Multiplexer.outputContentDescriptor - A ContentDescriptor that describes the
content-type of the data to be output by the Multiplexer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||