@@ -68,7 +68,7 @@ static void check_shuffle_bytes(void * func, const char * report)
}
}
-static void check_uyvy_to_422p(void)
+static void check_yuy2_to_422p(void *func, const char *report)
{
int i;
@@ -88,7 +88,7 @@ static void check_uyvy_to_422p(void)
randomize_buffers(src0, MAX_STRIDE * MAX_HEIGHT * 2);
memcpy(src1, src0, MAX_STRIDE * MAX_HEIGHT * 2);
- if (check_func(uyvytoyuv422, "uyvytoyuv422")) {
+ if (check_func(func, "%s", report)) {
for (i = 0; i < 6; i ++) {
memset(dst_y_0, 0, MAX_STRIDE * MAX_HEIGHT);
memset(dst_y_1, 0, MAX_STRIDE * MAX_HEIGHT);
@@ -198,8 +198,10 @@ void checkasm_check_sw_rgb(void)
check_shuffle_bytes(shuffle_bytes_3210, "shuffle_bytes_3210");
report("shuffle_bytes_3210");
- check_uyvy_to_422p();
+ check_yuy2_to_422p(uyvytoyuv422, "uyvytoyuv422");
report("uyvytoyuv422");
+ check_yuy2_to_422p(yuyvtoyuv422, "yuyvtoyuv422");
+ report("yuyvtoyuv422");
check_interleave_bytes();
report("interleave_bytes");
From: Rémi Denis-Courmont <remi@remlab.net> --- tests/checkasm/sw_rgb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)