diff mbox series

[FFmpeg-devel,06/14] checkasm/sw_range_convert: reduce number of input sizes tested

Message ID 20240923124017.33659-7-ramiro.polla@gmail.com
State New
Headers show
Series swscale/range_convert: fix mpeg ranges in yuv range conversion for non-8-bit pixel formats | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Ramiro Polla Sept. 23, 2024, 12:40 p.m. UTC
Reduce input sizes to 8 (to test that the function works with widths
smaller than the vector length) and 1920 (raising the largest input
size to improve benchmark results).
---
 tests/checkasm/sw_range_convert.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index 8c8af995e7..df27b6c81e 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -31,8 +31,8 @@ 
 static void check_lumConvertRange(int from)
 {
     const char *func_str = from ? "lumRangeFromJpeg" : "lumRangeToJpeg";
-#define LARGEST_INPUT_SIZE 512
-    static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
+#define LARGEST_INPUT_SIZE 1920
+    static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
     struct SwsContext *ctx;
 
     LOCAL_ALIGNED_32(int16_t, dst0, [LARGEST_INPUT_SIZE]);
@@ -73,8 +73,8 @@  static void check_lumConvertRange(int from)
 static void check_chrConvertRange(int from)
 {
     const char *func_str = from ? "chrRangeFromJpeg" : "chrRangeToJpeg";
-#define LARGEST_INPUT_SIZE 512
-    static const int input_sizes[] = {8, 24, 128, 144, 256, 512};
+#define LARGEST_INPUT_SIZE 1920
+    static const int input_sizes[] = {8, LARGEST_INPUT_SIZE};
     struct SwsContext *ctx;
 
     LOCAL_ALIGNED_32(int16_t, dstU0, [LARGEST_INPUT_SIZE]);