Merge "Rate control parameter adjustment"

This commit is contained in:
Deb Mukherjee 2013-10-07 19:16:53 -07:00 committed by Gerrit Code Review
commit 9390862702

View File

@ -60,7 +60,7 @@ static int kfboost_qadjust(int qindex) {
int vp9_bits_per_mb(FRAME_TYPE frame_type, int qindex,
double correction_factor) {
const double q = vp9_convert_qindex_to_q(qindex);
int enumerator = frame_type == KEY_FRAME ? 4000000 : 2500000;
int enumerator = frame_type == KEY_FRAME ? 3300000 : 2250000;
// q based adjustment to baseline enumerator
enumerator += (int)(enumerator * q) >> 12;