Change sad-tests to use chars instead of numbers to help with debugging.

1 + 48 is ascii '1' and so on.
This commit is contained in:
Ari Koivula 2013-10-10 19:09:44 +03:00
parent 4e36992752
commit d3561146d8

View file

@ -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)