Lines Matching refs:channel_index
332 static int resampler_basic_direct_single(SpeexResamplerState *st, spx_uint32_t channel_index, const… in resampler_basic_direct_single() argument
336 int last_sample = st->last_sample[channel_index]; in resampler_basic_direct_single()
337 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_direct_single()
376 st->last_sample[channel_index] = last_sample; in resampler_basic_direct_single()
377 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_direct_single()
384 static int resampler_basic_direct_double(SpeexResamplerState *st, spx_uint32_t channel_index, const… in resampler_basic_direct_double() argument
388 int last_sample = st->last_sample[channel_index]; in resampler_basic_direct_double()
389 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_direct_double()
427 st->last_sample[channel_index] = last_sample; in resampler_basic_direct_double()
428 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_direct_double()
433 static int resampler_basic_interpolate_single(SpeexResamplerState *st, spx_uint32_t channel_index, … in resampler_basic_interpolate_single() argument
437 int last_sample = st->last_sample[channel_index]; in resampler_basic_interpolate_single()
438 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_interpolate_single()
488 st->last_sample[channel_index] = last_sample; in resampler_basic_interpolate_single()
489 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_interpolate_single()
496 static int resampler_basic_interpolate_double(SpeexResamplerState *st, spx_uint32_t channel_index, … in resampler_basic_interpolate_double() argument
500 int last_sample = st->last_sample[channel_index]; in resampler_basic_interpolate_double()
501 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_interpolate_double()
550 st->last_sample[channel_index] = last_sample; in resampler_basic_interpolate_double()
551 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_interpolate_double()
803 static int speex_resampler_process_native(SpeexResamplerState *st, spx_uint32_t channel_index, spx_… in speex_resampler_process_native() argument
808 spx_word16_t *mem = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_process_native()
814 out_sample = st->resampler_ptr(st, channel_index, mem, in_len, out, out_len); in speex_resampler_process_native()
816 if (st->last_sample[channel_index] < (spx_int32_t)*in_len) in speex_resampler_process_native()
817 *in_len = st->last_sample[channel_index]; in speex_resampler_process_native()
819 st->last_sample[channel_index] -= *in_len; in speex_resampler_process_native()
829 static int speex_resampler_magic(SpeexResamplerState *st, spx_uint32_t channel_index, spx_word16_t … in speex_resampler_magic() argument
830 spx_uint32_t tmp_in_len = st->magic_samples[channel_index]; in speex_resampler_magic()
831 spx_word16_t *mem = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_magic()
834 speex_resampler_process_native(st, channel_index, &tmp_in_len, *out, &out_len); in speex_resampler_magic()
836 st->magic_samples[channel_index] -= tmp_in_len; in speex_resampler_magic()
839 if (st->magic_samples[channel_index]) in speex_resampler_magic()
842 for (i=0;i<st->magic_samples[channel_index];i++) in speex_resampler_magic()
850 EXPORT int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t channel_index, const s… in speex_resampler_process_int() argument
852 EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const… in speex_resampler_process_int()
858 spx_word16_t *x = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_process_int()
863 if (st->magic_samples[channel_index]) in speex_resampler_process_int()
864 olen -= speex_resampler_magic(st, channel_index, &out, olen); in speex_resampler_process_int()
865 if (! st->magic_samples[channel_index]) { in speex_resampler_process_int()
877 speex_resampler_process_native(st, channel_index, &ichunk, out, &ochunk); in speex_resampler_process_int()
891 EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const… in speex_resampler_process_float() argument
893 EXPORT int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t channel_index, const s… in speex_resampler_process_float()
901 spx_word16_t *x = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_process_float()
920 if (st->magic_samples[channel_index]) { in speex_resampler_process_float()
921 omagic = speex_resampler_magic(st, channel_index, &y, ochunk); in speex_resampler_process_float()
925 if (! st->magic_samples[channel_index]) { in speex_resampler_process_float()
938 speex_resampler_process_native(st, channel_index, &ichunk, y, &ochunk); in speex_resampler_process_float()