From d3561146d896dd1dd1867b50c2892a5e1bda0cc5 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Thu, 10 Oct 2013 19:09:44 +0300 Subject: [PATCH] Change sad-tests to use chars instead of numbers to help with debugging. 1 + 48 is ascii '1' and so on. --- tests/sad_tests.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/sad_tests.cpp b/tests/sad_tests.cpp index 21240ec6..e01517a1 100644 --- a/tests/sad_tests.cpp +++ b/tests/sad_tests.cpp @@ -45,11 +45,16 @@ picture *g_ref = 0; // SETUP, TEARDOWN AND HELPER FUNCTIONS void sad_setup(void) { + unsigned i; g_pic = picture_init(8, 8, 1, 1); - memcpy(g_pic->y_data, pic_data, 64); + for (i = 0; i < 64; ++i) { + g_pic->y_data[i] = pic_data[i] + 48; + } g_ref = picture_init(8, 8, 1, 1); - memcpy(g_ref->y_data, ref_data, 64); + for (i = 0; i < 64; ++i) { + g_ref->y_data[i] = ref_data[i] + 48; + } } void sad_teardown(void)