|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.ProcessorModel
Encapsulates the basic information required to create a
Processor
. A ProcessorModel
can be passed to
Manager.createRealizedProcessor
to construct a Processor
.
Extend this class to provide more control over what the
output format of each track should be and let the
Manager.createRealizedProcessor
method do the rest of
the work of creating and realizing a suitable Processor
.
Constructor Summary | |
ProcessorModel()
Creates a ProcessorModel with null properties. |
|
ProcessorModel(DataSource inputDataSource,
Format[] formats,
ContentDescriptor outputContentDescriptor)
Creates a ProcessorModel for the specified input DataSource , track formats, and
output type. |
|
ProcessorModel(Format[] formats,
ContentDescriptor outputContentDescriptor)
Creates a ProcessorModel for the specified track formats and
output content-type. |
|
ProcessorModel(MediaLocator inputLocator,
Format[] formats,
ContentDescriptor outputContentDescriptor)
Creates a ProcessorModel for the specified input
MediaLocator , track formats, and output type. |
Method Summary | |
ContentDescriptor |
getContentDescriptor()
Gets the output content-type specified by this ProcessorModel . |
DataSource |
getInputDataSource()
Gets the input DataSource that specifies the media source for this ProcessorModel . |
MediaLocator |
getInputLocator()
Gets the input MediaLocator that specifies the media source for this ProcessorModel . |
Format |
getOutputTrackFormat(int tIndex)
Gets the preferred Format of the specified track. |
int |
getTrackCount(int availableTrackCount)
Gets the number of tracks required as the output of the Processor constructed with this ProcessorModel . |
boolean |
isFormatAcceptable(int tIndex,
Format tFormat)
Checks whether or not tFormat is an acceptable format for the track
tIndex . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ProcessorModel()
ProcessorModel
with null properties.public ProcessorModel(Format[] formats, ContentDescriptor outputContentDescriptor)
ProcessorModel
for the specified track formats and
output content-type. This constructor creates a ProcessorModel
that can be used to construct a Processor
for capturing media data.formats
- An array of Format
objects that contains the desired track formats.outputContentDescriptor
- A ContentDescriptor
that describes the desired output content-type.public ProcessorModel(DataSource inputDataSource, Format[] formats, ContentDescriptor outputContentDescriptor)
ProcessorModel
for the specified input DataSource
, track formats, and
output type.inputDataSource
- The DataSource
that identifies the media source for the ProcessorModel
.formats
- An array of Format
objects that contains the desired track formats.outputContentDescriptor
- A ContentDescriptor
that describes the desired output content-type.public ProcessorModel(MediaLocator inputLocator, Format[] formats, ContentDescriptor outputContentDescriptor)
ProcessorModel
for the specified input
MediaLocator
, track formats, and output type.inputLocator
- The MediaLocator
that identifies the media source for this ProcessorModel
.formats
- An array of Format
objects that contains the desired track formats.outputContentDescriptor
- A ContentDescriptor
that describes the desired output content-type.Method Detail |
public int getTrackCount(int availableTrackCount)
Processor
constructed with this ProcessorModel
.availableTrackCount
- The number of tracks available, as an integer.public Format getOutputTrackFormat(int tIndex)
Format
of the specified track.tIndex
- The index of the track for which you want to get the preferred Format
.Format
for the track.public boolean isFormatAcceptable(int tIndex, Format tFormat)
tFormat
is an acceptable format for the track
tIndex
.tIndex
- The index of the track you want to check.tFormat
- The Format
to check.true
if the Format
is acceptable, otherwise returns false
.public ContentDescriptor getContentDescriptor()
ProcessorModel
.ContentDescriptor
that defines the output content-type. Returns null if the
output type is not applicable or the output streams are to contain raw data that doesn't pertain to a specific content-type.public DataSource getInputDataSource()
DataSource
that specifies the media source for this ProcessorModel
.
The inputLocator
is ignored
if this value is non-null.DataSource
that specifies the media source.public MediaLocator getInputLocator()
MediaLocator
that specifies the media source for this ProcessorModel
.
This value is ignored if an input DataSource
is specified.MediaLocator
that specifies the media source.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |