Lines Matching defs:active_worst_quality

365                       int active_best_quality, int active_worst_quality) {
367 int q = active_worst_quality;
396 } while (++i <= active_worst_quality);
419 int active_worst_quality;
422 active_worst_quality = curr_frame == 0 ? rc->worst_quality
427 active_worst_quality = curr_frame == 1 ? rc->last_q[KEY_FRAME] * 5 / 4
430 active_worst_quality = curr_frame == 1 ? rc->last_q[KEY_FRAME] * 2
435 return MIN(active_worst_quality, rc->worst_quality);
438 // Adjust active_worst_quality level based on buffer level.
440 // Adjust active_worst_quality: If buffer is above the optimal/target level,
441 // bring active_worst_quality down depending on fullness of buffer.
442 // If buffer is below the optimal level, let the active_worst_quality go from
451 int active_worst_quality;
455 active_worst_quality = MIN(rc->worst_quality,
458 active_worst_quality = MIN(rc->worst_quality,
463 int max_adjustment_down = active_worst_quality / 3;
470 active_worst_quality -= adjustment;
482 active_worst_quality = rc->avg_frame_qindex[INTER_FRAME] + adjustment;
486 active_worst_quality = rc->worst_quality;
488 return active_worst_quality;
497 int active_worst_quality = calc_active_worst_quality_one_pass_cbr(cpi);
536 // Use the lower of active_worst_quality and recent
540 rc->avg_frame_qindex[INTER_FRAME] < active_worst_quality) {
543 q = active_worst_quality;
549 // Use the lower of active_worst_quality and recent/average Q.
551 if (rc->avg_frame_qindex[INTER_FRAME] < active_worst_quality)
554 active_best_quality = inter_minq[active_worst_quality];
556 if (rc->avg_frame_qindex[KEY_FRAME] < active_worst_quality)
559 active_best_quality = inter_minq[active_worst_quality];
566 active_worst_quality = clamp(active_worst_quality,
569 *top_index = active_worst_quality;
576 *top_index = (active_worst_quality + active_best_quality * 3) / 4;
584 active_best_quality, active_worst_quality);
608 int active_worst_quality = calc_active_worst_quality_one_pass_vbr(cpi);
647 // Force the KF quantizer to be 30% of the active_worst_quality.
648 current_q = vp9_convert_qindex_to_q(active_worst_quality);
649 active_best_quality = active_worst_quality
654 // Use the lower of active_worst_quality and recent
658 rc->avg_frame_qindex[INTER_FRAME] < active_worst_quality) {
704 // Use the lower of active_worst_quality and recent/average Q.
727 active_worst_quality = clamp(active_worst_quality,
730 *top_index = active_worst_quality;
737 *top_index = (active_worst_quality + active_best_quality * 3) / 4;
740 *top_index = (active_worst_quality + active_best_quality) / 2;
750 active_best_quality, active_worst_quality);
764 double current_q = vp9_convert_qindex_to_q(active_worst_quality);
768 q = active_worst_quality +
791 int active_worst_quality = cpi->twopass.active_worst_quality;
809 // Baseline value derived from cpi->active_worst_quality and kf boost.
810 active_best_quality = get_active_quality(active_worst_quality,
832 // Force the KF quantizer to be 30% of the active_worst_quality.
833 current_q = vp9_convert_qindex_to_q(active_worst_quality);
834 active_best_quality = active_worst_quality
839 // Use the lower of active_worst_quality and recent
843 rc->avg_frame_qindex[INTER_FRAME] < active_worst_quality) {
846 q = active_worst_quality;
889 active_best_quality = inter_minq[active_worst_quality];
909 active_worst_quality = clamp(active_worst_quality,
912 *top_index = active_worst_quality;
918 *top_index = (active_worst_quality + active_best_quality * 3) / 4;
922 *top_index = (active_worst_quality + active_best_quality) / 2;
933 active_best_quality, active_worst_quality);
947 double current_q = vp9_convert_qindex_to_q(active_worst_quality);
951 q = active_worst_quality +