summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunyuechi <sunyuechi@iscas.ac.cn>2024-05-04 19:13:44 +0800
committerRémi Denis-Courmont <remi@remlab.net>2024-05-11 11:36:20 +0300
commit11f689317d66c9b9acb1abed47c1c825be155a58 (patch)
tree2b92c4228c109b9efd0075fb787fb7c7ad11393e
parent250c0defa23759fdcdc893464d876e5cd5980d7a (diff)
downloadffmpeg-upstream-master.tar.gz
checkasm: Fix h264chroma test nameupstream-master
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
-rw-r--r--tests/checkasm/h264chroma.c34
1 files 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);