ref: 419456617ef9991abf54d106fdb1b776f04c61bd
parent: 0b762e0c0c8496f6b560b6f4727b1ee04b920141
author: jackychen <[email protected]>
date: Mon Sep 14 12:15:07 EDT 2015
Change parameters for VP9 dynamic resizing. Use a smaller window in dynamic resizing and wait a shorter time after key frame. Change-Id: I086f840cdec3c6bdaa9acfe11346d919e445973d
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1832,8 +1832,8 @@
}
// Resize based on average buffer underflow and QP over some window.
// Ignore samples close to key frame, since QP is usually high after key.
- if (cpi->rc.frames_since_key > 2 * cpi->framerate) {
- const int window = (int)(5 * cpi->framerate);
+ if (cpi->rc.frames_since_key > 1 * cpi->framerate) {
+ const int window = (int)(4 * cpi->framerate);
cpi->resize_avg_qp += cm->base_qindex;
if (cpi->rc.buffer_level < (int)(30 * rc->optimal_buffer_level / 100))
++cpi->resize_buffer_underflow;