libvmaf
Loading...
Searching...
No Matches
motion_blend_tools.h
Go to the documentation of this file.
1
18
19#include "common/macros.h"
20
21#pragma once
22
23#ifndef MOTION_BLEND_TOOLS_H_
24#define MOTION_BLEND_TOOLS_H_
25
26#define MIN(x, y) (((x) < (y)) ? (x) : (y))
27
28static FORCE_INLINE inline double motion_blend(double motion_score, double blend_factor, double blend_offset) {
29 /* return a blended motion score */
30 return motion_score * blend_factor + (1 - blend_factor) * MIN(blend_offset, motion_score);
31}
32
33#endif /* MOTION_BLEND_TOOLS_H_ */
#define MIN(x, y)
Definition cambi.h:32