From 419da5c734fd8a54aee7638271ed9df8511eb495 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 12 Nov 2015 16:52:45 -0800 Subject: [PATCH] Adjust variance threshold for 16x16 split at low resolutions. Change-Id: I635e37f81237e9703d7d9a11ed76a043f4ec6eb0 --- test/resize_test.cc | 2 +- vp9/encoder/vp9_encodeframe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/resize_test.cc b/test/resize_test.cc index dd184d18e..21916ad51 100644 --- a/test/resize_test.cc +++ b/test/resize_test.cc @@ -407,7 +407,7 @@ TEST_P(ResizeRealtimeTest, TestInternalResizeDownUpChangeBitRate) { // Disable dropped frames. cfg_.rc_dropframe_thresh = 0; // Starting bitrate low. - cfg_.rc_target_bitrate = 100; + cfg_.rc_target_bitrate = 90; ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); unsigned int last_w = cfg_.g_w; diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 735ca8163..047588369 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -500,7 +500,7 @@ static void set_vbp_thresholds(VP9_COMP *cpi, int64_t thresholds[], int q) { if (cm->width <= 352 && cm->height <= 288) { thresholds[0] = threshold_base >> 3; thresholds[1] = threshold_base >> 1; - thresholds[2] = threshold_base << 2; + thresholds[2] = threshold_base << 3; } else { thresholds[0] = threshold_base; thresholds[1] = (5 * threshold_base) >> 2; -- 2.49.0