public class KateDec extends Element implements OggPayload
ASYNC, ELEMENT_FLAG_LAST, FAILURE, FLAG_IS_SINK, NO_PREROLL, NONE, PAUSE, PAUSE_PLAY, PAUSE_STOP, PLAY, PLAY_PAUSE, stateReturnNames, STOP, STOP_PAUSE, SUCCESS
OBJECT_FLAG_LAST
Constructor and Description |
---|
KateDec() |
Modifier and Type | Method and Description |
---|---|
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
|
java.lang.Object |
getProperty(java.lang.String name) |
long |
granuleToDuration(long gp)
Converts a granule position to its duration equivalent
|
long |
granuleToTime(long gp)
Converts a granule position to its time equivalent
|
boolean |
isDiscontinuous()
A discontinuous codec will not cause the pipeline to wait for data if starving
|
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) |
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
public boolean isType(com.jcraft.jogg.Packet op)
OggPayload
isType
in interface OggPayload
public boolean isKeyFrame(com.jcraft.jogg.Packet op)
OggPayload
isKeyFrame
in interface OggPayload
public boolean isDiscontinuous()
isDiscontinuous
in interface OggPayload
public int takeHeader(com.jcraft.jogg.Packet op)
OggPayload
takeHeader
in interface OggPayload
public boolean isHeader(com.jcraft.jogg.Packet op)
OggPayload
isHeader
in interface OggPayload
public long getFirstTs(java.util.Vector packets)
OggPayload
getFirstTs
in interface OggPayload
public long granuleToTime(long gp)
granuleToTime
in interface OggPayload
public long granuleToDuration(long gp)
public java.lang.Object getProperty(java.lang.String name)
getProperty
in class Object
public java.lang.String getFactoryName()
getFactoryName
in class Element
public java.lang.String getMime()
OggPayload
getMime
in interface OggPayload
getMime
in class Element
public java.lang.String getMime(com.jcraft.jogg.Packet op)
OggPayload
getMime
in interface OggPayload