ref: a62a64ba0cdb92edd8e5fb16d82a00c100dc2514
parent: b85376212482da7e4f032c53d8c64cc0932f28ab
parent: cb544f1990dc502b87d75a1da6aa43e649bd45d1
author: Jingning Han <jingning@google.com>
date: Tue Sep 11 19:32:34 EDT 2018
Merge "Simplify vp9_frame_type_qdelta()"
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1188,13 +1188,10 @@
1.75, // GF_ARF_STD
2.00, // KF_STD
};
- static const FRAME_TYPE frame_type[RATE_FACTOR_LEVELS] = {
- INTER_FRAME, INTER_FRAME, INTER_FRAME, INTER_FRAME, KEY_FRAME
- };
const VP9_COMMON *const cm = &cpi->common;
- int qdelta =
- vp9_compute_qdelta_by_rate(&cpi->rc, frame_type[rf_level], q,
- rate_factor_deltas[rf_level], cm->bit_depth);
+
+ int qdelta = vp9_compute_qdelta_by_rate(
+ &cpi->rc, cm->frame_type, q, rate_factor_deltas[rf_level], cm->bit_depth);
return qdelta;
}