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
This commit is contained in:
paulwilkins 2018-03-29 12:52:15 +01:00
parent 2b800d9394
commit e0b28ad696

View File

@ -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;