Constructors Summary |
---|
public ProcessorModel()Creates a ProcessorModel with null properties.
// Nothing to do
|
public ProcessorModel(Format[] formats, ContentDescriptor outputContentDescriptor)Creates a 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.
this.outputContentDescriptor = outputContentDescriptor;
this.formats = formats;
|
public ProcessorModel(DataSource inputDataSource, Format[] formats, ContentDescriptor outputContentDescriptor)Creates a ProcessorModel for the specified input DataSource , track formats, and
output type.
this.inputDataSource = inputDataSource;
this.formats = formats;
this.outputContentDescriptor = outputContentDescriptor;
|
public ProcessorModel(MediaLocator inputLocator, Format[] formats, ContentDescriptor outputContentDescriptor)Creates a ProcessorModel for the specified input
MediaLocator , track formats, and output type.
this.inputLocator = inputLocator;
this.formats = formats;
this.outputContentDescriptor = outputContentDescriptor;
|
Methods Summary |
---|
public javax.media.protocol.ContentDescriptor | getContentDescriptor()Gets the output content-type specified by this ProcessorModel .
return outputContentDescriptor;
|
public javax.media.protocol.DataSource | getInputDataSource()Gets the input DataSource that specifies the media source for this ProcessorModel .
The inputLocator is ignored
if this value is non-null.
return inputDataSource;
|
public javax.media.MediaLocator | getInputLocator()Gets the input MediaLocator that specifies the media source for this ProcessorModel .
This value is ignored if an input DataSource is specified.
return inputLocator;
|
public javax.media.Format | getOutputTrackFormat(int tIndex)Gets the preferred Format of the specified track.
if (formats != null && formats.length > tIndex)
return formats[tIndex];
return null;
|
public int | getTrackCount(int availableTrackCount)Gets the number of tracks required as the output of the
Processor constructed with this ProcessorModel .
if (formats != null)
return formats.length;
return -1;
|
public boolean | isFormatAcceptable(int tIndex, javax.media.Format tFormat)Checks whether or not tFormat is an acceptable format for the track
tIndex .
if (formats != null && formats.length > tIndex) {
if (tFormat.matches(formats[tIndex]))
return true;
else
return false;
}
return true;
|