|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcom.sun.media.BasicModule
com.sun.media.BasicFilterModule
public class BasicFilterModule
BasicFilterModule is a module which is not threaded and have one InputConnector and one OutputConnector. It receives data from its input connector, pass the data to the level 3 plugIn codec and put the result in the OutputConnector. BasicFilterModule can be either Push or Pull driven. The plugIn codec might be media decoder, media encoder, effect etc.
| 字段摘要 | |
|---|---|
protected Codec |
codec
|
protected java.awt.Frame |
controlFrame
|
protected float |
curFramesBehind
|
protected javax.media.control.FrameProcessingControl |
frameControl
|
protected InputConnector |
ic
|
protected OutputConnector |
oc
|
protected float |
prevFramesBehind
|
protected boolean |
readPendingFlag
|
protected Buffer |
storedInputBuffer
|
protected Buffer |
storedOutputBuffer
|
protected boolean |
VERBOSE_CONTROL
|
protected boolean |
writePendingFlag
|
| 从类 com.sun.media.BasicModule 继承的字段 |
|---|
controller, inputConnectors, inputConnectorsArray, jmd, moduleListener, name, outputConnectors, outputConnectorsArray, prefetchFailed, protocol, resetted |
| 构造方法摘要 | |
|---|---|
BasicFilterModule(Codec c)
|
|
| 方法摘要 | |
|---|---|
void |
doClose()
This function performs the steps to close a module or Player. |
boolean |
doPrefetch()
This function performs the steps to prefetch a module or Player. |
boolean |
doRealize()
This function performs the steps of realizing a module or a Player. |
Codec |
getCodec()
|
java.lang.Object |
getControl(java.lang.String s)
Obtain the object that implements the specified Class or Interface
The full class or interface name must be used. |
java.lang.Object[] |
getControls()
Return a list of module controls. |
boolean |
isThreaded()
return if this module create threads (so it run on Safe protocol) like Rendering module or not (as a codec module). |
void |
process()
function which does the real processing. |
protected boolean |
reinitCodec(Format input)
A new input format has been detected, we'll check if the existing codec can handle it. |
boolean |
setCodec(Codec codec)
|
boolean |
setCodec(java.lang.String codec)
sets the plugIn codec of this filter. |
void |
setFormat(Connector c,
Format f)
Selects a format for this Connector (the default is null). |
protected void |
setFramesBehind(float framesBehind)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected Codec codec
protected InputConnector ic
protected OutputConnector oc
protected javax.media.control.FrameProcessingControl frameControl
protected float curFramesBehind
protected float prevFramesBehind
protected java.awt.Frame controlFrame
protected final boolean VERBOSE_CONTROL
protected Buffer storedInputBuffer
protected Buffer storedOutputBuffer
protected boolean readPendingFlag
protected boolean writePendingFlag
| 构造方法详细信息 |
|---|
public BasicFilterModule(Codec c)
| 方法详细信息 |
|---|
public boolean doRealize()
BasicModule 复制的描述
StateTransistor 中的 doRealizeBasicModule 中的 doRealizepublic boolean doPrefetch()
BasicModule 复制的描述
StateTransistor 中的 doPrefetchBasicModule 中的 doPrefetchpublic void doClose()
BasicModule 复制的描述
StateTransistor 中的 doCloseBasicModule 中的 doClose
public void setFormat(Connector c,
Format f)
BasicModule 复制的描述
Module 中的 setFormatBasicModule 中的 setFormatpublic boolean setCodec(java.lang.String codec)
codec - the plugIn codec (should we specify Codec class or String)
public boolean setCodec(Codec codec)
public Codec getCodec()
public boolean isThreaded()
BasicModule 复制的描述
BasicModule 中的 isThreadedpublic java.lang.Object[] getControls()
BasicModule 复制的描述
Controls 中的 getControlsBasicModule 中的 getControlspublic java.lang.Object getControl(java.lang.String s)
Controls 复制的描述Class or Interface
The full class or interface name must be used.
If the control is not supported then null
is returned.
Controls 中的 getControlBasicModule 中的 getControlnull.protected void setFramesBehind(float framesBehind)
protected boolean reinitCodec(Format input)
public void process()
BasicModule 复制的描述
if canRun {
for (all inputConnectors)
ic.getValidBuffer()
for (all outputConnectors)
oc.getEmptyBuffer()
for (all inputConnectors)
ic.readReport()
for (all outputConnectors)
oc.writeReport()
}
BasicModule 中的 process
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||