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; \ 42 int step_array[4] = {1, 1, 1, 1};
55 for (i = 0; i < 4; i++)
62 for (i = 1; i <
w; i++) {
63 call_ref(src + (w - 1) * step, dst_ref, i);
64 call_new(src + (w - 1) * step, dst_new, i);
65 if (memcmp(dst_ref, dst_new, i * step))
68 bench_new(src + (w - 1) * step, dst_new, w);
#define randomize_buffers(buf, size)
void checkasm_check_vf_hflip(void)
#define LOCAL_ALIGNED_32(t, v,...)
#define declare_func(ret,...)
int ff_hflip_init(FlipContext *s, int step[4], int nb_planes)
#define check_func(func,...)
int bayer_plus1
1 .. not a Bayer input format, 2 .. Bayer input format
void(* flip_line[4])(const uint8_t *src, uint8_t *dst, int w)
static void check_hflip(int step, const char *report_name)
trying all byte sequences megabyte in length and selecting the best looking sequence will yield cases to try But a word about which is also called distortion Distortion can be quantified by almost any quality measurement one chooses the sum of squared differences is used but more complex methods that consider psychovisual effects can be used as well It makes no difference in this discussion First step