summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJames Darnley <jdarnley@obe.tv>2022-11-08 17:46:49 +0100
committerJames Darnley <jdarnley@obe.tv>2022-12-01 18:19:03 +0100
commitcfd1c3c0a1bd52f3c91ffa260140ac67323bcc6d (patch)
tree0aa729a001deb20668555c01ccc1ae6f14816e7b /tests
parent45ab5307a6e8c04b4ea91b1e1ccf71ba38195f7c (diff)
checkasm/v210enc: test the entire width of 10-bit planar input arrays
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/v210enc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/checkasm/v210enc.c b/tests/checkasm/v210enc.c
index 9942e08137..9fb8321c25 100644
--- a/tests/checkasm/v210enc.c
+++ b/tests/checkasm/v210enc.c
@@ -72,8 +72,10 @@
randomize_buffers(mask); \
call_ref(y0 + y_offset, u0 + uv_offset, v0 + uv_offset, dst0, width); \
call_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width); \
- if (memcmp(y0, y1, BUF_SIZE) || memcmp(u0, u1, BUF_SIZE / 2) || \
- memcmp(v0, v1, BUF_SIZE / 2) || memcmp(dst0, dst1, width * 8 / 3)) \
+ if (memcmp(y0, y1, BUF_SIZE * sizeof(type)) \
+ || memcmp(u0, u1, BUF_SIZE * sizeof(type) / 2) \
+ || memcmp(v0, v1, BUF_SIZE * sizeof(type) / 2) \
+ || memcmp(dst0, dst1, width * 8 / 3)) \
fail(); \
bench_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width); \
} \