Class KateDec
java.lang.Object
com.fluendo.jst.Object
com.fluendo.jst.Element
com.fluendo.plugin.KateDec
- All Implemented Interfaces:
OggPayload
Katedec is a decoder element for the Kate stream format.
See http://wiki.xiph.org/index.php/OggKate for more information.
Kate streams may be multiplexed in Ogg.
The Katedec element accepts Kate packets (presumably demultiplexed by an
Ogg demuxer element) on its sink, and generates Kate events on its source.
Kate events are Kate specific structures, which may then be interpreted
by a renderer.
-
Field Summary
Fields inherited from class Element
ASYNC, ELEMENT_FLAG_LAST, FAILURE, FLAG_IS_SINK, NO_PREROLL, NONE, PAUSE, PAUSE_PLAY, PAUSE_STOP, PLAY, PLAY_PAUSE, stateReturnNames, STOP, STOP_PAUSE, SUCCESSFields inherited from class Object
OBJECT_FLAG_LAST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetFirstTs(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 packetgetProperty(String name) longgranuleToDuration(long gp) Converts a granule position to its duration equivalentlonggranuleToTime(long gp) Converts a granule position to its time equivalentbooleanA discontinuous codec will not cause the pipeline to wait for data if starvingbooleanisHeader(com.jcraft.jogg.Packet op) Check if the packet contains a header packetbooleanisKeyFrame(com.jcraft.jogg.Packet op) Check if the packet contains a keyframebooleanisType(com.jcraft.jogg.Packet op) Check if the packet contains the signature of the payload.inttakeHeader(com.jcraft.jogg.Packet op) Initialize the payload with a header packet.inttypeFind(byte[] data, int offset, int length) Methods inherited from class 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
-
KateDec
public KateDec()
-
-
Method Details
-
isType
public boolean isType(com.jcraft.jogg.Packet op) Description copied from interface:OggPayloadCheck if the packet contains the signature of the payload.- Specified by:
isTypein interfaceOggPayload
-
isKeyFrame
public boolean isKeyFrame(com.jcraft.jogg.Packet op) Description copied from interface:OggPayloadCheck if the packet contains a keyframe- Specified by:
isKeyFramein interfaceOggPayload
-
isDiscontinuous
public boolean isDiscontinuous()A discontinuous codec will not cause the pipeline to wait for data if starving- Specified by:
isDiscontinuousin interfaceOggPayload
-
takeHeader
public int takeHeader(com.jcraft.jogg.Packet op) Description copied from interface:OggPayloadInitialize 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:
takeHeaderin interfaceOggPayload
-
isHeader
public boolean isHeader(com.jcraft.jogg.Packet op) Description copied from interface:OggPayloadCheck if the packet contains a header packet- Specified by:
isHeaderin interfaceOggPayload
-
getFirstTs
Description copied from interface:OggPayloadGet the first timestamp of the list of packets- Specified by:
getFirstTsin interfaceOggPayload
-
granuleToTime
public long granuleToTime(long gp) Converts a granule position to its time equivalent- Specified by:
granuleToTimein interfaceOggPayload
-
granuleToDuration
public long granuleToDuration(long gp) Converts a granule position to its duration equivalent -
getProperty
- Overrides:
getPropertyin classObject
-
getFactoryName
- Specified by:
getFactoryNamein classElement
-
getMime
Description copied from interface:OggPayloadGet mime type- Specified by:
getMimein interfaceOggPayload- Overrides:
getMimein classElement
-
getMime
Description copied from interface:OggPayloadGet mime type from the given packet- Specified by:
getMimein interfaceOggPayload
-
typeFind
-