Lines Matching refs:ch_count
105 if (a->ch_count == 1) in set_audiodata_fmt()
175 s->out.ch_count = s-> user_out_ch_count; in swr_init()
176 s-> in.ch_count = s-> user_in_ch_count; in swr_init()
207 s->used_ch_count= s->in.ch_count; in swr_init()
217 s->out_ch_layout= av_get_default_channel_layout(s->out.ch_count); in swr_init()
293 if(!s-> in.ch_count) in swr_init()
294 s-> in.ch_count= av_get_channel_layout_nb_channels(s-> in_ch_layout); in swr_init()
296 s->used_ch_count= s->in.ch_count; in swr_init()
297 if(!s->out.ch_count) in swr_init()
298 s->out.ch_count= av_get_channel_layout_nb_channels(s->out_ch_layout); in swr_init()
300 if(!s-> in.ch_count){ in swr_init()
307 av_get_channel_layout_string(l1, sizeof(l1), s-> in.ch_count, s-> in_ch_layout); in swr_init()
308 av_get_channel_layout_string(l2, sizeof(l2), s->out.ch_count, s->out_ch_layout); in swr_init()
309 … if (s->out_ch_layout && s->out.ch_count != av_get_channel_layout_nb_channels(s->out_ch_layout)) { in swr_init()
310 …OG_ERROR, "Output channel layout %s mismatches specified channel count %d\n", l2, s->out.ch_count); in swr_init()
320 …if ((!s->out_ch_layout || !s->in_ch_layout) && s->used_ch_count != s->out.ch_count && !s->rematrix… in swr_init()
328 av_assert0(s->out.ch_count); in swr_init()
329 …s->resample_first= RSC*s->out.ch_count/s->used_ch_count - RSC < s->out_sample_rate/(float)s-> in_s… in swr_init()
340 s-> in_sample_fmt, s-> in.ch_count, NULL, 0); in swr_init()
347 s->int_sample_fmt, s->out.ch_count, NULL, 0); in swr_init()
359 s->postin.ch_count= in swr_init()
360 s->midbuf.ch_count= s->used_ch_count; in swr_init()
362 s->in_buffer.ch_count= s->used_ch_count; in swr_init()
365 s->midbuf.ch_count= s->out.ch_count; in swr_init()
367 s->in_buffer.ch_count = s->out.ch_count; in swr_init()
404 if(count < 0 || count > INT_MAX/2/a->bps/a->ch_count) in swri_realloc_audio()
416 av_assert0(a->ch_count); in swri_realloc_audio()
418 a->data= av_mallocz_array(countb, a->ch_count); in swri_realloc_audio()
421 for(i=0; i<a->ch_count; i++){ in swri_realloc_audio()
425 if(a->count && !a->planar) memcpy(a->ch[0], old.ch[0], a->count*a->ch_count*a->bps); in swri_realloc_audio()
436 av_assert0(out->ch_count == in->ch_count); in copy()
439 for(ch=0; ch<out->ch_count; ch++) in copy()
442 memcpy(out->ch[0], in->ch[0], count*out->ch_count*out->bps); in copy()
450 for(i=0; i<out->ch_count; i++) in fill_audiodata()
453 for(i=0; i<out->ch_count; i++) in fill_audiodata()
461 for(i=0; i<out->ch_count; i++) in reversefill_audiodata()
475 for(ch=0; ch<out->ch_count; ch++) in buf_set()
478 for(ch=out->ch_count-1; ch>=0; ch--) in buf_set()
479 out->ch[ch]= in->ch[0] + (ch + count*out->ch_count) * out->bps; in buf_set()
494 av_assert1(s->in_buffer.ch_count == in_param->ch_count); in resample()
600 av_assert0(s->midbuf.ch_count == s->used_ch_count); in swr_convert_internal()
604 av_assert0(s->midbuf.ch_count == s->out.ch_count); in swr_convert_internal()
671 for(ch=0; ch<s->dither.noise.ch_count; ch++) in swr_convert_internal()
674 av_assert0(s->dither.noise.ch_count == preout->ch_count); in swr_convert_internal()
685 for(ch=0; ch<preout->ch_count; ch++) in swr_convert_internal()
688 for(ch=0; ch<preout->ch_count; ch++) in swr_convert_internal()
691 for(ch=0; ch<preout->ch_count; ch++) in swr_convert_internal()
711 return !!s->in_buffer.ch_count; in swr_is_initialized()
856 if(s->silence.planar) for(i=0; i<s->silence.ch_count; i++) { in swr_inject_silence()
859 … memset(s->silence.ch[0], s->silence.bps==1 ? 0x80 : 0, count*s->silence.bps*s->silence.ch_count); in swr_inject_silence()