Only the (rising) overlap part of the window is stored now. No need to hold the
zeros and ones (nor even the second half).
This commit is contained in:
parent
f28062fe6a
commit
3e08a88389
3 changed files with 10 additions and 27 deletions
|
@ -243,7 +243,7 @@ void alg_quant(celt_norm_t *X, celt_mask_t *W, int N, int K, celt_norm_t *P, cel
|
|||
|
||||
/* Compute the gain such that ||p + g*y|| = 1 */
|
||||
g = DIV32(SHL32(celt_sqrt(MULT16_16(ROUND(Ryp,14),ROUND(Ryp,14)) + Ryy - MULT16_16(ROUND(Ryy,14),Rpp)) - ROUND(Ryp,14),14),ROUND(Ryy,14));
|
||||
//g *= NORM_SCALING_1;
|
||||
|
||||
/* Knowing that gain, what the error: (x-g*y)^2
|
||||
(result is negated and we discard x^2 because it's constant) */
|
||||
/*score = 2.f*g*Rxy - 1.f*g*g*Ryy*NORM_SCALING_1;*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue