Class DePacketizer

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

    public class DePacketizer
    extends net.sf.fmj.media.AbstractDePacketizer
    DePacketizer for GSM/RTP. Doesn't have to do much, just copies input to output. Uses buffer-swapping observed in debugging and seen in other open-source DePacketizer implementations.
    Author:
    Martin Harvan, Damian Minkov
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.media.Format[] outputFormats  
      • Fields inherited from class net.sf.fmj.media.AbstractCodec

        inputFormat, inputFormats, opened, outputFormat
      • Fields inherited from interface javax.media.PlugIn

        BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
    • Constructor Summary

      Constructors 
      Constructor Description
      DePacketizer()
      Constructs a new DePacketizer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      String getName()  
      javax.media.Format[] getSupportedOutputFormats​(javax.media.Format input)  
      void open()  
      javax.media.Format setInputFormat​(javax.media.Format f)  
      javax.media.Format setOutputFormat​(javax.media.Format f)  
      • Methods inherited from class net.sf.fmj.media.AbstractDePacketizer

        process
      • Methods inherited from class net.sf.fmj.media.AbstractCodec

        checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM
      • Methods inherited from class net.sf.fmj.media.AbstractPlugIn

        reset
      • Methods inherited from class net.sf.fmj.media.AbstractControls

        addControl, getControl, getControls, removeControl
      • Methods inherited from interface javax.media.Controls

        getControl, getControls
      • Methods inherited from interface javax.media.PlugIn

        reset
    • Field Detail

      • outputFormats

        protected javax.media.Format[] outputFormats
    • Constructor Detail

      • DePacketizer

        public DePacketizer()
        Constructs a new DePacketizer.
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface javax.media.PlugIn
        Overrides:
        getName in class net.sf.fmj.media.AbstractPlugIn
      • getSupportedOutputFormats

        public javax.media.Format[] getSupportedOutputFormats​(javax.media.Format input)
        Specified by:
        getSupportedOutputFormats in interface javax.media.Codec
        Specified by:
        getSupportedOutputFormats in class net.sf.fmj.media.AbstractCodec
      • open

        public void open()
        Specified by:
        open in interface javax.media.PlugIn
        Overrides:
        open in class net.sf.fmj.media.AbstractPlugIn
      • close

        public void close()
        Specified by:
        close in interface javax.media.PlugIn
        Overrides:
        close in class net.sf.fmj.media.AbstractPlugIn
      • setInputFormat

        public javax.media.Format setInputFormat​(javax.media.Format f)
        Specified by:
        setInputFormat in interface javax.media.Codec
        Overrides:
        setInputFormat in class net.sf.fmj.media.AbstractCodec
      • setOutputFormat

        public javax.media.Format setOutputFormat​(javax.media.Format f)
        Specified by:
        setOutputFormat in interface javax.media.Codec
        Overrides:
        setOutputFormat in class net.sf.fmj.media.AbstractCodec