Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.alaw
Class DePacketizer

java.lang.Object
  extended by net.sf.fmj.media.BasicPlugIn
      extended by net.sf.fmj.media.BasicCodec
          extended by net.sf.fmj.media.codec.audio.AudioCodec
              extended by com.sun.media.codec.audio.AudioCodec
                  extended by net.java.sip.communicator.impl.neomedia.codec.audio.alaw.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
DePacketizer()
          Creates DePacketizer
 
Method Summary
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.