Lines Matching refs:oversample
130 spx_uint32_t oversample; member
196 int oversample; member
212 int oversample; member
247 y = x*func->oversample; in compute_func()
456 const int offset = samp_frac_num*st->oversample/st->den_rate; in resampler_basic_interpolate_single()
458 …const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_r… in resampler_basic_interpolate_single()
460 … const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))/st->den_rate; in resampler_basic_interpolate_single()
471 accum[0] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-2]); in resampler_basic_interpolate_single()
472 accum[1] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-1]); in resampler_basic_interpolate_single()
473 accum[2] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset]); in resampler_basic_interpolate_single()
474 accum[3] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset+1]); in resampler_basic_interpolate_single()
482 …nterpolate_product_single(iptr, st->sinc_table + st->oversample + 4 - offset - 2, N, st->oversampl… in resampler_basic_interpolate_single()
519 const int offset = samp_frac_num*st->oversample/st->den_rate; in resampler_basic_interpolate_double()
521 …const spx_word16_t frac = PDIV32(SHL32((samp_frac_num*st->oversample) % st->den_rate,15),st->den_r… in resampler_basic_interpolate_double()
523 … const spx_word16_t frac = ((float)((samp_frac_num*st->oversample) % st->den_rate))/st->den_rate; in resampler_basic_interpolate_double()
534 accum[0] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-2]); in resampler_basic_interpolate_double()
535 accum[1] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset-1]); in resampler_basic_interpolate_double()
536 accum[2] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset]); in resampler_basic_interpolate_double()
537 accum[3] += MULT16_16(curr_in,st->sinc_table[4+(j+1)*st->oversample-offset+1]); in resampler_basic_interpolate_double()
544 …nterpolate_product_double(iptr, st->sinc_table + st->oversample + 4 - offset - 2, N, st->oversampl… in resampler_basic_interpolate_double()
604 st->oversample = quality_map[st->quality].oversample; in update_filter()
616 st->oversample >>= 1; in update_filter()
618 st->oversample >>= 1; in update_filter()
620 st->oversample >>= 1; in update_filter()
622 st->oversample >>= 1; in update_filter()
623 if (st->oversample < 1) in update_filter()
624 st->oversample = 1; in update_filter()
636 use_direct = st->filt_len*st->den_rate <= st->filt_len*st->oversample+8 in update_filter()
643 if ((INT_MAX/sizeof(spx_word16_t)-8)/st->oversample < st->filt_len) in update_filter()
646 min_sinc_table_length = st->filt_len*st->oversample+8; in update_filter()
679 for (i=-4;i<(spx_int32_t)(st->oversample*st->filt_len+4);i++) in update_filter()
680 …st->sinc_table[i+4] = sinc(st->cutoff,(i/(float)st->oversample - st->filt_len/2), st->filt_len, qu… in update_filter()