Class 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
    • Constructor Detail

      • DePacketizer

        public DePacketizer()
        Initializes a new JNIEncoder instance.
    • Method Detail

      • doOpen

        protected void doOpen()
                       throws javax.media.ResourceUnavailableException
        Opens this Codec and acquires the resources that it needs to operate. A call to 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.
        Specified by:
        doOpen in class AbstractCodec2
        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:
        doProcess in class AbstractCodec2
      • 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 check
        off - the offset in the byte buffer where the actual data starts
        len - the length of the data in the byte buffer
        Returns:
        true if the buffer contains a VP8 key frame at offset offset.