|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcom.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 中的 isThreadedpublic boolean doRealize()
BasicModule 复制的描述
StateTransistor 中的 doRealizeBasicModule 中的 doRealizepublic boolean doPrefetch()
BasicModule 复制的描述
StateTransistor 中的 doPrefetchBasicModule 中的 doPrefetchpublic void doFailedPrefetch()
BasicModule 复制的描述
StateTransistor 中的 doFailedPrefetchBasicModule 中的 doFailedPrefetchpublic void abortPrefetch()
BasicModule 复制的描述
StateTransistor 中的 abortPrefetchBasicModule 中的 abortPrefetch
public void setPreroll(long wanted,
long actual)
BasicSinkModule 中的 setPrerollpublic void doStart()
BasicModule 复制的描述
StateTransistor 中的 doStartBasicSinkModule 中的 doStartpublic void doStop()
BasicModule 复制的描述
StateTransistor 中的 doStopBasicSinkModule 中的 doStoppublic void doDealloc()
BasicModule 复制的描述
StateTransistor 中的 doDeallocBasicModule 中的 doDeallocpublic void doClose()
BasicModule 复制的描述
StateTransistor 中的 doCloseBasicModule 中的 doClosepublic void connectorPushed(InputConnector ic)
Module 中的 connectorPushedBasicModule 中的 connectorPushedic - 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 中的 processpublic 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 中的 resetBasicModule 中的 resetpublic void triggerReset()
BasicSinkModule 中的 triggerResetpublic javax.media.protocol.DataSource getDataOutput()
public Multiplexer getMultiplexer()
public 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.
public void setFormat(Connector connector,
Format format)
BasicModule 复制的描述
Module 中的 setFormatBasicModule 中的 setFormatpublic int getFramesPlayed()
public void resetFramesPlayed()
public long getBitsWritten()
public void resetBitsWritten()
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||