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

net.java.sip.communicator.impl.neomedia.codec.audio.g729
Class QuaGain

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.g729.QuaGain

 class QuaGain
extends Object

Author:
Lubomir Marinov (translation of ITU-T C source code to Java)

Constructor Summary
QuaGain()
           
 
Method Summary
(package private)  int qua_gain(float[] code, float[] g_coeff, int l_subfr, FloatReference gain_pit, FloatReference gain_code, int tameflag)
          Quantization of pitch and codebook gains
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaGain

QuaGain()
Method Detail

qua_gain

int qua_gain(float[] code,
             float[] g_coeff,
             int l_subfr,
             FloatReference gain_pit,
             FloatReference gain_code,
             int tameflag)
Quantization of pitch and codebook gains

Parameters:
code - input : fixed codebook vector
g_coeff - input : correlation factors
l_subfr - input : fcb vector length
gain_pit - output: quantized acb gain
gain_code - output: quantized fcb gain
tameflag - input : flag set to 1 if taming is needed
Returns:
quantizer index

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

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