SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by com.sun.media.BasicPlugIn
      extended by com.sun.media.BasicCodec
          extended by com.sun.media.codec.audio.AudioCodec
              extended by net.java.sip.communicator.impl.media.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 com.sun.media.BasicCodec
inputFormat, inputFormats, opened, outputFormat, outputFormats, pendingEOM
 
Fields inherited from class com.sun.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 com.sun.media.codec.audio.AudioCodec
checkFormat, setInputFormat, setOutputFormat
 
Methods inherited from class com.sun.media.BasicCodec
checkEOM, checkInputBuffer, getArrayElementSize, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, processAtEOM, propagateEOM, reset, updateOutput, updateRGBFormat
 
Methods inherited from class com.sun.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

Specified by:
getName in interface javax.media.PlugIn
Specified by:
getName in class com.sun.media.BasicPlugIn
Returns:
String

getSupportedOutputFormats

public javax.media.Format[] getSupportedOutputFormats(javax.media.Format in)
Returns the supported output formats

Specified by:
getSupportedOutputFormats in interface javax.media.Codec
Specified by:
getSupportedOutputFormats in class com.sun.media.BasicCodec
Parameters:
in - Format
Returns:
Format[]

open

public void open()
Initializes the codec.

Specified by:
open in interface javax.media.PlugIn
Overrides:
open in class com.sun.media.BasicCodec

close

public void close()
Clean up

Specified by:
close in interface javax.media.PlugIn
Overrides:
close in class com.sun.media.BasicCodec

process

public int process(javax.media.Buffer inputBuffer,
                   javax.media.Buffer outputBuffer)
decode the buffer

Specified by:
process in interface javax.media.Codec
Specified by:
process in class com.sun.media.BasicCodec
Parameters:
inputBuffer - Buffer
outputBuffer - Buffer
Returns:
int

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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