search for: has_pitch

Displaying 3 results from an estimated 3 matches for "has_pitch".

2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...if ((MULT16_32_Q15(QCONST16(.1f, 15),curr_power) + QCONST32(10.f,ENER_SHIFT) < pitch_power)) { /* Pitch prediction */ - compute_pitch_gain(st->mode, X, P, gains); - id = quant_pitch(gains, st->mode->nbPBands); - } - if (id == -1) + has_pitch = compute_pitch_gain(st->mode, X, P, gains); + } else { has_pitch = 0; + } } if (has_pitch) { - unquant_pitch(id, gains, st->mode->nbPBands); ec_enc_bits(&enc, has_pitch, 1); /* Pitch flag */ ec_enc_bits(&enc, has_fold, 1);...
2010 Sep 08
1
Celt 0.7.1 Fixed math
Hi, I'm using Celt 0.7.1 in fixed math mode. In the celt_encode function, if the variable has_pitch is true, the function pitch_search is called. Within this function the find_best_pitch subfunction is called. Here the variable "float score;" is defined. Is this right? I was expecting not to see any float declaration in the fixed math code. Is it possible to redefine it as integer?...
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.
...cm, celt_si quant_fine_energy(st->mode, bandE, st->oldBandE, error, fine_quant, &enc); /* Residual quantisation */ - quant_bands(st->mode, X, P, NULL, bandE, stereo_mode, pulses, shortBlocks, has_fold, nbCompressedBytes*8, &enc); + quant_bands(st->mode, X, P, NULL, has_pitch, gains, bandE, stereo_mode, pulses, shortBlocks, has_fold, nbCompressedBytes*8, &enc); /* Re-synthesis of the coded audio if required */ if (st->pitch_available>0 || optional_synthesis!=NULL) @@ -1034,14 +1033,13 @@ int celt_decode_float(CELTDecoder * restrict st, unsigned char...