[FFmpeg-cvslog] checkasm/sw_range_convert: reduce number of input sizes tested

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


ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Wed Sep 18 16:35:23 2024 +0200| [e308d09fba4dcfc585d1105848a024234fcb9b5b] | committer: Ramiro Polla

checkasm/sw_range_convert: reduce number of input sizes tested

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).

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

 tests/checkasm/sw_range_convert.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/checkasm/sw_range_convert.c b/tests/checkasm/sw_range_convert.c
index 005a732f85..121a459eb6 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};
     SwsContext *sws;
     SwsInternal *c;
 
@@ -75,8 +75,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};
     SwsContext *sws;
     SwsInternal *c;
 



More information about the ffmpeg-cvslog mailing list