Lines Matching defs:count

399         av_log(s, AV_LOG_ERROR, "Input channel count and layout are unset\n");
407 av_log(s, AV_LOG_ERROR, "Output channel layout %s mismatches specified channel count %d\n", l2, s->out.ch_count);
414 av_log(s, AV_LOG_ERROR, "Input channel layout %s mismatches specified channel count %d\n", l1, s->used_ch_count);
478 av_assert0(!s->preout.count);
500 int swri_realloc_audio(AudioData *a, int count){
504 if(count < 0 || count > INT_MAX/2/a->bps/a->ch_count)
507 if(a->count >= count)
510 count*=2;
512 countb= FFALIGN(count*a->bps, ALIGN);
523 if(a->count && a->planar) memcpy(a->ch[i], old.ch[i], a->count*a->bps);
525 if(a->count && !a->planar) memcpy(a->ch[0], old.ch[0], a->count*a->ch_count*a->bps);
527 a->count= count;
533 int count){
540 memcpy(out->ch[ch], in->ch[ch], count*out->bps);
542 memcpy(out->ch[0], in->ch[0], count*out->ch_count*out->bps);
572 static void buf_set(AudioData *out, AudioData *in, int count){
576 out->ch[ch]= in->ch[ch] + count*out->bps;
579 out->ch[ch]= in->ch[0] + (ch + count*out->ch_count) * out->bps;
647 if( size > s->in_buffer.count
657 int count= in_count;
658 if(s->in_buffer_count && s->in_buffer_count+2 < count && out_count) count= s->in_buffer_count+2;
661 copy(&tmp, &in, /*in_*/count);
662 s->in_buffer_count += count;
663 in_count -= count;
664 border += count;
665 buf_set(&in, &in, count);
667 if(s->in_buffer_count != count || in_count)
774 if((ret=swri_get_dither(s, s->dither.noise.ch[ch], s->dither.noise.count, (12345678913579ULL*ch + 3141592) % 2718281828U, s->dither.noise.fmt))<0)
778 if(s->dither.noise_pos + out_count > s->dither.noise.count)
900 if( size > s->in_buffer.count
932 int swr_drop_output(struct SwrContext *s, int count){
934 s->drop_output += count;
939 av_log(s, AV_LOG_VERBOSE, "discarding %d audio samples\n", count);
943 int swr_inject_silence(struct SwrContext *s, int count){
947 if(count <= 0)
951 while (count > MAX_SILENCE_STEP) {
954 count -= MAX_SILENCE_STEP;
957 if((ret=swri_realloc_audio(&s->silence, count))<0)
961 memset(s->silence.ch[i], s->silence.bps==1 ? 0x80 : 0, count*s->silence.bps);
963 memset(s->silence.ch[0], s->silence.bps==1 ? 0x80 : 0, count*s->silence.bps*s->silence.ch_count);
966 av_log(s, AV_LOG_VERBOSE, "adding %d audio samples of silence\n", count);
967 ret = swr_convert(s, NULL, 0, (const uint8_t**)tmp_arg, count);