Displaying 2 results from an estimated 2 matches for "has_fold".
Did you mean:
casefold
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.
...t_norm_t * restrict X, int *stereo_mode, int len);
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 9ebd8df..61aa1fb 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -575,7 +575,6 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
ec_enc_bits(&enc, has_fold, 1); /* Folding flag */
ec_enc_bits(&enc, id, 7);
ec_enc_uint(&enc, pitch_index, MAX_PERIOD-(2*N-2*N4));
- pitch_quant_bands(st->mode, P, gains);
} else {
if (!shortBlocks)
{
@@ -626,7 +625,7 @@ int celt_encode_float(CELTEncoder * restrict st, const c...
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...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); /* Folding flag */
- ec_enc_bits(&enc, id, 7);
ec_enc_uint(&enc, pitch_index, MAX_PERIOD-(2*N-2*N4));
} else {
if (!shortBlocks)
@@ -618,6 +613,8 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
for (i=0;i<st->mode->...