search for: ec_dec_tel

Displaying 2 results from an estimated 2 matches for "ec_dec_tel".

Did you mean: ec_dec_tell
2009 Dec 02
1
bug found in CELT 0.6.1, fix proposed.
...celt_word16 q; ! celt_word16 mean = (i < E_MEANS_SIZE) ? MULT16_16_Q15(Q15ONE-coef,eMeans[i]) : 0; /* If we didn't have enough bits to encode all the energy, just assume something safe. We allow slightly busting the budget here */ if (ec_dec_tell(dec, 0) > budget) --- 241,247 ---- do { int qi; celt_word16 q; ! celt_word16 mean = MULT16_16_Q15(Q15ONE-coef,eMeans[i]); /* If we didn't have enough bits to encode all the energy, just assume something safe. We allow slightly...
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...st->mode->nbPBands); pitch_index = ec_dec_uint(&dec, MAX_PERIOD-(2*N-2*N4)); st->last_pitch_index = pitch_index; } else { @@ -1016,6 +1009,8 @@ int celt_decode_float(CELTDecoder * restrict st, unsigned char *data, int len, c offsets[i] = 0; bits = len*8 - ec_dec_tell(&dec, 0) - 1; + if (has_pitch) + bits -= st->mode->nbPBands; compute_allocation(st->mode, offsets, stereo_mode, bits, pulses, fine_quant); /*bits = ec_dec_tell(&dec, 0); compute_fine_allocation(st->mode, fine_quant, (20*C+len*8/5-(ec_dec_tell(&dec, 0)-bit...