|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.sun.media.BasicModule com.sun.media.BasicSinkModule com.sun.media.BasicMuxModule
public class BasicMuxModule
BasicMuxModule is a module which have InputConnectors and no OutputConnectors. It receives data from its inputs, feed that to a plugin Multiplexer which then outputs the data via an output DataSource.
字段摘要 | |
---|---|
static java.lang.String |
ConnectorNamePrefix
|
protected com.sun.media.util.ElapseTime[] |
elapseTime
|
protected boolean[] |
endMarkers
|
protected InputConnector[] |
ics
|
protected Format[] |
inputs
|
protected Multiplexer |
multiplexer
|
protected boolean[] |
paused
|
protected boolean |
prefetching
|
protected boolean[] |
prefetchMarkers
|
protected boolean[] |
prerollTrack
|
protected boolean[] |
resettedMarkers
|
protected boolean |
started
|
protected boolean[] |
stopAtTimeMarkers
|
从类 com.sun.media.BasicSinkModule 继承的字段 |
---|
prerolling, rate, stopTime |
从类 com.sun.media.BasicModule 继承的字段 |
---|
controller, inputConnectors, inputConnectorsArray, jmd, moduleListener, name, outputConnectors, outputConnectorsArray, prefetchFailed, protocol, resetted |
构造方法摘要 | |
---|---|
protected |
BasicMuxModule(Multiplexer m,
Format[] inputs)
|
方法摘要 | |
---|---|
void |
abortPrefetch()
Called when the prefetch() is aborted, i.e. deallocate() was called while prefetching. |
void |
connectorPushed(InputConnector ic)
This is the main processing function. |
void |
doClose()
This function performs the steps to close a module or Player. |
void |
doDealloc()
This function performs the steps to deallocate a module or Player, and return to the realized state. |
void |
doFailedPrefetch()
Called when prefetch fails. |
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. |
void |
doStart()
This function performs the steps to start a module or Player. |
void |
doStop()
This function performs the steps to stop a module or Player, and return to the prefetched state. |
long |
getBitsWritten()
|
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. |
javax.media.protocol.DataSource |
getDataOutput()
|
int |
getFramesPlayed()
|
Multiplexer |
getMultiplexer()
|
boolean |
isThreaded()
return if this module create threads (so it run on Safe protocol) like Rendering module or not (as a codec module). |
protected void |
process()
function which does the real processing. |
void |
reset()
reset this module only. |
void |
resetBitsWritten()
|
void |
resetFramesPlayed()
|
void |
setFormat(Connector connector,
Format format)
Selects a format for this Connector (the default is null). |
void |
setPreroll(long wanted,
long actual)
Enable prerolling. |
void |
triggerReset()
|
从类 com.sun.media.BasicSinkModule 继承的方法 |
---|
doneReset, doSetMediaTime, doSetRate, getClock, getMediaNanoseconds, getMediaTime, getTimeBase, setClock, setStopTime, setTimeBase |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
protected Multiplexer multiplexer
protected Format[] inputs
protected InputConnector[] ics
protected boolean[] prefetchMarkers
protected boolean[] endMarkers
protected boolean[] resettedMarkers
protected boolean[] stopAtTimeMarkers
protected boolean[] paused
protected boolean[] prerollTrack
protected com.sun.media.util.ElapseTime[] elapseTime
protected boolean prefetching
protected boolean started
public static java.lang.String ConnectorNamePrefix
构造方法详细信息 |
---|
protected BasicMuxModule(Multiplexer m, Format[] inputs)
方法详细信息 |
---|
public boolean isThreaded()
BasicModule
复制的描述
BasicModule
中的 isThreaded
public boolean doRealize()
BasicModule
复制的描述
StateTransistor
中的 doRealize
BasicModule
中的 doRealize
public boolean doPrefetch()
BasicModule
复制的描述
StateTransistor
中的 doPrefetch
BasicModule
中的 doPrefetch
public void doFailedPrefetch()
BasicModule
复制的描述
StateTransistor
中的 doFailedPrefetch
BasicModule
中的 doFailedPrefetch
public void abortPrefetch()
BasicModule
复制的描述
StateTransistor
中的 abortPrefetch
BasicModule
中的 abortPrefetch
public void setPreroll(long wanted, long actual)
BasicSinkModule
中的 setPreroll
public void doStart()
BasicModule
复制的描述
StateTransistor
中的 doStart
BasicSinkModule
中的 doStart
public void doStop()
BasicModule
复制的描述
StateTransistor
中的 doStop
BasicSinkModule
中的 doStop
public void doDealloc()
BasicModule
复制的描述
StateTransistor
中的 doDealloc
BasicModule
中的 doDealloc
public void doClose()
BasicModule
复制的描述
StateTransistor
中的 doClose
BasicModule
中的 doClose
public void connectorPushed(InputConnector ic)
Module
中的 connectorPushed
BasicModule
中的 connectorPushed
ic
- the inputConnector of the connection which have received data.protected 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
public void reset()
BasicModule
复制的描述if (state== Started) throw Exception() for (all connectors) connector.reset()The resetted flag is falsified only when the module is later restarted.
Module
中的 reset
BasicModule
中的 reset
public void triggerReset()
BasicSinkModule
中的 triggerReset
public javax.media.protocol.DataSource getDataOutput()
public Multiplexer getMultiplexer()
public java.lang.Object[] getControls()
BasicModule
复制的描述
Controls
中的 getControls
BasicModule
中的 getControls
public 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
中的 getControl
BasicModule
中的 getControl
null
.public void setFormat(Connector connector, Format format)
BasicModule
复制的描述
Module
中的 setFormat
BasicModule
中的 setFormat
public int getFramesPlayed()
public void resetFramesPlayed()
public long getBitsWritten()
public void resetBitsWritten()
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |