Class Packetizer

  • All Implemented Interfaces:
    javax.media.Codec, javax.media.Controls, javax.media.PlugIn

    public class Packetizer
    extends AbstractCodec2
    Packetizes VP8 encoded frames in accord with draft-ietf-payload-vp8-07 Uses the simplest possible scheme, only splitting large packets. Extended bits are never added, and PartID is always set to 0. The only bit that changes is the Start of Partition bit, which is set only for the first packet encoding a frame.
    Author:
    Boris Grozev
    • Constructor Detail

      • Packetizer

        public Packetizer()
        Initializes a new Packetizer instance.
    • Method Detail

      • doOpen

        protected void doOpen()
        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
      • doProcess

        protected int doProcess​(javax.media.Buffer inputBuffer,
                                javax.media.Buffer outputBuffer)
        Specified by:
        doProcess in class AbstractCodec2