Home | History | Annotate | Download | only in libspeex

Lines Matching refs:energy

185    spx_word32_t *energy;
191 energy = corr;
194 VARDECL(spx_word32_t *energy);
197 ALLOC(energy, end-start+2, spx_word32_t);
200 ener16 = energy;
230 energy[0]=inner_prod(sw-start, sw-start, len);
234 /* Update energy for next pitch*/
235 energy[i-start+1] = SUB32(ADD32(energy[i-start],SHR32(MULT16_16(sw[-i-1],sw[-i-1]),6)), SHR32(MULT16_16(sw[-i+len-1],sw[-i+len-1]),6));
236 if (energy[i-start+1] < 0)
237 energy[i-start+1] = 0;
241 eshift = normalize16(energy, ener16, 32766, end-start+1);
244 /* In fixed-point, this actually overrites the energy array (aliased to corr) */
264 /* Instead of dividing the tmp by the energy, we multiply on the other side */
299 /* FIXME: g = max(g,corr/energy) */