29 static const uint32_t
pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff };
31 #define SIZEOF_PIXEL ((bit_depth + 7) / 8)
32 #define BUF_STRIDE (8 * 2)
34 #define BUF_OFFSET (BUF_STRIDE * BUF_LINES)
35 #define BUF_SIZE (BUF_STRIDE * BUF_LINES + BUF_OFFSET * 2)
37 #define randomize_buffers(buf0, buf1, size) \
39 uint32_t mask = pixel_mask[(bit_depth - 8) >> 1]; \
41 for (k = 0; k < size; k += 4) { \
42 uint32_t r = rnd() & mask; \
43 AV_WN32A(buf0 + k, r); \
44 AV_WN32A(buf1 + k, r); \
53 uint8_t no_p[2] = { 0, 0 };
54 uint8_t no_q[2] = { 0, 0 };
61 for (
int i = 0;
i < 4;
i++) {
76 for (
int i = 0;
i < 4;
i++) {