Lines Matching refs:last_sample
135 spx_int32_t *last_sample; member
337 int last_sample = st->last_sample[channel_index]; in resampler_basic_direct_single() local
346 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_direct_single()
349 const spx_word16_t *iptr = & in[last_sample]; in resampler_basic_direct_single()
374 last_sample += int_advance; in resampler_basic_direct_single()
379 last_sample++; in resampler_basic_direct_single()
383 st->last_sample[channel_index] = last_sample; in resampler_basic_direct_single()
395 int last_sample = st->last_sample[channel_index]; in resampler_basic_direct_double() local
404 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_direct_double()
407 const spx_word16_t *iptr = & in[last_sample]; in resampler_basic_direct_double()
425 last_sample += int_advance; in resampler_basic_direct_double()
430 last_sample++; in resampler_basic_direct_double()
434 st->last_sample[channel_index] = last_sample; in resampler_basic_direct_double()
444 int last_sample = st->last_sample[channel_index]; in resampler_basic_interpolate_single() local
452 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_interpolate_single()
454 const spx_word16_t *iptr = & in[last_sample]; in resampler_basic_interpolate_single()
486 last_sample += int_advance; in resampler_basic_interpolate_single()
491 last_sample++; in resampler_basic_interpolate_single()
495 st->last_sample[channel_index] = last_sample; in resampler_basic_interpolate_single()
507 int last_sample = st->last_sample[channel_index]; in resampler_basic_interpolate_double() local
515 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_interpolate_double()
517 const spx_word16_t *iptr = & in[last_sample]; in resampler_basic_interpolate_double()
548 last_sample += int_advance; in resampler_basic_interpolate_double()
553 last_sample++; in resampler_basic_interpolate_double()
557 st->last_sample[channel_index] = last_sample; in resampler_basic_interpolate_double()
570 int last_sample = st->last_sample[channel_index]; in resampler_basic_zero() local
577 while (!(last_sample >= (spx_int32_t)*in_len || out_sample >= (spx_int32_t)*out_len)) in resampler_basic_zero()
580 last_sample += int_advance; in resampler_basic_zero()
585 last_sample++; in resampler_basic_zero()
589 st->last_sample[channel_index] = last_sample; in resampler_basic_zero()
747 st->last_sample[i] += (st->filt_len - olen)/2; in update_filter()
822 st->last_sample = (spx_int32_t*)speex_alloc(nb_channels*sizeof(spx_int32_t)); in speex_resampler_init_frac()
827 st->last_sample[i] = 0; in speex_resampler_init_frac()
853 speex_free(st->last_sample); in speex_resampler_destroy()
872 if (st->last_sample[channel_index] < (spx_int32_t)*in_len) in speex_resampler_process_native()
873 *in_len = st->last_sample[channel_index]; in speex_resampler_process_native()
875 st->last_sample[channel_index] -= *in_len; in speex_resampler_process_native()
1173 st->last_sample[i] = st->filt_len/2; in speex_resampler_skip_zeros()
1182 st->last_sample[i] = 0; in speex_resampler_reset_mem()