Change-Id: I133c93c2ad4c824fc97a18de3ac2cb2aedac9013
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,
}
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;