org.xiph.speex

Class NbLspQuant

Implemented Interfaces:
Codebook

public class NbLspQuant
extends LspQuant

LSP Quantisation and Unquantisation (narrowband)
Version:
$Revision: 1.2 $
Authors:
Jim Lawrence, helloNetwork.com
Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)

Field Summary

Fields inherited from class org.xiph.speex.LspQuant

MAX_LSP_SIZE

Fields inherited from interface org.xiph.speex.Codebook

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

Method Summary

void
quant(float[] lsp, float[] qlsp, int order, Bits bits)
Line Spectral Pair Quantification (narrowband).
void
unquant(float[] lsp, int order, Bits bits)
Line Spectral Pair Unquantification (narrowband).

Methods inherited from class org.xiph.speex.LspQuant

lsp_quant, lsp_weight_quant, quant, unpackPlus, unquant

Method Details

quant

public final void quant(float[] lsp,
                        float[] qlsp,
                        int order,
                        Bits bits)
Line Spectral Pair Quantification (narrowband).
Overrides:
quant in interface LspQuant
Parameters:
lsp - - Line Spectral Pairs table.
qlsp - - Quantified Line Spectral Pairs table.
order -
bits - - Speex bits buffer.

unquant

public final void unquant(float[] lsp,
                          int order,
                          Bits bits)
Line Spectral Pair Unquantification (narrowband).
Overrides:
unquant in interface LspQuant
Parameters:
lsp - - Line Spectral Pairs table.
order -
bits - - Speex bits buffer.

Copyright © 1999-2004 Wimba S.A. All Rights Reserved.