27 #define randomize_buffers() \
29 for (int i = 0; i < 16*18*2; i++) \
30 src[i] = rnd() & 0x3; \
41 ptrdiff_t
stride,
int h,
int x,
int y);
47 #define CHECK_CHROMA_MC(name) \
49 if (check_func(h.name## _pixels_tab[size], #name "_mc%d", 1 << (3 - size))) { \
50 for (int x = 0; x < 2; x++) { \
51 for (int y = 0; y < 2; y++) { \
52 memcpy(dst0, src, 16 * 18); \
53 memcpy(dst1, src, 16 * 18); \
54 call_ref(dst0, src, 16, 16, x, y); \
55 call_new(dst1, src, 16, 16, x, y); \
56 if (memcmp(dst0, dst1, 16 * 16)) { \
57 fprintf(stderr, #name ": x:%i, y:%i\n", x, y); \
60 bench_new(dst1, src, 16, 16, x, y); \