Go to the documentation of this file.
34 #define randomize_buffer(buf) \
36 for (size_t k = 0; k < sizeof(buf); k += 4) { \
38 AV_WN32A(buf + k, r); \
49 const uint8_t *
src2, ptrdiff_t stride2);
62 ptrdiff_t stride1 = 1 +
rnd() % max_stride;
63 ptrdiff_t stride2 = 1 +
rnd() % max_stride;
66 stride1 &= ~(
width - 1);
68 stride2 &= ~(
width - 1);
86 if (res_ref != ref_new)
static void checkasm_check_sad(void)
int(* av_pixelutils_sad_fn)(const uint8_t *src1, ptrdiff_t stride1, const uint8_t *src2, ptrdiff_t stride2)
Sum of abs(src1[x] - src2[x])
#define check_func(func,...)
void checkasm_check_pixelutils(void)
av_pixelutils_sad_fn av_pixelutils_get_sad_fn(int w_bits, int h_bits, int aligned, void *log_ctx)
Get a potentially optimized pointer to a Sum-of-absolute-differences function (see the av_pixelutils_...
static int aligned(int val)
#define DECLARE_ALIGNED(n, t, v)
#define i(width, name, range_min, range_max)
#define randomize_buffer(buf)
#define declare_func(ret,...)