org.xiph.speex
Class SbDecoder
- Codebook, Decoder
Sideband Speex Decoder
- Jim Lawrence, helloNetwork.com
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
QMF_ORDER, SB_FRAME_SIZE, SB_SUBMODES, SB_SUBMODE_BITS, foldingGain, fullFrameSize, g0_mem, g1_mem, high, x0d, y0, y1 |
NB_FRAME_SIZE, NB_SUBMODES, NB_SUBMODE_BITS, VERY_SMALL, awk1, awk2, awk3, bufSize, dtx_enabled, excBuf, excIdx, exc_gain_quant_scal1, exc_gain_quant_scal3, filters, first, frameSize, frmBuf, frmIdx, gamma1, gamma2, innov, interp_qlpc, interp_qlsp, lag_factor, lpc, lpcSize, lpc_floor, m_lsp, max_pitch, mem_sp, min_pitch, nbSubframes, old_qlsp, pi_gain, pre_mem, preemph, qlsp, subframeSize, submodeID, submodes, voc_m1, voc_m2, voc_mean, voc_offset, windowSize |
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 |
int | decode(Bits bits, float[] out)- Decode the given input bits.
|
int | decodeLost(float[] out, boolean dtx)- Decode when packets are lost.
|
void | decodeStereo(float[] data, int frameSize)- Decode the given bits to stereo.
|
boolean | getPerceptualEnhancement()- Returns whether perceptual enhancement is enabled or disabled.
|
void | init(int frameSize, int subframeSize, int lpcSize, int bufSize, float foldingGain)- Initialisation
|
void | setPerceptualEnhancement(boolean enhanced)- Enables or disables perceptual enhancement.
|
void | uwbinit()- Ultra-wideband initialisation
|
void | wbinit()- Wideband initialisation
|
enhanced
protected boolean enhanced
innov2
private float[] innov2
SbDecoder
public SbDecoder()
Constructor
decode
public int decode(Bits bits,
float[] out)
throws StreamCorruptedException Decode the given input bits.
- decode in interface Decoder
bits - - Speex bits buffer.out - - the decoded mono audio frame.
- 1 if a terminator was found, 0 if not.
decodeLost
public int decodeLost(float[] out,
boolean dtx) Decode when packets are lost.
out - - the generated mono audio frame.dtx -
decodeStereo
public void decodeStereo(float[] data,
int frameSize) Decode the given bits to stereo.
- decodeStereo in interface Decoder
data - - float array of size 2*frameSize, that contains the mono
audio samples in the first half. When the function has completed, the
array will contain the interlaced stereo audio samples.frameSize - - the size of a frame of mono audio samples.
getPerceptualEnhancement
public boolean getPerceptualEnhancement()
Returns whether perceptual enhancement is enabled or disabled.
- getPerceptualEnhancement in interface Decoder
- whether perceptual enhancement is enabled or disabled.
init
public void init(int frameSize,
int subframeSize,
int lpcSize,
int bufSize,
float foldingGain) Initialisation
- init in interface SbCodec
frameSize - subframeSize - lpcSize - bufSize - foldingGain -
setPerceptualEnhancement
public void setPerceptualEnhancement(boolean enhanced)
Enables or disables perceptual enhancement.
- setPerceptualEnhancement in interface Decoder
uwbinit
public void uwbinit()
Ultra-wideband initialisation
- uwbinit in interface SbCodec
wbinit
public void wbinit()
Wideband initialisation
- wbinit in interface SbCodec
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.