org.xiph.speex
Class LspQuant
- Codebook
public abstract class LspQuant
extends java.lang.Object
Abstract class that is the base for the various LSP Quantisation and
Unquantisation methods.
- Jim Lawrence, helloNetwork.com
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
NB_CDBK_SIZE , NB_CDBK_SIZE_HIGH1 , NB_CDBK_SIZE_HIGH2 , NB_CDBK_SIZE_LOW1 , NB_CDBK_SIZE_LOW2 , cdbk_nb , cdbk_nb_high1 , cdbk_nb_high2 , cdbk_nb_low1 , cdbk_nb_low2 , exc_10_16_table , exc_10_32_table , exc_20_32_table , exc_5_256_table , exc_5_64_table , exc_8_128_table , gain_cdbk_lbr , gain_cdbk_nb , h0 , h1 , hexc_10_32_table , hexc_table , high_lsp_cdbk , high_lsp_cdbk2 |
protected static int | lsp_quant(float[] x, int xs, int[] cdbk, int nbVec, int nbDim) - LSP quantification
Note: x is modified
|
protected static int | lsp_weight_quant(float[] x, int xs, float[] weight, int ws, int[] cdbk, int nbVec, int nbDim) - LSP weighted quantification
Note: x is modified
|
abstract void | quant(float[] lsp, float[] qlsp, int order, Bits bits) - Line Spectral Pair Quantification.
|
protected void | unpackPlus(float[] lsp, int[] tab, Bits bits, float k, int ti, int li) - Read the next 6 bits from the buffer, and using the value read and the
given codebook, rebuild LSP table.
|
abstract void | unquant(float[] lsp, int order, Bits bits) - Line Spectral Pair Unquantification.
|
MAX_LSP_SIZE
public static final int MAX_LSP_SIZE
LspQuant
protected LspQuant()
Constructor
lsp_quant
protected static int lsp_quant(float[] x,
int xs,
int[] cdbk,
int nbVec,
int nbDim)
LSP quantification
Note: x is modified
x
- xs
- cdbk
- nbVec
- nbDim
-
- the index of the best match in the codebook
(NB x is also modified).
lsp_weight_quant
protected static int lsp_weight_quant(float[] x,
int xs,
float[] weight,
int ws,
int[] cdbk,
int nbVec,
int nbDim)
LSP weighted quantification
Note: x is modified
x
- xs
- weight
- ws
- cdbk
- nbVec
- nbDim
-
- the index of the best match in the codebook
(NB x is also modified).
quant
public abstract void quant(float[] lsp,
float[] qlsp,
int order,
Bits bits)
Line Spectral Pair Quantification.
lsp
- - Line Spectral Pairs table.qlsp
- - Quantified Line Spectral Pairs table.order
- bits
- - Speex bits buffer.
unpackPlus
protected void unpackPlus(float[] lsp,
int[] tab,
Bits bits,
float k,
int ti,
int li)
Read the next 6 bits from the buffer, and using the value read and the
given codebook, rebuild LSP table.
lsp
- tab
- bits
- - Speex bits buffer.k
- ti
- li
-
unquant
public abstract void unquant(float[] lsp,
int order,
Bits bits)
Line Spectral Pair Unquantification.
lsp
- - Line Spectral Pairs table.order
- bits
- - Speex bits buffer.
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.