Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.codec.audio.silk
Class Silk_gain_quant

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.codec.audio.silk.Silk_gain_quant

public class Silk_gain_quant
extends Object

Author:
Jing Dai, Dingxin Xu

Field Summary
(package private) static int INV_SCALE_Q16
           
(package private) static int OFFSET
           
(package private) static int SCALE_Q16
           
 
Constructor Summary
Silk_gain_quant()
           
 
Method Summary
(package private) static void SKP_Silk_gains_dequant(int[] gain_Q16, int[] ind, int[] prev_ind, int conditional)
          Gains scalar dequantization, uniform on log scale.
(package private) static void SKP_Silk_gains_quant(int[] ind, int[] gain_Q16, int[] prev_ind, int conditional)
          Gain scalar quantization with hysteresis, uniform on log scale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFFSET

static final int OFFSET
See Also:
Constant Field Values

SCALE_Q16

static final int SCALE_Q16
See Also:
Constant Field Values

INV_SCALE_Q16

static final int INV_SCALE_Q16
See Also:
Constant Field Values
Constructor Detail

Silk_gain_quant

public Silk_gain_quant()
Method Detail

SKP_Silk_gains_quant

static void SKP_Silk_gains_quant(int[] ind,
                                 int[] gain_Q16,
                                 int[] prev_ind,
                                 int conditional)
Gain scalar quantization with hysteresis, uniform on log scale.

Parameters:
ind - gain indices
gain_Q16 - gains (quantized out)
prev_ind - last index in previous frame
conditional - first gain is delta coded if 1

SKP_Silk_gains_dequant

static void SKP_Silk_gains_dequant(int[] gain_Q16,
                                   int[] ind,
                                   int[] prev_ind,
                                   int conditional)
Gains scalar dequantization, uniform on log scale.

Parameters:
gain_Q16 - quantized gains.
ind - gain indices.
prev_ind - last index in previous frame.
conditional - first gain is delta coded if 1.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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