Lines Matching refs:channel_index
333 static int resampler_basic_direct_single(SpeexResamplerState *st, spx_uint32_t channel_index, const… in resampler_basic_direct_single() argument
337 int last_sample = st->last_sample[channel_index]; in resampler_basic_direct_single()
338 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_direct_single()
383 st->last_sample[channel_index] = last_sample; in resampler_basic_direct_single()
384 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_direct_single()
391 static int resampler_basic_direct_double(SpeexResamplerState *st, spx_uint32_t channel_index, const… in resampler_basic_direct_double() argument
395 int last_sample = st->last_sample[channel_index]; in resampler_basic_direct_double()
396 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_direct_double()
434 st->last_sample[channel_index] = last_sample; in resampler_basic_direct_double()
435 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_direct_double()
440 static int resampler_basic_interpolate_single(SpeexResamplerState *st, spx_uint32_t channel_index, … in resampler_basic_interpolate_single() argument
444 int last_sample = st->last_sample[channel_index]; in resampler_basic_interpolate_single()
445 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_interpolate_single()
495 st->last_sample[channel_index] = last_sample; in resampler_basic_interpolate_single()
496 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_interpolate_single()
503 static int resampler_basic_interpolate_double(SpeexResamplerState *st, spx_uint32_t channel_index, … in resampler_basic_interpolate_double() argument
507 int last_sample = st->last_sample[channel_index]; in resampler_basic_interpolate_double()
508 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_interpolate_double()
557 st->last_sample[channel_index] = last_sample; in resampler_basic_interpolate_double()
558 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_interpolate_double()
567 static int resampler_basic_zero(SpeexResamplerState *st, spx_uint32_t channel_index, const spx_word… in resampler_basic_zero() argument
570 int last_sample = st->last_sample[channel_index]; in resampler_basic_zero()
571 spx_uint32_t samp_frac_num = st->samp_frac_num[channel_index]; in resampler_basic_zero()
589 st->last_sample[channel_index] = last_sample; in resampler_basic_zero()
590 st->samp_frac_num[channel_index] = samp_frac_num; in resampler_basic_zero()
859 static int speex_resampler_process_native(SpeexResamplerState *st, spx_uint32_t channel_index, spx_… in speex_resampler_process_native() argument
864 spx_word16_t *mem = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_process_native()
870 out_sample = st->resampler_ptr(st, channel_index, mem, in_len, out, out_len); in speex_resampler_process_native()
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()
885 static int speex_resampler_magic(SpeexResamplerState *st, spx_uint32_t channel_index, spx_word16_t … in speex_resampler_magic() argument
886 spx_uint32_t tmp_in_len = st->magic_samples[channel_index]; in speex_resampler_magic()
887 spx_word16_t *mem = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_magic()
890 speex_resampler_process_native(st, channel_index, &tmp_in_len, *out, &out_len); in speex_resampler_magic()
892 st->magic_samples[channel_index] -= tmp_in_len; in speex_resampler_magic()
895 if (st->magic_samples[channel_index]) in speex_resampler_magic()
898 for (i=0;i<st->magic_samples[channel_index];i++) in speex_resampler_magic()
906 EXPORT int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t channel_index, const s… in speex_resampler_process_int() argument
908 EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const… in speex_resampler_process_int()
914 spx_word16_t *x = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_process_int()
919 if (st->magic_samples[channel_index]) in speex_resampler_process_int()
920 olen -= speex_resampler_magic(st, channel_index, &out, olen); in speex_resampler_process_int()
921 if (! st->magic_samples[channel_index]) { in speex_resampler_process_int()
933 speex_resampler_process_native(st, channel_index, &ichunk, out, &ochunk); in speex_resampler_process_int()
947 EXPORT int speex_resampler_process_float(SpeexResamplerState *st, spx_uint32_t channel_index, const… in speex_resampler_process_float() argument
949 EXPORT int speex_resampler_process_int(SpeexResamplerState *st, spx_uint32_t channel_index, const s… in speex_resampler_process_float()
957 spx_word16_t *x = st->mem + channel_index * st->mem_alloc_size; in speex_resampler_process_float()
976 if (st->magic_samples[channel_index]) { in speex_resampler_process_float()
977 omagic = speex_resampler_magic(st, channel_index, &y, ochunk); in speex_resampler_process_float()
981 if (! st->magic_samples[channel_index]) { in speex_resampler_process_float()
994 speex_resampler_process_native(st, channel_index, &ichunk, y, &ochunk); in speex_resampler_process_float()