27#define randomize_buffers(type, buf, size, mask) \
30 type *tmp_buf = (type *) buf; \
31 for (j = 0; j < size; j++) \
32 tmp_buf[j] = rnd() & mask; \
40 const uint8_t *
src2, ptrdiff_t stride2,
44 int mask = (1 << depth) - 1;
48 }
else if (depth <= 16) {
58 fprintf(stderr,
"scene_sad%d: sum mismatch: %llu != %llu\n",
59 depth, (
unsigned long long) sum1, (
unsigned long long)
sum2);
68 const int depths[] = { 8, 10, 12, 14, 15, 16 };
71 report(
"scene_sad%d", depths[
i]);
#define i(width, name, range_min, range_max)
ff_scene_sad_fn ff_scene_sad_get_fn(int depth)
static const uint16_t mask[17]
#define LOCAL_ALIGNED_32(t, v,...)
static void RENAME sum2(void *out_, const void *in1_, const void *in2_, const void *coeffp_, integer index1, integer index2, integer len)
#define FF_ARRAY_ELEMS(a)
void checkasm_check_scene_sad(void)
#define randomize_buffers(type, buf, size, mask)
static void check_scene_sad(int depth)