Lines Matching refs:buffer_index
167 double expected_size = rcc->buffer_index; in modify_qscale()
179 FFMAX((min_rate - buffer_size + rcc->buffer_index) * in modify_qscale()
199 FFMAX(rcc->buffer_index * in modify_qscale()
211 q, max_rate, min_rate, buffer_size, rcc->buffer_index, in modify_qscale()
364 rcc->buffer_index = s->avctx->rc_buffer_size / 2; in init_pass2()
539 rcc->buffer_index = s->avctx->rc_initial_buffer_occupancy; in ff_rate_control_init()
540 if (!rcc->buffer_index) in ff_rate_control_init()
541 rcc->buffer_index = s->avctx->rc_buffer_size * 3 / 4; in ff_rate_control_init()
689 buffer_size, rcc->buffer_index, frame_size, min_rate, max_rate); in ff_vbv_update()
694 rcc->buffer_index -= frame_size; in ff_vbv_update()
695 if (rcc->buffer_index < 0) { in ff_vbv_update()
700 rcc->buffer_index = 0; in ff_vbv_update()
703 left = buffer_size - rcc->buffer_index - 1; in ff_vbv_update()
704 rcc->buffer_index += av_clip(left, min_rate, max_rate); in ff_vbv_update()
706 if (rcc->buffer_index > buffer_size) { in ff_vbv_update()
707 int stuffing = ceil((rcc->buffer_index - buffer_size) / 8); in ff_vbv_update()
711 rcc->buffer_index -= 8 * stuffing; in ff_vbv_update()