diff mbox series

[FFmpeg-devel,v2,07/16] checkasm/sw_range_convert: only run benchmarks on largest input width

Message ID 20240927125241.15887-8-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

Commit Message

Ramiro Polla Sept. 27, 2024, 12:52 p.m. UTC
---
 tests/checkasm/sw_range_convert.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index df27b6c81e..e97388d14a 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -62,6 +62,7 @@  static void check_lumConvertRange(int from)
             call_new(dst1, width);
             if (memcmp(dst0, dst1, width * sizeof(int16_t)))
                 fail();
+            if (width == LARGEST_INPUT_SIZE)
             bench_new(dst1, width);
         }
     }
@@ -109,6 +110,7 @@  static void check_chrConvertRange(int from)
             if (memcmp(dstU0, dstU1, width * sizeof(int16_t)) ||
                 memcmp(dstV0, dstV1, width * sizeof(int16_t)))
                 fail();
+            if (width == LARGEST_INPUT_SIZE)
             bench_new(dstU1, dstV1, width);
         }
     }