|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object javax.media.ProcessorModel
public class 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
.
构造方法摘要 | |
---|---|
ProcessorModel()
Creates a ProcessorModel with null properties. |
|
ProcessorModel(javax.media.protocol.DataSource inputDataSource,
Format[] formats,
javax.media.protocol.ContentDescriptor outputContentDescriptor)
Creates a ProcessorModel for the specified input DataSource , track formats, and
output type. |
|
ProcessorModel(Format[] formats,
javax.media.protocol.ContentDescriptor outputContentDescriptor)
Creates a ProcessorModel for the specified track formats and
output content-type. |
|
ProcessorModel(MediaLocator inputLocator,
Format[] formats,
javax.media.protocol.ContentDescriptor outputContentDescriptor)
Creates a ProcessorModel for the specified input
MediaLocator , track formats, and output type. |
方法摘要 | |
---|---|
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Gets the output content-type specified by this ProcessorModel . |
javax.media.protocol.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 . |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public ProcessorModel()
ProcessorModel
with null properties.
public ProcessorModel(Format[] formats, javax.media.protocol.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(javax.media.protocol.DataSource inputDataSource, Format[] formats, javax.media.protocol.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, javax.media.protocol.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.方法详细信息 |
---|
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 javax.media.protocol.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 javax.media.protocol.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.
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |