mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
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:
parent
4e36992752
commit
d3561146d8
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue