Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

 class Lspgetq
extends Object

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

Constructor Summary
Lspgetq()
           
 
Method Summary
(package private) static void lsp_expand_1_2(float[] buf, float gap)
           
(package private) static void lsp_expand_1(float[] buf, float gap)
          Check for lower (0-4)
(package private) static void lsp_expand_2(float[] buf, float gap)
          Check for higher (5-9)
(package private) static void lsp_get_quant(float[][] lspcb1, float[][] lspcb2, int code0, int code1, int code2, float[][] fg, float[][] freq_prev, float[] lspq, float[] fg_sum)
          Reconstruct quantized LSP parameter and check the stabilty
(package private) static void lsp_prev_extract(float[] lsp, float[] lsp_ele, float[][] fg, float[][] freq_prev, float[] fg_sum_inv)
          Extract elementary LSP from composed LSP with previous LSP
(package private) static void lsp_prev_update(float[] lsp_ele, float[][] freq_prev)
          Update previous LSP parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lspgetq

Lspgetq()
Method Detail

lsp_get_quant

static void lsp_get_quant(float[][] lspcb1,
                          float[][] lspcb2,
                          int code0,
                          int code1,
                          int code2,
                          float[][] fg,
                          float[][] freq_prev,
                          float[] lspq,
                          float[] fg_sum)
Reconstruct quantized LSP parameter and check the stabilty

Parameters:
lspcb1 - input : first stage LSP codebook
lspcb2 - input : Second stage LSP codebook
code0 - input : selected code of first stage
code1 - input : selected code of second stage
code2 - input : selected code of second stage
fg - input : MA prediction coef.
freq_prev - input : previous LSP vector
lspq - output: quantized LSP parameters
fg_sum - input : present MA prediction coef.

lsp_expand_1

static void lsp_expand_1(float[] buf,
                         float gap)
Check for lower (0-4)

Parameters:
buf - in/out: lsp vectors
gap - input : gap

lsp_expand_2

static void lsp_expand_2(float[] buf,
                         float gap)
Check for higher (5-9)

Parameters:
buf - in/out: lsp vectors
gap - input : gap

lsp_expand_1_2

static void lsp_expand_1_2(float[] buf,
                           float gap)
Parameters:
buf - in/out: LSP parameters
gap - input: gap

lsp_prev_extract

static void lsp_prev_extract(float[] lsp,
                             float[] lsp_ele,
                             float[][] fg,
                             float[][] freq_prev,
                             float[] fg_sum_inv)
Extract elementary LSP from composed LSP with previous LSP

Parameters:
lsp - (i) Q13 : unquantized LSP parameters
lsp_ele - (o) Q13 : target vector
fg - (i) Q15 : MA prediction coef.
freq_prev - (i) Q13 : previous LSP vector
fg_sum_inv - (i) Q12 : inverse previous LSP vector

lsp_prev_update

static void lsp_prev_update(float[] lsp_ele,
                            float[][] freq_prev)
Update previous LSP parameter

Parameters:
lsp_ele - input : LSP vectors
freq_prev - input/output: previous LSP vectors

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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