search for: pgain

Displaying 4 results from an estimated 4 matches for "pgain".

Did you mean: again
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
--- libcelt/Makefile.am | 6 +- libcelt/bands.c | 26 +++++++++- libcelt/bands.h | 2 +- libcelt/celt.c | 23 +++----- libcelt/pgain_table.h | 133 ------------------------------------------------- libcelt/quant_pitch.c | 117 ------------------------------------------- libcelt/quant_pitch.h | 44 ---------------- 7 files changed, 37 insertions(+), 314 deletions(-) delete mode 100644 libcelt/pgain_table.h delete mode 10064...
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.
...a/libcelt/bands.c +++ b/libcelt/bands.c @@ -247,23 +247,6 @@ void compute_pitch_gain(const CELTMode *m, const celt_norm_t *X, const celt_norm }*/ } -/* Apply the (quantised) gain to each "pitch band" */ -void pitch_quant_bands(const CELTMode *m, celt_norm_t * restrict P, const celt_pgain_t * restrict gains) -{ - int i; - const celt_int16_t *pBands = m->pBands; - const int C = CHANNELS(m); - for (i=0;i<m->nbPBands;i++) - { - int j; - for (j=C*pBands[i];j<C*pBands[i+1];j++) - P[j] = MULT16_16_Q15(gains[i], P[j]); - /*printf ("%f &quot...
2004 Aug 06
1
fixed / floating point
I've noticed that the nb decoder uses floating point in several places even when using FIXED_POINT. I don't have to deal with lost packets, so I'm mainly interested in innov_gain and pgain in no transmission mode (nb_celp.c around line 1272) and g and exci in vocoder mode (around line 1557). Is there a reason that these places must use floating point, or would it be possible to make them use fixed point? -------------- next part -------------- A non-text attachment was scrubbed.....
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...null mode (no transmission), just set a couple things to zero*/ if (st->submodes[st->submodeID] == NULL) { VARDECL(spx_coef_t *lpc); ALLOC(lpc, 11, spx_coef_t); bw_lpc(GAMMA_SCALING*.93, st->interp_qlpc, lpc, 10); { float innov_gain=0; float pgain=GAIN_SCALING_1*st->last_pitch_gain; if (pgain>.6) pgain=.6; innov_gain = compute_rms(st->innov, st->frameSize); for (i=0;i<st->frameSize;i++) st->exc[i]=VERY_SMALL; speex_rand_vec(innov_gain, st->exc, st->frameSize);...