Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

 class Taming
extends Object

Taming functions.

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

Constructor Summary
Taming()
           
 
Method Summary
(package private)  void init_exc_err()
           
(package private)  int test_err(int t0, int t0_frac)
          Computes the accumulated potential error in the adaptive codebook contribution
(package private)  void update_exc_err(float gain_pit, int t0)
          Maintains the memory used to compute the error function due to an adaptive codebook mismatch between encoder and decoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Taming

Taming()
Method Detail

init_exc_err

void init_exc_err()

test_err

int test_err(int t0,
             int t0_frac)
Computes the accumulated potential error in the adaptive codebook contribution

Parameters:
t0 - (i) integer part of pitch delay
t0_frac - (i) fractional part of pitch delay
Returns:
flag set to 1 if taming is necessary

update_exc_err

void update_exc_err(float gain_pit,
                    int t0)
Maintains the memory used to compute the error function due to an adaptive codebook mismatch between encoder and decoder

Parameters:
gain_pit - (i) pitch gain
t0 - (i) integer part of pitch delay

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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