|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface Renderer
A Renderer
is a media processing unit that renders input media
to a pre-defined destination, such as the screen or system speaker. It has
one input and no outputs--rendering is the final stage of the media processing pipeline.
If a Renderer
implements the Clock
interface,
it can be used by a Player
as
the master time base for synchronization. In this case, the
Renderer
should update the media time and time-base time as
it processes the media.
字段摘要 |
---|
从接口 javax.media.PlugIn 继承的字段 |
---|
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED |
方法摘要 | |
---|---|
Format[] |
getSupportedInputFormats()
Lists the input formats supported by this Renderer . |
int |
process(Buffer buffer)
Processes the data and renders it to the output device represented by this Renderer . |
Format |
setInputFormat(Format format)
Sets the Format of the input data. |
void |
start()
Initiates the rendering process. |
void |
stop()
Halts the rendering process. |
从接口 javax.media.PlugIn 继承的方法 |
---|
close, getName, open, reset |
从接口 javax.media.Controls 继承的方法 |
---|
getControl, getControls |
方法详细信息 |
---|
Format[] getSupportedInputFormats()
Renderer
.
Format
objects that represent
the input formats supported by this Renderer
.Format setInputFormat(Format format)
Format
of the input data.
Format
that was set. This is typically the
supported Format
that most closely matches the specified Format
.
If possible, the format fields that were not specified are set to the preferred values
in the returned Format
. Returns null if the specified Format
is
not supported.void start()
start
is called, the renderer begins
rendering any data available in its internal buffers.
void stop()
int process(Buffer buffer)
Renderer
.
BUFFER_PROCESSED_OK
if the processing is successful. Other
possible return codes are defined in PlugIn
.PlugIn
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |