search for: unquant_band

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

Did you mean: unquant_bands
2009 Jan 14
0
[PATCH] Moved the application of the pitch gain to (un)quant_bands(). This doesn't change anything to the codec, but will make the next changes easier.
...5(pgains[pband], P[j]); + } else { + for (j=C*eBands[i];j<C*eBands[i+1];j++) + P[j] = 0; } if (q > 0) @@ -440,13 +434,15 @@ void quant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, ce } /* Decoding of the residual */ -void unquant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, const celt_ener_t *bandE, const int *stereo_mode, int *pulses, int shortBlocks, int fold, int total_bits, ec_dec *dec) +void unquant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, int pitch_used, celt_pgain_t *pgains,...
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...led, 1); + if (enabled) + pgains[pband] = QCONST16(.9,15); + else + pgains[pband] = 0; + } for (j=C*eBands[i];j<C*eBands[i+1];j++) P[j] = MULT16_16_Q15(pgains[pband], P[j]); } else { @@ -496,7 +510,15 @@ void unquant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, } else if (pitch_used && eBands[i] < m->pitchEnd) { if (eBands[i] == pBands[pband+1]) + { + int enabled = 0; pband++; + enabled = ec_dec_bits(dec, 1); +...