ref: 3e0967af8fda2c67266a6c594b713cae0353954d
parent: 566905e91ec746835ffc91b1a87ddd6d352aed08
author: angiebird <angiebird@google.com>
date: Mon Aug 3 15:52:31 EDT 2020
Cosmetic changes for rate_ctrl experiment Change-Id: I133c93c2ad4c824fc97a18de3ac2cb2aedac9013
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4257,8 +4257,7 @@
static double get_bits_percent_diff(int target_bits, int actual_bits) {
double diff = abs(target_bits - actual_bits) * 1. / target_bits;
- diff *= 100;
- return diff;
+ return diff * 100;
}
static int rq_model_predict_q_index(const RATE_QSTEP_MODEL *rq_model,
--- a/vp9/encoder/vp9_encoder.h
+++ b/vp9/encoder/vp9_encoder.h
@@ -588,7 +588,7 @@
}
typedef struct RATE_QSTEP_MODEL {
- // The rq model predict the bit usage as follows.
+ // The rq model predicts the bit usage as follows.
// rate = bias - ratio * log2(q_step)
int ready;
double bias;