shithub: libvpx

Download patch

ref: ca9a262b1d7272a32da60273dbc607d0f54e0262
parent: f9ab864199a7a4d94df8c3ba3492d4feb3cfa90d
parent: 3e0967af8fda2c67266a6c594b713cae0353954d
author: Angie Chiang <angiebird@google.com>
date: Thu Aug 6 18:21:46 EDT 2020

Merge "Cosmetic changes for rate_ctrl experiment"

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4259,8 +4259,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;