diff options
author | Marton Balint <cus@passwd.hu> | 2018-04-05 01:37:25 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-11-11 20:30:50 +0100 |
commit | 6c2a7a8e9a3698f37913d3f24723fbb8fa895798 (patch) | |
tree | e078a0d996756411dd2087fbdce35474cce539cf /libavfilter/framerate.h | |
parent | 6df9020f45eaff66ba2c2bac98cda9ddaacb03f3 (diff) |
avfilter/vf_framerate: factorize SAD functions which compute SAD for a whole frame
Also add SIMD which works on lines because it is faster then calculating it on
8x8 blocks using pixelutils.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter/framerate.h')
-rw-r--r-- | libavfilter/framerate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/framerate.h b/libavfilter/framerate.h index a42d5af68a..8048dfa36a 100644 --- a/libavfilter/framerate.h +++ b/libavfilter/framerate.h @@ -19,7 +19,7 @@ #ifndef AVFILTER_FRAMERATE_H #define AVFILTER_FRAMERATE_H -#include "libavutil/pixelutils.h" +#include "scene_sad.h" #include "avfilter.h" #define BLEND_FUNC_PARAMS const uint8_t *src1, ptrdiff_t src1_linesize, \ @@ -48,7 +48,7 @@ typedef struct FrameRateContext { AVRational srce_time_base; ///< timebase of source AVRational dest_time_base; ///< timebase of destination - av_pixelutils_sad_fn sad; ///< Sum of the absolute difference function (scene detect only) + ff_scene_sad_fn sad; ///< Sum of the absolute difference function (scene detect only) double prev_mafd; ///< previous MAFD (scene detect only) int blend_factor_max; |