|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiph.speex.NbCodec org.xiph.speex.SbCodec org.xiph.speex.SbDecoder
Sideband Speex Decoder
Field Summary | |
protected boolean |
enhanced
|
private float[] |
innov2
|
protected Decoder |
lowdec
|
protected Stereo |
stereo
|
Fields inherited from class org.xiph.speex.SbCodec |
foldingGain, fullFrameSize, g0_mem, g1_mem, high, QMF_ORDER, SB_FRAME_SIZE, SB_SUBMODE_BITS, SB_SUBMODES, x0d, y0, y1 |
Fields inherited from class org.xiph.speex.NbCodec |
awk1, awk2, awk3, bufSize, dtx_enabled, exc_gain_quant_scal1, exc_gain_quant_scal3, excBuf, excIdx, filters, first, frameSize, frmBuf, frmIdx, gamma1, gamma2, innov, interp_qlpc, interp_qlsp, lag_factor, lpc, lpc_floor, lpcSize, m_lsp, max_pitch, mem_sp, min_pitch, NB_FRAME_SIZE, NB_SUBMODE_BITS, NB_SUBMODES, nbSubframes, old_qlsp, pi_gain, pre_mem, preemph, qlsp, subframeSize, submodeID, submodes, VERY_SMALL, voc_m1, voc_m2, voc_mean, voc_offset, windowSize |
Fields inherited from interface org.xiph.speex.Codebook |
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, NB_CDBK_SIZE, NB_CDBK_SIZE_HIGH1, NB_CDBK_SIZE_HIGH2, NB_CDBK_SIZE_LOW1, NB_CDBK_SIZE_LOW2 |
Constructor Summary | |
SbDecoder()
Constructor |
Method Summary | |
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 |
Methods inherited from class org.xiph.speex.SbCodec |
buildUwbSubModes, buildWbSubModes, getDtx, getExc, getFrameSize, getInnov |
Methods inherited from class org.xiph.speex.NbCodec |
getPiGain, init, nbinit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xiph.speex.Decoder |
getDtx, getExc, getFrameSize, getInnov, getPiGain |
Field Detail |
protected Decoder lowdec
protected Stereo stereo
protected boolean enhanced
private float[] innov2
Constructor Detail |
public SbDecoder()
Method Detail |
public void wbinit()
wbinit
in class SbCodec
public void uwbinit()
uwbinit
in class SbCodec
public void init(int frameSize, int subframeSize, int lpcSize, int bufSize, float foldingGain)
init
in class SbCodec
frameSize
- subframeSize
- lpcSize
- bufSize
- foldingGain
- public int decode(Bits bits, float[] out) throws java.io.StreamCorruptedException
decode
in interface Decoder
bits
- - Speex bits buffer.out
- - the decoded mono audio frame.
java.io.StreamCorruptedException
- If there is an error detected in the
data stream.public int decodeLost(float[] out, boolean dtx)
out
- - the generated mono audio frame.dtx
-
public void decodeStereo(float[] data, int frameSize)
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.public void setPerceptualEnhancement(boolean enhanced)
setPerceptualEnhancement
in interface Decoder
enhanced
- public boolean getPerceptualEnhancement()
getPerceptualEnhancement
in interface Decoder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |