public class TheoraDec 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 |
---|
TheoraDec() |
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
|
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) |
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 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 boolean isKeyFrame(com.jcraft.jogg.Packet op)
OggPayload
isKeyFrame
in interface OggPayload
public boolean isDiscontinuous()
OggPayload
isDiscontinuous
in interface OggPayload
public long getFirstTs(java.util.Vector packets)
OggPayload
getFirstTs
in interface OggPayload
public long granuleToTime(long gp)
OggPayload
granuleToTime
in interface OggPayload
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