26 #define WIDTH_PADDED 256 + 32
28 #define randomize_buffers(buf, size) \
31 uint8_t *tmp_buf = (uint8_t *)buf;\
32 for (j = 0; j < size; j++) \
33 tmp_buf[j] = rnd() & 0xFF; \
46 declare_func(
void,
const uint8_t *in,
const uint8_t *threshold,
47 const uint8_t *
min,
const uint8_t *
max, uint8_t *
out,
48 ptrdiff_t ilinesize, ptrdiff_t tlinesize,
49 ptrdiff_t flinesize, ptrdiff_t slinesize,
50 ptrdiff_t olinesize,
int w,
int h);
70 if (
check_func(
s.threshold,
"threshold%d", depth)) {
71 call_ref(in, threshold,
min,
max, out_ref, line_size, line_size, line_size, line_size, line_size,
w, 1);
72 call_new(in, threshold,
min,
max, out_new, line_size, line_size, line_size, line_size, line_size,
w, 1);
73 if (memcmp(out_ref, out_new,
WIDTH))
75 bench_new(in, threshold,
min,
max, out_new, line_size, line_size, line_size, line_size, line_size,
w, 1);