30 const uint16_t *src1w = (
const uint16_t *)
src1;
31 const uint16_t *src2w = (
const uint16_t *)
src2;
37 for (y = 0; y <
height; y++) {
38 for (x = 0; x <
width; x++)
39 sad +=
FFABS(src1w[x] - src2w[x]);
49 const uint16_t *src1w = (
const uint16_t *)
src1;
50 const uint16_t *src2w = (
const uint16_t *)
src2;
56 for (y = 0; y <
height; y++) {
57 for (x = 0; x <
width; x++)
70 for (y = 0; y <
height; y++) {
71 for (x = 0; x <
width; x++)
82#if ARCH_X86 && HAVE_X86ASM
100#if ARCH_X86 && HAVE_X86ASM
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
void ff_scene_sad_c(SCENE_SAD_PARAMS)
void ff_scene_sad16_bswap_c(SCENE_SAD_PARAMS)
SAD of 9 to 16 bit samples stored in the byte order the CPU does not use.
ff_scene_sad_fn ff_scene_sad_get_fn(int depth)
void ff_scene_sad16_c(SCENE_SAD_PARAMS)
ff_scene_sad_fn ff_scene_sad_bswap_get_fn(void)
ff_scene_sad_fn ff_scene_sad_get_fn_riscv(int depth)
void(* ff_scene_sad_fn)(SCENE_SAD_PARAMS)
ff_scene_sad_fn ff_scene_sad_get_fn_x86(int depth)
ff_scene_sad_fn ff_scene_sad_bswap_get_fn_x86(void)