From: paulwilkins Date: Thu, 29 Mar 2018 11:52:15 +0000 (+0100) Subject: Add extra case to wq_err_divisor() X-Git-Tag: v1.8.0~744^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0b28ad69;p=libvpx Add extra case to wq_err_divisor() Add extra case for 360P and smaller. This hurts a little in psnr for the derf cif set but helps a little in terms of average rate accuracy. Most clips come in a little smaller with this patch. No impact on larger formats. Change-Id: I5056246cb53b90f961ff9ea5813937f33778aa4c --- diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index e102b4939..df687503e 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -1588,7 +1588,9 @@ static double wq_err_divisor(VP9_COMP *cpi) { // Use a different error per mb factor for calculating boost for // different formats. - if (screen_area < 1280 * 720) { + if (screen_area <= 640 * 360) { + return 115.0; + } else if (screen_area < 1280 * 720) { return 125.0; } else if (screen_area <= 1920 * 1080) { return 130.0;