Home | History | Annotate | Download | only in libspeex

Lines Matching defs:gain2

208    spx_word16_t *gain2;      /**< Adjusted gains */
461 st->gain2 = (spx_word16_t*)speex_alloc((N+M)*sizeof(spx_word16_t));
538 speex_free(st->gain2);
866 st->gain2[i]=DIV32_16(SHL32(EXTEND32(32767),SNR_SHIFT), ADD16(256,tmp));
868 st->gain2[i]=1/(1.f + (q/(1.f-q))*(1+st->prior[i])*exp(-theta));
872 filterbank_compute_psd16(st->bank,st->gain2+N, st->gain2);
899 p = st->gain2[i];
917 /* gain2 = [p*sqrt(gain)+(1-p)*sqrt(gain _floor) ]^2 */
919 st->gain2[i]=SQR16_Q15(tmp);
922 /*st->gain2[i] = pow(st->gain[i], p) * pow(st->gain_floor[i],1.f-p);*/
928 spx_word16_t p = st->gain2[i];
931 st->gain2[i]=SQR16_Q15(tmp);
933 filterbank_compute_psd16(st->bank,st->gain2+N, st->gain2);
940 st->gain2[i]=Q15_ONE;
946 st->ft[2*i-1] = MULT16_16_P15(st->gain2[i],st->ft[2*i-1]);
947 st->ft[2*i] = MULT16_16_P15(st->gain2[i],st->ft[2*i]);
949 st->ft[0] = MULT16_16_P15(st->gain2[0],st->ft[0]);
950 st->ft[2*N-1] = MULT16_16_P15(st->gain2[N-1],st->ft[2*N-1]);