From: uk7b@foxmail.com
To: ffmpeg-devel@ffmpeg.org
Cc: sunyuechi <sunyuechi@iscas.ac.cn>
Subject: [FFmpeg-devel] [PATCH] checkasm: Fix h264chroma test name
Date: Sat, 4 May 2024 19:13:44 +0800
Message-ID: <tencent_93388FB2EAB6C5C2506671CC1C081655D806@qq.com> (raw)
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".
next reply other threads:[~2024-05-04 11:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-04 11:13 uk7b [this message]
2024-05-10 15:52 ` Rémi Denis-Courmont
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_93388FB2EAB6C5C2506671CC1C081655D806@qq.com \
--to=uk7b@foxmail.com \
--cc=ffmpeg-devel@ffmpeg.org \
--cc=sunyuechi@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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