Displaying 2 results from an estimated 2 matches for "transient_shift".
2010 Sep 02
1
Possible Bug
...t;dec" structure is created at each function call and it's initialized 
with ec_dec_init  function. The attribute "end_byte" is not initialized 
though. Decoding a file the behaviour is the following: decoding the first 
frame the variable "shortBlocks" is true and then transient_shift == 3 
hence the function ec_dec_uint  is executed. In this function the 
attribute "end_byte" is written first and read next. That's ok. The 
problem comes decoding the next frame. Since now "shortBlocks" is false, 
"end_byte" is not initialized anymore and next fu...
2009 Jan 14
0
[PATCH] Pitch now quantised at the band level, got rid of all the VQ code.
...#ifndef FIXED_POINT
          float gain_1;
 #endif
-         ec_enc_bits(&enc, 0, 1); //Pitch off
-         ec_enc_bits(&enc, 1, 1); //Transient on
+         ec_enc_bits(&enc, 0, 1); /*Pitch off */
+         ec_enc_bits(&enc, 1, 1); /*Transient on */
          ec_enc_bits(&enc, transient_shift, 2);
          if (transient_shift)
             ec_enc_uint(&enc, transient_time, N+st->overlap);
@@ -557,23 +556,19 @@ int celt_encode_float(CELTEncoder * restrict st, const celt_sig_t * pcm, celt_si
       pitch_power = bandEp[0]+bandEp[1]+bandEp[2];
       /* Check if we can safely use t...