29 const uint16_t *src1w = (
const uint16_t *)
src1;
30 const uint16_t *src2w = (
const uint16_t *)src2;
36 for (y = 0; y <
height; y++) {
37 for (x = 0; x <
width; x++)
38 sad +=
FFABS(src1w[x] - src2w[x]);
50 for (y = 0; y <
height; y++) {
51 for (x = 0; x <
width; x++)
void ff_scene_sad_c(SCENE_SAD_PARAMS)
void(* ff_scene_sad_fn)(SCENE_SAD_PARAMS)
ff_scene_sad_fn ff_scene_sad_get_fn(int depth)
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
ff_scene_sad_fn ff_scene_sad_get_fn_x86(int depth)
void ff_scene_sad16_c(SCENE_SAD_PARAMS)