• Home
  • Raw
  • Download

Lines Matching refs:out_count

487 static int resample(SwrContext *s, AudioData *out_param, int out_count,  in resample()  argument
517 …ret= s->resampler->multiple_resample(s->resample, &out, out_count, &tmp, s->in_buffer_count, &cons… in resample()
518 out_count -= ret; in resample()
537 …ret= s->resampler->multiple_resample(s->resample, &out, out_count, &in, FFMAX(in_count-padless, 0)… in resample()
538 out_count -= ret; in resample()
558 … if(s->in_buffer_count && s->in_buffer_count+2 < count && out_count) count= s->in_buffer_count+2; in resample()
577 s->resample_in_constraint= !!out_count; in resample()
582 static int swr_convert_internal(struct SwrContext *s, AudioData *out, int out_count, in swr_convert_internal() argument
591 return out_count; in swr_convert_internal()
601 if((ret=swri_realloc_audio(&s->midbuf, out_count))<0) in swr_convert_internal()
608 if((ret=swri_realloc_audio(&s->preout, out_count))<0) in swr_convert_internal()
630out_count= FFMIN(out_count, in_count); //TODO check at the end if this is needed or redundant in swr_convert_internal()
632 copy(out, in, out_count); in swr_convert_internal()
633 return out_count; in swr_convert_internal()
646 out_count= resample(s, midbuf, out_count, postin, in_count); in swr_convert_internal()
648 swri_rematrix(s, preout, midbuf, out_count, preout==out); in swr_convert_internal()
653 out_count= resample(s, preout, out_count, midbuf, in_count); in swr_convert_internal()
656 if(preout != out && out_count){ in swr_convert_internal()
660 int dither_count= FFMAX(out_count, 1<<16); in swr_convert_internal()
676 if(s->dither.noise_pos + out_count > s->dither.noise.count) in swr_convert_internal()
681 int len1= out_count&~15; in swr_convert_internal()
687 if(out_count != len1) in swr_convert_internal()
689 …e.ch[ch] + s->dither.noise.bps * s->dither.noise_pos + off, s->native_one, 0, 0, out_count - len1); in swr_convert_internal()
692 …->dither.noise.ch[ch] + s->dither.noise.bps * s->dither.noise_pos, s->native_one, 0, 0, out_count); in swr_convert_internal()
696 …SAMPLE_FMT_S16P :swri_noise_shaping_int16(s, conv_src, preout, &s->dither.noise, out_count); break; in swr_convert_internal()
697 …SAMPLE_FMT_S32P :swri_noise_shaping_int32(s, conv_src, preout, &s->dither.noise, out_count); break; in swr_convert_internal()
698 …SAMPLE_FMT_FLTP :swri_noise_shaping_float(s, conv_src, preout, &s->dither.noise, out_count); break; in swr_convert_internal()
699 …SAMPLE_FMT_DBLP :swri_noise_shaping_double(s,conv_src, preout, &s->dither.noise, out_count); break; in swr_convert_internal()
702 s->dither.noise_pos += out_count; in swr_convert_internal()
705 swri_audio_convert(s->out_convert, out, conv_src, out_count); in swr_convert_internal()
707 return out_count; in swr_convert_internal()
714 … attribute_align_arg swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_CH_MAX], int out_count, in swr_convert() argument
766 int ret = swr_convert_internal(s, out, out_count, in, in_count); in swr_convert()
777 size = FFMIN(out_count, s->in_buffer_count); in swr_convert()
787 out_count -= ret; in swr_convert()
793 size= s->in_buffer_index + s->in_buffer_count + in_count - out_count; in swr_convert()
795 if(in_count > out_count) { //FIXME move after swr_convert_internal in swr_convert()
797 && s->in_buffer_count + in_count - out_count <= s->in_buffer_index){ in swr_convert()
806 if(out_count){ in swr_convert()
807 size = FFMIN(in_count, out_count); in swr_convert()