net.sf.fmj.media.codec.audio.alaw
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.sf.fmj.media.codec.audio.alaw.DePacketizer
All Implemented Interfaces:
Codec, Controls, PlugIn

public class DePacketizer
extends AbstractDePacketizer

DePacketizer for ALAW/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:
Ken Larson

Field Summary
protected  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()
           
 
Method Summary
 void close()
           
 java.lang.String getName()
           
 Format[] getSupportedOutputFormats(Format input)
           
 void open()
           
 Format setInputFormat(Format arg0)
           
 Format setOutputFormat(Format arg0)
           
 
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 Format[] outputFormats
Constructor Detail

DePacketizer

public DePacketizer()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface PlugIn
Overrides:
getName in class AbstractPlugIn

getSupportedOutputFormats

public Format[] getSupportedOutputFormats(Format input)
Specified by:
getSupportedOutputFormats in interface Codec
Specified by:
getSupportedOutputFormats in class AbstractCodec

open

public void open()
Specified by:
open in interface PlugIn
Overrides:
open in class AbstractPlugIn

close

public void close()
Specified by:
close in interface PlugIn
Overrides:
close in class AbstractPlugIn

setInputFormat

public Format setInputFormat(Format arg0)
Specified by:
setInputFormat in interface Codec
Overrides:
setInputFormat in class AbstractCodec

setOutputFormat

public Format setOutputFormat(Format arg0)
Specified by:
setOutputFormat in interface Codec
Overrides:
setOutputFormat in class AbstractCodec