1 #ifndef _MOVIT_SATURATION_EFFECT_H
2 #define _MOVIT_SATURATION_EFFECT_H 1
4 // A simple desaturation/saturation effect. We use the Rec. 709
5 // definition of luminance (in linear light, of course) and linearly
6 // interpolate between that (saturation=0) and the original signal
7 // (saturation=1). Extrapolating that curve further (ie., saturation > 1)
8 // gives us increased saturation if so desired.
16 class SaturationEffect : public Effect {
19 std::string effect_type_id() const override { return "SaturationEffect"; }
20 AlphaHandling alpha_handling() const override { return DONT_CARE_ALPHA_TYPE; }
21 bool strong_one_to_one_sampling() const override { return true; }
22 std::string output_fragment_shader() override;
30 #endif // !defined(_MOVIT_SATURATION_EFFECT_H)