Lines Matching refs:sinc
271 /* The slow way of computing a sinc for the table. Should improve that some day */
272 static spx_word16_t sinc(float cutoff, float x, int N, struct FuncDef *window_func)
284 /* The slow way of computing a sinc for the table. Should improve that some day */
285 static spx_word16_t sinc(float cutoff, float x, int N, struct FuncDef *window_func)
302 but I know it's MMSE-optimal on a sinc */
318 but I know it's MMSE-optimal on a sinc */
344 const spx_word16_t *sinc = & sinc_table[samp_frac_num*N];
351 accum[0] += sinc[j]*iptr[j];
352 accum[1] += sinc[j+1]*iptr[j+1];
353 accum[2] += sinc[j+2]*iptr[j+2];
354 accum[3] += sinc[j+3]*iptr[j+3];
358 sum = inner_product_single(sinc, iptr, N);
395 const spx_word16_t *sinc = & sinc_table[samp_frac_num*N];
402 accum[0] += sinc[j]*iptr[j];
403 accum[1] += sinc[j+1]*iptr[j+1];
404 accum[2] += sinc[j+2]*iptr[j+2];
405 accum[3] += sinc[j+3]*iptr[j+3];
409 sum = inner_product_double(sinc, iptr, N);
597 st->sinc_table[i*st->filt_len+j] = sinc(st->cutoff,((j-(spx_int32_t)st->filt_len/2+1)-((float)i)/st->den_rate), st->filt_len, quality_map[st->quality].window_func);
608 /*fprintf (stderr, "resampler uses direct sinc table and normalised cutoff %f\n", cutoff);*/
619 st->sinc_table[i+4] = sinc(st->cutoff,(i/(float)st->oversample - st->filt_len/2), st->filt_len, quality_map[st->quality].window_func);
628 /*fprintf (stderr, "resampler uses interpolated sinc table and normalised cutoff %f\n", cutoff);*/