From 374d2cae7c9011096ee938d0015cf4979045e68e Mon Sep 17 00:00:00 2001
From: Marco Paniconi <[EMAIL REDACTED]>
Date: Fri, 23 Aug 2024 09:04:37 -0700
Subject: [PATCH] rtc: Reduce psnr thresholds in rt tests
The default values for realtime build
have been modified in:
https://aomedia-review.googlesource.com/c/aom/+/192786
So reduction in psnr thresholds is needed to
reflect actual RTC settings. Also these tests only
encode 10 frames, so for RTC psnr can be low,
since keyframe is at much lower quality (than non realtime).
Change-Id: I06a53a6e078f86b0e352bd8bcc14165899aea1c4
---
test/loopfilter_control_test.cc | 24 ++++++++---------
test/rt_end_to_end_test.cc | 48 ++++++++++++++++-----------------
2 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/test/loopfilter_control_test.cc b/test/loopfilter_control_test.cc
index 04afa5bcc..30f04b28d 100644
--- a/test/loopfilter_control_test.cc
+++ b/test/loopfilter_control_test.cc
@@ -31,20 +31,20 @@ const int kBitrate = 500;
std::unordered_map<std::string,
std::unordered_map<int, std::unordered_map<int, double>>>
kPsnrThreshold = { { "park_joy_90p_8_420.y4m",
- { { 0, { { 0, 35.0 }, { 3, 35.8 } } },
- { 1, { { 0, 35.1 }, { 3, 35.9 } } },
- { 2, { { 0, 35.1 }, { 3, 36.1 } } },
- { 3, { { 0, 35.1 }, { 3, 36.1 } } } } },
+ { { 0, { { 0, 33.0 }, { 3, 33.0 } } },
+ { 1, { { 0, 33.0 }, { 3, 33.0 } } },
+ { 2, { { 0, 33.0 }, { 3, 33.0 } } },
+ { 3, { { 0, 33.0 }, { 3, 33.0 } } } } },
{ "paris_352_288_30.y4m",
- { { 0, { { 0, 35.40 }, { 3, 36.0 } } },
- { 1, { { 0, 35.50 }, { 3, 36.0 } } },
- { 2, { { 0, 35.50 }, { 3, 36.0 } } },
- { 3, { { 0, 35.50 }, { 3, 36.0 } } } } },
+ { { 0, { { 0, 33.0 }, { 3, 34.0 } } },
+ { 1, { { 0, 33.0 }, { 3, 34.0 } } },
+ { 2, { { 0, 33.0 }, { 3, 34.0 } } },
+ { 3, { { 0, 33.0 }, { 3, 34.0 } } } } },
{ "niklas_1280_720_30.y4m",
- { { 0, { { 0, 33.20 }, { 3, 32.90 } } },
- { 1, { { 0, 33.57 }, { 3, 33.22 } } },
- { 2, { { 0, 33.57 }, { 3, 33.22 } } },
- { 3, { { 0, 33.45 }, { 3, 33.10 } } } } } };
+ { { 0, { { 0, 31.0 }, { 3, 30.0 } } },
+ { 1, { { 0, 31.0 }, { 3, 31.0 } } },
+ { 2, { { 0, 31.0 }, { 3, 31.0 } } },
+ { 3, { { 0, 31.0 }, { 3, 31.0 } } } } } };
typedef struct {
const char *filename;
diff --git a/test/rt_end_to_end_test.cc b/test/rt_end_to_end_test.cc
index 2703d2c01..dced91542 100644
--- a/test/rt_end_to_end_test.cc
+++ b/test/rt_end_to_end_test.cc
@@ -32,33 +32,33 @@ const int kBitrate = 500;
std::unordered_map<std::string,
std::unordered_map<int, std::unordered_map<int, double>>>
kPsnrThreshold = { { "park_joy_90p_8_420.y4m",
- { { 5, { { 0, 35.3 }, { 3, 36.2 } } },
- { 6, { { 0, 35.2 }, { 3, 36.1 } } },
- { 7, { { 0, 34.8 }, { 3, 35.7 } } },
- { 8, { { 0, 34.9 }, { 3, 35.7 } } },
- { 9, { { 0, 34.9 }, { 3, 35.4 } } },
- { 10, { { 0, 34.6 }, { 3, 35.2 } } } } },
+ { { 5, { { 0, 34.0 }, { 3, 35.0 } } },
+ { 6, { { 0, 34.0 }, { 3, 35.0 } } },
+ { 7, { { 0, 33.0 }, { 3, 34.0 } } },
+ { 8, { { 0, 33.0 }, { 3, 34.0 } } },
+ { 9, { { 0, 33.0 }, { 3, 34.0 } } },
+ { 10, { { 0, 33.0 }, { 3, 34.0 } } } } },
{ "paris_352_288_30.y4m",
- { { 5, { { 0, 36.1 }, { 3, 36.6 } } },
- { 6, { { 0, 36.0 }, { 3, 36.3 } } },
- { 7, { { 0, 35.4 }, { 3, 35.9 } } },
- { 8, { { 0, 35.7 }, { 3, 36.3 } } },
- { 9, { { 0, 35.4 }, { 3, 35.9 } } },
- { 10, { { 0, 35.2 }, { 3, 35.8 } } } } },
+ { { 5, { { 0, 35.0 }, { 3, 35.0 } } },
+ { 6, { { 0, 35.0 }, { 3, 35.0 } } },
+ { 7, { { 0, 34.0 }, { 3, 34.0 } } },
+ { 8, { { 0, 34.0 }, { 3, 35.0 } } },
+ { 9, { { 0, 34.0 }, { 3, 34.0 } } },
+ { 10, { { 0, 34.0 }, { 3, 34.0 } } } } },
{ "niklas_1280_720_30.y4m",
- { { 5, { { 0, 34.3 }, { 3, 34.1 } } },
- { 6, { { 0, 34.0 }, { 3, 33.9 } } },
- { 7, { { 0, 33.4 }, { 3, 33.0 } } },
- { 8, { { 0, 33.2 }, { 3, 33.2 } } },
- { 9, { { 0, 33.2 }, { 3, 33.2 } } },
- { 10, { { 0, 33.0 }, { 3, 32.9 } } } } },
+ { { 5, { { 0, 32.0 }, { 3, 32.0 } } },
+ { 6, { { 0, 32.0 }, { 3, 32.0 } } },
+ { 7, { { 0, 31.0 }, { 3, 31.0 } } },
+ { 8, { { 0, 31.0 }, { 3, 31.0 } } },
+ { 9, { { 0, 31.0 }, { 3, 31.0 } } },
+ { 10, { { 0, 31.0 }, { 3, 31.0 } } } } },
{ "hantro_collage_w352h288_nv12.yuv",
- { { 5, { { 0, 34.3 }, { 3, 34.1 } } },
- { 6, { { 0, 34.0 }, { 3, 34.0 } } },
- { 7, { { 0, 33.5 }, { 3, 33.5 } } },
- { 8, { { 0, 33.2 }, { 3, 33.2 } } },
- { 9, { { 0, 33.2 }, { 3, 33.2 } } },
- { 10, { { 0, 33.1 }, { 3, 33.0 } } } } } };
+ { { 5, { { 0, 32.0 }, { 3, 32.0 } } },
+ { 6, { { 0, 32.0 }, { 3, 32.0 } } },
+ { 7, { { 0, 32.0 }, { 3, 32.0 } } },
+ { 8, { { 0, 32.0 }, { 3, 32.0 } } },
+ { 9, { { 0, 31.0 }, { 3, 31.0 } } },
+ { 10, { { 0, 31.0 }, { 3, 31.0 } } } } } };
typedef struct {
const char *filename;