javax.media
接口 Renderer

所有超级接口:
Controls, PlugIn

public interface Renderer
extends PlugIn

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.

从以下版本开始:
JMF 2.0

字段摘要
 
从接口 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
 

方法详细信息

getSupportedInputFormats

Format[] getSupportedInputFormats()
Lists the input formats supported by this Renderer.

返回:
An array of Format objects that represent the input formats supported by this Renderer.

setInputFormat

Format setInputFormat(Format format)
Sets the Format of the input data.

返回:
The 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.

start

void start()
Initiates the rendering process. When start is called, the renderer begins rendering any data available in its internal buffers.


stop

void stop()
Halts the rendering process.


process

int process(Buffer buffer)
Processes the data and renders it to the output device represented by this Renderer.

返回:
BUFFER_PROCESSED_OK if the processing is successful. Other possible return codes are defined in PlugIn.
另请参见:
PlugIn