Home | History | Annotate | Download | only in libspeex

Lines Matching refs:ol_gain

258    spx_word32_t ol_gain;
406 ol_gain = MULT16_16(g, MULT16_16_Q14(QCONST16(1.1,14),
409 ol_gain = SHL32(EXTEND32(g),SIG_SHIFT);
611 int qe = scal_quant32(ol_gain, ol_gain_table, 32);
612 /*ol_gain = exp(qe/3.5)*SIG_SCALING;*/
613 ol_gain = MULT16_32_Q15(28406,ol_gain_table[qe]);
618 int qe = (int)(floor(.5+3.5*log(ol_gain*1.0/SIG_SCALING)));
623 ol_gain = exp(qe/3.5)*SIG_SCALING;
809 spx_word32_t f = PDIV32(ener,PSHR32(ol_gain,SIG_SHIFT));
816 fine_gain = PDIV32_16(ener,PSHR32(ol_gain,SIG_SHIFT));
826 ener=MULT16_32_Q14(exc_gain_quant_scal3[qe],ol_gain);
830 ener=MULT16_32_Q14(exc_gain_quant_scal1[qe],ol_gain);
833 ener=ol_gain;
836 /*printf ("%f %f\n", ener, ol_gain);*/
1089 spx_word32_t ol_gain=0;
1275 ol_gain = MULT16_32_Q15(28406,ol_gain_table[qe]);
1277 ol_gain = SIG_SCALING*exp(qe/3.5);
1388 ener = MULT16_32_Q14(exc_gain_quant_scal3[q_energy],ol_gain);
1392 ener = MULT16_32_Q14(exc_gain_quant_scal1[q_energy],ol_gain);
1394 ener = ol_gain;
1441 /* exc[st->voc_offset]= g*sqrt(2*ol_pitch)*ol_gain;
1444 exc[st->voc_offset]=MULT16_16(spx_sqrt(MULT16_16_16(2,ol_pitch)),EXTRACT16(PSHR32(MULT16_16(g,PSHR32(ol_gain,SIG_SHIFT)),6)));
1476 /* If the last packet was lost, re-scale the excitation to obtain the same energy as encoded in ol_gain */
1483 gain32 = PDIV32(ol_gain, ADD16(exc_ener,1));
1547 st->level = 1+PSHR32(ol_gain,SIG_SHIFT);
1571 st->last_ol_gain = ol_gain;