Change parameters for VP9 dynamic resizing.
Use a smaller window in dynamic resizing and wait a shorter time after key frame. Change-Id: I086f840cdec3c6bdaa9acfe11346d919e445973d
This commit is contained in:
parent
0b762e0c0c
commit
419456617e
@ -1832,8 +1832,8 @@ int vp9_resize_one_pass_cbr(VP9_COMP *cpi) {
|
|||||||
}
|
}
|
||||||
// Resize based on average buffer underflow and QP over some window.
|
// Resize based on average buffer underflow and QP over some window.
|
||||||
// Ignore samples close to key frame, since QP is usually high after key.
|
// Ignore samples close to key frame, since QP is usually high after key.
|
||||||
if (cpi->rc.frames_since_key > 2 * cpi->framerate) {
|
if (cpi->rc.frames_since_key > 1 * cpi->framerate) {
|
||||||
const int window = (int)(5 * cpi->framerate);
|
const int window = (int)(4 * cpi->framerate);
|
||||||
cpi->resize_avg_qp += cm->base_qindex;
|
cpi->resize_avg_qp += cm->base_qindex;
|
||||||
if (cpi->rc.buffer_level < (int)(30 * rc->optimal_buffer_level / 100))
|
if (cpi->rc.buffer_level < (int)(30 * rc->optimal_buffer_level / 100))
|
||||||
++cpi->resize_buffer_underflow;
|
++cpi->resize_buffer_underflow;
|
||||||
|
Loading…
Reference in New Issue
Block a user