1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

checkasm/v210enc.c: Use checkasm_check()

This gives more informative printouts if the tests fail,
if checkasm is run with "-v".

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Kieran Kunhya
2025-02-08 16:45:33 +00:00
committed by Martin Storsjö
parent d8ae11365c
commit 4db571e516

View File

@ -72,11 +72,10 @@
randomize_buffers(mask); \ randomize_buffers(mask); \
call_ref(y0 + y_offset, u0 + uv_offset, v0 + uv_offset, dst0, width); \ 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); \ call_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width); \
if (memcmp(y0, y1, BUF_SIZE * sizeof(type)) \ checkasm_check(type, y0, 0, y1, 0, BUF_SIZE, 1, "y"); \
|| memcmp(u0, u1, BUF_SIZE * sizeof(type) / 2) \ checkasm_check(type, u0, 0, u1, 0, BUF_SIZE / 2, 1, "u"); \
|| memcmp(v0, v1, BUF_SIZE * sizeof(type) / 2) \ checkasm_check(type, v0, 0, v1, 0, BUF_SIZE / 2, 1, "v"); \
|| memcmp(dst0, dst1, width * 8 / 3)) \ checkasm_check(uint8_t, dst0, 0, dst1, 0, width * 8 / 3, 1, "dst"); \
fail(); \
bench_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width); \ bench_new(y1 + y_offset, u1 + uv_offset, v1 + uv_offset, dst1, width); \
} \ } \
} while (0) } while (0)