Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.sf.fmj.media.AbstractControls
      extended by net.sf.fmj.media.AbstractPlugIn
          extended by net.sf.fmj.media.AbstractCodec
              extended by net.sf.fmj.media.AbstractDePacketizer
                  extended by net.java.sip.communicator.impl.neomedia.codec.audio.gsm.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
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
DePacketizer()
          Constructs a new DePacketizer.
 
Method Summary
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.PlugIn
reset
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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