/usr/include/movit/saturation_effect.h is in libmovit-dev 1.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #ifndef _MOVIT_SATURATION_EFFECT_H
#define _MOVIT_SATURATION_EFFECT_H 1
// A simple desaturation/saturation effect. We use the Rec. 709
// definition of luminance (in linear light, of course) and linearly
// interpolate between that (saturation=0) and the original signal
// (saturation=1). Extrapolating that curve further (ie., saturation > 1)
// gives us increased saturation if so desired.
#include <string>
#include "effect.h"
namespace movit {
class SaturationEffect : public Effect {
public:
SaturationEffect();
virtual std::string effect_type_id() const { return "SaturationEffect"; }
virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
virtual bool one_to_one_sampling() const { return true; }
std::string output_fragment_shader();
private:
float saturation;
};
} // namespace movit
#endif // !defined(_MOVIT_SATURATION_EFFECT_H)
|