com.fluendo.jst
Class Element

java.lang.Object
  extended by com.fluendo.jst.Object
      extended by com.fluendo.jst.Element
Direct Known Subclasses:
HTTPSrc, JPEGDec, KateDec, MulawDec, MultipartDemux, OggDemux, Overlay, Pipeline, Queue, Selector, Sink, SmokeDec, TheoraDec, VorbisDec

public abstract class Element
extends Object


Field Summary
static int ASYNC
           
static int ELEMENT_FLAG_LAST
           
static int FAILURE
           
static int FLAG_IS_SINK
           
static int NO_PREROLL
           
static int NONE
           
static int PAUSE
           
static int PAUSE_PLAY
           
static int PAUSE_STOP
           
static int PLAY
           
static int PLAY_PAUSE
           
static java.lang.String[] stateReturnNames
           
static int STOP
           
static int STOP_PAUSE
           
static int SUCCESS
           
 
Fields inherited from class com.fluendo.jst.Object
OBJECT_FLAG_LAST
 
Constructor Summary
Element()
           
Element(java.lang.String name)
           
 
Method Summary
 void abortState()
           
 boolean addPad(Pad newPad)
           
 void addPadListener(PadListener listener)
           
 int continueState(int result)
           
 java.util.Enumeration enumPads()
           
 Bus getBus()
           
 Clock getClock()
           
abstract  java.lang.String getFactoryName()
           
 java.lang.String getMime()
           
 Pad getPad(java.lang.String name)
           
 int getState(int[] resState, int[] resPending, long timeout)
           
static java.lang.String getStateName(int state)
           
 int getStateNext(int current, int pending)
           
static java.lang.String getStateReturnName(int ret)
           
 int getTransition(int current, int next)
           
 int getTransitionCurrent(int transition)
           
 int getTransitionNext(int transition)
           
 void lostState()
           
 void noMorePads()
           
 void postMessage(Message message)
           
 boolean query(Query query)
           
 boolean removePad(Pad aPad)
           
 void removePadListener(PadListener listener)
           
 Pad requestSinkPad(Pad peer)
           
 boolean sendEvent(Event event)
           
 void setBus(Bus newBus)
           
 void setClock(Clock newClock)
           
 int setState(int newState)
           
 java.lang.String toString()
           
 int typeFind(byte[] data, int offset, int length)
           
 
Methods inherited from class com.fluendo.jst.Object
getName, getParent, getProperty, isFlagSet, setFlag, setName, setParent, setProperty, unParent, unsetFlag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FLAG_IS_SINK

public static final int FLAG_IS_SINK
See Also:
Constant Field Values

ELEMENT_FLAG_LAST

public static final int ELEMENT_FLAG_LAST
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

STOP

public static final int STOP
See Also:
Constant Field Values

PAUSE

public static final int PAUSE
See Also:
Constant Field Values

PLAY

public static final int PLAY
See Also:
Constant Field Values

STOP_PAUSE

public static final int STOP_PAUSE
See Also:
Constant Field Values

PAUSE_PLAY

public static final int PAUSE_PLAY
See Also:
Constant Field Values

PLAY_PAUSE

public static final int PLAY_PAUSE
See Also:
Constant Field Values

PAUSE_STOP

public static final int PAUSE_STOP
See Also:
Constant Field Values

FAILURE

public static final int FAILURE
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values

ASYNC

public static final int ASYNC
See Also:
Constant Field Values

NO_PREROLL

public static final int NO_PREROLL
See Also:
Constant Field Values

stateReturnNames

public static java.lang.String[] stateReturnNames
Constructor Detail

Element

public Element()

Element

public Element(java.lang.String name)
Method Detail

getStateName

public static java.lang.String getStateName(int state)

getStateReturnName

public static java.lang.String getStateReturnName(int ret)

getMime

public java.lang.String getMime()

getFactoryName

public abstract java.lang.String getFactoryName()

typeFind

public int typeFind(byte[] data,
                    int offset,
                    int length)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setClock

public void setClock(Clock newClock)

getClock

public Clock getClock()

setBus

public void setBus(Bus newBus)

getBus

public Bus getBus()

addPadListener

public void addPadListener(PadListener listener)

removePadListener

public void removePadListener(PadListener listener)

getPad

public Pad getPad(java.lang.String name)

addPad

public boolean addPad(Pad newPad)

removePad

public boolean removePad(Pad aPad)

noMorePads

public void noMorePads()

enumPads

public java.util.Enumeration enumPads()

postMessage

public void postMessage(Message message)

getState

public int getState(int[] resState,
                    int[] resPending,
                    long timeout)

getStateNext

public int getStateNext(int current,
                        int pending)

getTransition

public int getTransition(int current,
                         int next)

getTransitionCurrent

public int getTransitionCurrent(int transition)

getTransitionNext

public int getTransitionNext(int transition)

continueState

public int continueState(int result)

abortState

public void abortState()

lostState

public void lostState()

setState

public final int setState(int newState)

sendEvent

public boolean sendEvent(Event event)

query

public boolean query(Query query)

requestSinkPad

public Pad requestSinkPad(Pad peer)