Lines Matching refs:interp
244 double interp[4]; in compute_func() local
250 interp[3] = -0.1666666667*frac + 0.1666666667*(frac*frac*frac); in compute_func()
251 interp[2] = frac + 0.5*(frac*frac) - 0.5*(frac*frac*frac); in compute_func()
253 interp[0] = -0.3333333333*frac + 0.5*(frac*frac) - 0.1666666667*(frac*frac*frac); in compute_func()
255 interp[1] = 1.f-interp[3]-interp[2]-interp[0]; in compute_func()
258 …return interp[0]*func->table[ind] + interp[1]*func->table[ind+1] + interp[2]*func->table[ind+2] + … in compute_func()
303 static void cubic_coef(spx_word16_t x, spx_word16_t interp[4]) in cubic_coef()
310 …interp[0] = PSHR32(MULT16_16(QCONST16(-0.16667f, 15),x) + MULT16_16(QCONST16(0.16667f, 15),x3),15); in cubic_coef()
311 interp[1] = EXTRACT16(EXTEND32(x) + SHR32(SUB32(EXTEND32(x2),EXTEND32(x3)),1)); in cubic_coef()
312 …interp[3] = PSHR32(MULT16_16(QCONST16(-0.33333f, 15),x) + MULT16_16(QCONST16(.5f,15),x2) - MULT16_… in cubic_coef()
314 interp[2] = Q15_ONE-interp[0]-interp[1]-interp[3]; in cubic_coef()
315 if (interp[2]<32767) in cubic_coef()
316 interp[2]+=1; in cubic_coef()
319 static void cubic_coef(spx_word16_t frac, spx_word16_t interp[4]) in cubic_coef()
323 interp[0] = -0.16667f*frac + 0.16667f*frac*frac*frac; in cubic_coef()
324 interp[1] = frac + 0.5f*frac*frac - 0.5f*frac*frac*frac; in cubic_coef()
326 interp[3] = -0.33333f*frac + 0.5f*frac*frac - 0.16667f*frac*frac*frac; in cubic_coef()
328 interp[2] = 1.-interp[0]-interp[1]-interp[3]; in cubic_coef()
456 spx_word16_t interp[4]; in resampler_basic_interpolate_single() local
470 cubic_coef(frac, interp); in resampler_basic_interpolate_single()
471 …um = MULT16_32_Q15(interp[0],accum[0]) + MULT16_32_Q15(interp[1],accum[1]) + MULT16_32_Q15(interp[… in resampler_basic_interpolate_single()
474 cubic_coef(frac, interp); in resampler_basic_interpolate_single()
475 …_product_single(iptr, st->sinc_table + st->oversample + 4 - offset - 2, N, st->oversample, interp); in resampler_basic_interpolate_single()
519 spx_word16_t interp[4]; in resampler_basic_interpolate_double() local
533 cubic_coef(frac, interp); in resampler_basic_interpolate_double()
534 …um = MULT16_32_Q15(interp[0],accum[0]) + MULT16_32_Q15(interp[1],accum[1]) + MULT16_32_Q15(interp[… in resampler_basic_interpolate_double()
536 cubic_coef(frac, interp); in resampler_basic_interpolate_double()
537 …_product_double(iptr, st->sinc_table + st->oversample + 4 - offset - 2, N, st->oversample, interp); in resampler_basic_interpolate_double()