Class DePacketizer

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

    public class DePacketizer
    extends com.sun.media.codec.audio.AudioCodec
    DePacketizer for ALAW codec
    Author:
    Damian Minkov
    • Field Summary

      • Fields inherited from class net.sf.fmj.media.BasicCodec

        inputFormat, inputFormats, opened, outputFormat, outputFormats, pendingEOM
      • Fields inherited from class net.sf.fmj.media.BasicPlugIn

        controls
      • 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()
      Creates DePacketizer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Clean up
      String getName()
      Returns the name of the DePacketizer
      javax.media.Format[] getSupportedOutputFormats​(javax.media.Format in)
      Returns the supported output formats
      void open()
      Initializes the codec.
      int process​(javax.media.Buffer inputBuffer, javax.media.Buffer outputBuffer)
      decode the buffer
      • Methods inherited from class net.sf.fmj.media.codec.audio.AudioCodec

        checkFormat, setInputFormat, setOutputFormat
      • Methods inherited from class net.sf.fmj.media.BasicCodec

        checkEOM, checkInputBuffer, getArrayElementSize, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, processAtEOM, propagateEOM, reset, updateOutput, updateRGBFormat
      • Methods inherited from class net.sf.fmj.media.BasicPlugIn

        error, getClassForName, getControl, getControls, getInputData, getNativeData, getOutputData, matches, plugInExists, validateByteArraySize, validateData, validateIntArraySize, validateShortArraySize
      • Methods inherited from interface javax.media.Controls

        getControl, getControls
    • Constructor Detail

      • DePacketizer

        public DePacketizer()
        Creates DePacketizer
    • Method Detail

      • getName

        public String getName()
        Returns the name of the DePacketizer
        Returns:
        String
      • getSupportedOutputFormats

        public javax.media.Format[] getSupportedOutputFormats​(javax.media.Format in)
        Returns the supported output formats
        Parameters:
        in - Format
        Returns:
        Format[]
      • open

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

        public void close()
        Clean up
        Specified by:
        close in interface javax.media.PlugIn
        Overrides:
        close in class net.sf.fmj.media.BasicCodec
      • process

        public int process​(javax.media.Buffer inputBuffer,
                           javax.media.Buffer outputBuffer)
        decode the buffer
        Parameters:
        inputBuffer - Buffer
        outputBuffer - Buffer
        Returns:
        int