]> git.sesse.net Git - movit/blobdiff - saturation_effect.h
Run include-what-you-use over all of movit. Some hand tuning.
[movit] / saturation_effect.h
index 6cfc3d0ee0392c49d18e5a0b3f782c40fc5889e9..710dcfd917fca1d55a04fadbe5fb2a07660bd0f0 100644 (file)
@@ -1,11 +1,21 @@
 #ifndef _SATURATION_EFFECT_H
 #define _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"
 
 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; }
        std::string output_fragment_shader();
 
 private: