Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] checkasm: Fix h264chroma test name
@ 2024-05-04 11:13 uk7b
  2024-05-10 15:52 ` Rémi Denis-Courmont
  0 siblings, 1 reply; 2+ messages in thread
From: uk7b @ 2024-05-04 11:13 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: sunyuechi

From: sunyuechi <sunyuechi@iscas.ac.cn>

---
 tests/checkasm/h264chroma.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/tests/checkasm/h264chroma.c b/tests/checkasm/h264chroma.c
index 1aa28c2ee1..9579fceab7 100644
--- a/tests/checkasm/h264chroma.c
+++ b/tests/checkasm/h264chroma.c
@@ -53,23 +53,23 @@ static void check_chroma_mc(void)
         randomize_buffers(bit_depth);
         for (int size = 0; size < 4; size++) {
 
-#define CHECK_CHROMA_MC(name)                                                                         \
-            do {                                                                                      \
-                if (check_func(h.name## _pixels_tab[size], #name "_mc%d_%d", 1 << size, bit_depth)) { \
-                    for (int x = 0; x < 2; x++) {                                                     \
-                        for (int y = 0; y < 2; y++) {                                                 \
-                            memcpy(dst0, src, 16 * 18 * SIZEOF_PIXEL);                                \
-                            memcpy(dst1, src, 16 * 18 * SIZEOF_PIXEL);                                \
-                            call_ref(dst0, src, 16 * SIZEOF_PIXEL, 16, x, y);                         \
-                            call_new(dst1, src, 16 * SIZEOF_PIXEL, 16, x, y);                         \
-                            if (memcmp(dst0, dst1, 16 * 16 * SIZEOF_PIXEL)) {                         \
-                                fprintf(stderr, #name ": x:%i, y:%i\n", x, y);                        \
-                                fail();                                                               \
-                            }                                                                         \
-                            bench_new(dst1, src, 16 * SIZEOF_PIXEL, 16, x, y);                        \
-                        }                                                                             \
-                    }                                                                                 \
-                }                                                                                     \
+#define CHECK_CHROMA_MC(name)                                                                             \
+            do {                                                                                          \
+                if (check_func(h.name## _pixels_tab[size], #name "_mc%d_%d", 1 << (3-size), bit_depth)) { \
+                    for (int x = 0; x < 2; x++) {                                                         \
+                        for (int y = 0; y < 2; y++) {                                                     \
+                            memcpy(dst0, src, 16 * 18 * SIZEOF_PIXEL);                                    \
+                            memcpy(dst1, src, 16 * 18 * SIZEOF_PIXEL);                                    \
+                            call_ref(dst0, src, 16 * SIZEOF_PIXEL, 16, x, y);                             \
+                            call_new(dst1, src, 16 * SIZEOF_PIXEL, 16, x, y);                             \
+                            if (memcmp(dst0, dst1, 16 * 16 * SIZEOF_PIXEL)) {                             \
+                                fprintf(stderr, #name ": x:%i, y:%i\n", x, y);                            \
+                                fail();                                                                   \
+                            }                                                                             \
+                            bench_new(dst1, src, 16 * SIZEOF_PIXEL, 16, x, y);                            \
+                        }                                                                                 \
+                    }                                                                                     \
+                }                                                                                         \
             } while (0)
 
             CHECK_CHROMA_MC(put_h264_chroma);
-- 
2.45.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH] checkasm: Fix h264chroma test name
  2024-05-04 11:13 [FFmpeg-devel] [PATCH] checkasm: Fix h264chroma test name uk7b
@ 2024-05-10 15:52 ` Rémi Denis-Courmont
  0 siblings, 0 replies; 2+ messages in thread
From: Rémi Denis-Courmont @ 2024-05-10 15:52 UTC (permalink / raw)
  To: ffmpeg-devel

Will merge soon.

-- 
レミ・デニ-クールモン
http://www.remlab.net/
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-10 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-04 11:13 [FFmpeg-devel] [PATCH] checkasm: Fix h264chroma test name uk7b
2024-05-10 15:52 ` Rémi Denis-Courmont

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git