com.fluendo.plugin
Class VorbisDec

java.lang.Object
  extended by com.fluendo.jst.Object
      extended by com.fluendo.jst.Element
          extended by com.fluendo.plugin.VorbisDec
All Implemented Interfaces:
OggPayload

public class VorbisDec
extends Element
implements OggPayload


Field Summary
 
Fields inherited from class com.fluendo.jst.Element
ASYNC, ELEMENT_FLAG_LAST, FAILURE, FLAG_IS_SINK, NO_PREROLL, NONE, PAUSE, PAUSE_PLAY, PAUSE_STOP, PLAY, PLAY_PAUSE, stateReturnNames, STOP, STOP_PAUSE, SUCCESS
 
Fields inherited from class com.fluendo.jst.Object
OBJECT_FLAG_LAST
 
Constructor Summary
VorbisDec()
           
 
Method Summary
 java.lang.String getFactoryName()
           
 long getFirstTs(java.util.Vector packets)
          Get the first timestamp of the list of packets
 java.lang.String getMime()
          Get mime type
 java.lang.String getMime(com.jcraft.jogg.Packet op)
          Get mime type from the given packet
 long granuleToTime(long gp)
          Convert the granule pos to a timestamp
 boolean isDiscontinuous()
          Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)
 boolean isHeader(com.jcraft.jogg.Packet op)
          Check if the packet contains a header packet
 boolean isKeyFrame(com.jcraft.jogg.Packet op)
          Check if the packet contains a keyframe
 boolean isType(com.jcraft.jogg.Packet op)
          Check if the packet contains the signature of the payload.
 int takeHeader(com.jcraft.jogg.Packet op)
          Initialize the payload with a header packet.
 int typeFind(byte[] data, int offset, int length)
           
 
Methods inherited from class com.fluendo.jst.Element
abortState, addPad, addPadListener, continueState, enumPads, getBus, getClock, getPad, getState, getStateName, getStateNext, getStateReturnName, getTransition, getTransitionCurrent, getTransitionNext, lostState, noMorePads, postMessage, query, removePad, removePadListener, requestSinkPad, sendEvent, setBus, setClock, setState, toString
 
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
 

Constructor Detail

VorbisDec

public VorbisDec()
Method Detail

isType

public boolean isType(com.jcraft.jogg.Packet op)
Description copied from interface: OggPayload
Check if the packet contains the signature of the payload.

Specified by:
isType in interface OggPayload

takeHeader

public int takeHeader(com.jcraft.jogg.Packet op)
Description copied from interface: OggPayload
Initialize the payload with a header packet. Returns < 0 for error, 0 if OK, 1 if OK and ready for decoding data.

Specified by:
takeHeader in interface OggPayload

isHeader

public boolean isHeader(com.jcraft.jogg.Packet op)
Description copied from interface: OggPayload
Check if the packet contains a header packet

Specified by:
isHeader in interface OggPayload

isKeyFrame

public boolean isKeyFrame(com.jcraft.jogg.Packet op)
Description copied from interface: OggPayload
Check if the packet contains a keyframe

Specified by:
isKeyFrame in interface OggPayload

isDiscontinuous

public boolean isDiscontinuous()
Description copied from interface: OggPayload
Check if the stream is discontinuous (eg, no need to wait for data on this stream before playing)

Specified by:
isDiscontinuous in interface OggPayload

getFirstTs

public long getFirstTs(java.util.Vector packets)
Description copied from interface: OggPayload
Get the first timestamp of the list of packets

Specified by:
getFirstTs in interface OggPayload

granuleToTime

public long granuleToTime(long gp)
Description copied from interface: OggPayload
Convert the granule pos to a timestamp

Specified by:
granuleToTime in interface OggPayload

getFactoryName

public java.lang.String getFactoryName()
Specified by:
getFactoryName in class Element

getMime

public java.lang.String getMime()
Description copied from interface: OggPayload
Get mime type

Specified by:
getMime in interface OggPayload
Overrides:
getMime in class Element

getMime

public java.lang.String getMime(com.jcraft.jogg.Packet op)
Description copied from interface: OggPayload
Get mime type from the given packet

Specified by:
getMime in interface OggPayload

typeFind

public int typeFind(byte[] data,
                    int offset,
                    int length)
Overrides:
typeFind in class Element