Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class Silk_CNG
extends Object

SILK CNG.

Author:
Jing Dai, Dingxin Xu

Constructor Summary
Silk_CNG()
           
 
Method Summary
(package private) static void SKP_Silk_CNG_exc(short[] residual, int residual_offset, int[] exc_buf_Q10, int exc_buf_Q10_offset, int Gain_Q16, int length, int[] rand_seed)
          Generates excitation for CNG LPC synthesis.
(package private) static void SKP_Silk_CNG_Reset(SKP_Silk_decoder_state psDec)
          Reset CNG.
(package private) static void SKP_Silk_CNG(SKP_Silk_decoder_state psDec, SKP_Silk_decoder_control psDecCtrl, short[] signal, int signal_offset, int length)
          Updates CNG estimate, and applies the CNG when packet was lost.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Silk_CNG

public Silk_CNG()
Method Detail

SKP_Silk_CNG_exc

static void SKP_Silk_CNG_exc(short[] residual,
                             int residual_offset,
                             int[] exc_buf_Q10,
                             int exc_buf_Q10_offset,
                             int Gain_Q16,
                             int length,
                             int[] rand_seed)
Generates excitation for CNG LPC synthesis.

Parameters:
residual - CNG residual signal Q0.
residual_offset - offset of the valid data.
exc_buf_Q10 - Random samples buffer Q10.
exc_buf_Q10_offset - offset of the valid data.
Gain_Q16 - Gain to apply
length - Length
rand_seed - Seed to random index generator

SKP_Silk_CNG_Reset

static void SKP_Silk_CNG_Reset(SKP_Silk_decoder_state psDec)
Reset CNG.

Parameters:
psDec - Decoder state.

SKP_Silk_CNG

static void SKP_Silk_CNG(SKP_Silk_decoder_state psDec,
                         SKP_Silk_decoder_control psDecCtrl,
                         short[] signal,
                         int signal_offset,
                         int length)
Updates CNG estimate, and applies the CNG when packet was lost.

Parameters:
psDec - Decoder state.
psDecCtrl - Decoder control.
signal - Signal.
signal_offset - offset of the valid data.
length - Length of residual.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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