Class DePacketizer
- java.lang.Object
-
- net.sf.fmj.media.AbstractControls
-
- net.sf.fmj.media.AbstractPlugIn
-
- net.sf.fmj.media.AbstractCodec
-
- org.jitsi.impl.neomedia.codec.AbstractCodec2
-
- org.jitsi.impl.neomedia.codec.video.vp8.DePacketizer
-
- All Implemented Interfaces:
javax.media.Codec,javax.media.Controls,javax.media.PlugIn
public class DePacketizer extends AbstractCodec2
A depacketizer from VP8. See draft-ietf-payload-vp8-11- Author:
- Boris Grozev, George Politis
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDePacketizer.VP8KeyframeHeaderA class that represents a keyframe header structure (see RFC 6386, paragraph 9.1).static classDePacketizer.VP8PayloadDescriptorA class that represents the VP8 Payload Descriptor structure defined in draft-ietf-payload-vp8-10static classDePacketizer.VP8PayloadHeaderA class that represents the VP8 Payload Header structure defined in draft-ietf-payload-vp8-10
-
Field Summary
-
Fields inherited from class org.jitsi.impl.neomedia.codec.AbstractCodec2
BUFFER_FLAG_FEC, BUFFER_FLAG_PLC, EMPTY_FORMATS, features, MAX_AUDIO_SEQUENCE_NUMBERS_TO_PLC, SEQUENCE_MAX, SEQUENCE_MIN
-
-
Constructor Summary
Constructors Constructor Description DePacketizer()Initializes a new JNIEncoder instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoClose()protected voiddoOpen()Opens this Codec and acquires the resources that it needs to operate.protected intdoProcess(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)static booleanisKeyFrame(byte[] buf, int off, int len)Returns true if the buffer contains a VP8 key frame at offset offset.-
Methods inherited from class org.jitsi.impl.neomedia.codec.AbstractCodec2
calculateLostSeqNoCount, close, discardOutputBuffer, getMatchingOutputFormats, getName, getSupportedOutputFormats, incrementSeqNo, matches, open, process, setInputFormat, setOutputFormat, specialize, updateOutput, validateByteArraySize, validateShortArraySize
-
Methods inherited from class net.sf.fmj.media.AbstractCodec
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
-
Methods inherited from class net.sf.fmj.media.AbstractControls
addControl, getControl, getControls, removeControl
-
-
-
-
Method Detail
-
doClose
protected void doClose()
- Specified by:
doClosein classAbstractCodec2
-
doOpen
protected void doOpen() throws javax.media.ResourceUnavailableExceptionOpens this Codec and acquires the resources that it needs to operate. A call toPlugIn.open()on this instance will result in a call to doOpen only ifAbstractCodec.openedis false. All required input and/or output formats are assumed to have been set on this Codec before doOpen is called.- Specified by:
doOpenin classAbstractCodec2- Throws:
javax.media.ResourceUnavailableException- if any of the resources that this Codec needs to operate cannot be acquired
-
doProcess
protected int doProcess(javax.media.Buffer inBuffer, javax.media.Buffer outBuffer)- Specified by:
doProcessin classAbstractCodec2
-
isKeyFrame
public static boolean isKeyFrame(byte[] buf, int off, int len)Returns true if the buffer contains a VP8 key frame at offset offset.- Parameters:
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- Returns:
- true if the buffer contains a VP8 key frame at offset offset.
-
-