Displaying 4 results from an estimated 4 matches for "pgains".
Did you mean:
gains
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...,7 +406,17 @@ void quant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, ce
} else if (pitch_used && eBands[i] < m->pitchEnd)
{
if (eBands[i] == pBands[pband+1])
+ {
+ int enabled = 0;
pband++;
+ if (pgains[pband] > QCONST16(.5,15))
+ enabled = 1;
+ ec_enc_bits(enc, enabled, 1);
+ if (enabled)
+ pgains[pband] = QCONST16(.9,15);
+ else
+ pgains[pband] = 0;
+ }
for (j=C*eBands[i];j<C*eBands[i+1];j++)...
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.
...lt_norm_t * restrict X, celt_norm_t *P, celt_mask_t *W, const celt_ener_t *bandE, const int *stereo_mode, int *pulses, int shortBlocks, int fold, int total_bits, ec_enc *enc)
+void quant_bands(const CELTMode *m, celt_norm_t * restrict X, celt_norm_t *P, celt_mask_t *W, int pitch_used, celt_pgain_t *pgains, const celt_ener_t *bandE, const int *stereo_mode, int *pulses, int shortBlocks, int fold, int total_bits, ec_enc *enc)
{
int i, j, remaining_bits, balance;
const celt_int16_t * restrict eBands = m->eBands;
celt_norm_t * restrict norm;
VARDECL(celt_norm_t, _norm);
const int...
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
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
Hi Jean-Marc, Hi Jim,
I have also seen some problems with the 1.1.8 release on the C55x. So far I
have boiled down the issues to the following:
1) We need our own "fixed_xx.h" header file. I don't know why, and haven't
had time to investigate, but there is a definite improvement when I use the
attached fixed_c55x.h file which has turned all the maths into inline
functions.