Package com.fluendo.plugin
Class VorbisDec
java.lang.Object
com.fluendo.jst.Object
com.fluendo.jst.Element
com.fluendo.plugin.VorbisDec
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getFirstTs
(Vector packets) Get the first timestamp of the list of packetsgetMime()
Get mime typegetMime
(com.jcraft.jogg.Packet op) Get mime type from the given packetlong
granuleToTime
(long gp) Convert the granule pos to a timestampboolean
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 packetboolean
isKeyFrame
(com.jcraft.jogg.Packet op) Check if the packet contains a keyframeboolean
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
-
Constructor Details
-
VorbisDec
public VorbisDec()
-
-
Method Details
-
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 interfaceOggPayload
-
takeHeader
public int takeHeader(com.jcraft.jogg.Packet op) Description copied from interface:OggPayload
Initialize the payload with a header packet. Returns a negative value for error, 0 if OK, 1 if OK and ready for decoding data.- Specified by:
takeHeader
in interfaceOggPayload
-
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 interfaceOggPayload
-
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 interfaceOggPayload
-
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 interfaceOggPayload
-
getFirstTs
Description copied from interface:OggPayload
Get the first timestamp of the list of packets- Specified by:
getFirstTs
in interfaceOggPayload
-
granuleToTime
public long granuleToTime(long gp) Description copied from interface:OggPayload
Convert the granule pos to a timestamp- Specified by:
granuleToTime
in interfaceOggPayload
-
getFactoryName
- Specified by:
getFactoryName
in classElement
-
getMime
Description copied from interface:OggPayload
Get mime type- Specified by:
getMime
in interfaceOggPayload
- Overrides:
getMime
in classElement
-
getMime
Description copied from interface:OggPayload
Get mime type from the given packet- Specified by:
getMime
in interfaceOggPayload
-
typeFind
public int typeFind(byte[] data, int offset, int length)
-