[FFmpeg-cvslog] checkasm/sw_range_convert: only run benchmarks on largest input width

Ramiro Polla git at videolan.org
Sun Oct 27 14:25:17 EET 2024


ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Sun Sep 22 12:59:23 2024 +0200| [2c44393c011033f18131865d16ce3e01209bc6c2] | committer: Ramiro Polla

checkasm/sw_range_convert: only run benchmarks on largest input width

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c44393c011033f18131865d16ce3e01209bc6c2
---

 tests/checkasm/sw_range_convert.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index 121a459eb6..bce7a7e3e5 100644
--- a/tests/checkasm/sw_range_convert.c
+++ b/tests/checkasm/sw_range_convert.c
@@ -64,6 +64,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);
         }
     }
@@ -113,6 +114,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);
         }
     }



More information about the ffmpeg-cvslog mailing list