com.arunta.base.audio.codec
Class ULawEncoder

java.lang.Object
  extended by com.arunta.base.audio.codec.ULawEncoder
All Implemented Interfaces:
Encoder

public class ULawEncoder
extends java.lang.Object
implements Encoder

G.711 U-Law encoder.


Constructor Summary
ULawEncoder()
           
 
Method Summary
 int encode(byte[] source, int sourceOffset, int samplesCnt, byte[] target, int targetOffset)
           
 float getCompressionFactor()
           
 int getFrameBytes()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ULawEncoder

public ULawEncoder()
Method Detail

encode

public int encode(byte[] source,
                  int sourceOffset,
                  int samplesCnt,
                  byte[] target,
                  int targetOffset)
Specified by:
encode in interface Encoder

getCompressionFactor

public float getCompressionFactor()
Specified by:
getCompressionFactor in interface Encoder

getFrameBytes

public int getFrameBytes()
Specified by:
getFrameBytes in interface Encoder

getName

public java.lang.String getName()
Specified by:
getName in interface Encoder


Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.