public class DePacketizer extends AbstractCodec2
Modifier and Type | Class and Description |
---|---|
static class |
DePacketizer.VP8PayloadDescriptor
A class that represents the VP8 Payload Descriptor structure defined
in "http://tools.ietf.org/html/draft-ietf-payload-vp8-10"
|
static class |
DePacketizer.VP8PayloadHeader
A class that represents the VP8 Payload Header structure defined
in "http://tools.ietf.org/html/draft-ietf-payload-vp8-10"
|
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN
Constructor and Description |
---|
DePacketizer()
Initializes a new JNIEncoder instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doOpen()
Opens this Codec and acquires the resources that it needs to
operate.
|
protected int |
doProcess(javax.media.Buffer inBuffer,
javax.media.Buffer outBuffer) |
static boolean |
isKeyFrame(byte[] buf,
int off,
int len)
Returns true if the buffer contains a VP8 key frame at offset
offset.
|
calculateLostSeqNoCount, close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
addControl, getControl, getControls, removeControl
protected void doClose()
doClose
in class AbstractCodec2
protected void doOpen() throws javax.media.ResourceUnavailableException
PlugIn.open()
on this instance will result in
a call to doOpen only if AbstractCodec.opened
is
false. All required input and/or output formats are assumed to
have been set on this Codec before doOpen is called.doOpen
in class AbstractCodec2
javax.media.ResourceUnavailableException
- if any of the resources that this
Codec needs to operate cannot be acquiredprotected int doProcess(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)
doProcess
in class AbstractCodec2
public static boolean isKeyFrame(byte[] buf, int off, int len)
buf
- the byte buffer to checkoff
- the offset in the byte buffer where the actual data startslen
- the length of the data in the byte buffer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.