In overlay matte, use the luminance as a matte instead of each individual color compo...
[movit] / saturation_effect.h
1 #ifndef _SATURATION_EFFECT_H
2 #define _SATURATION_EFFECT_H 1
3
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.
9
10 #include "effect.h"
11
12 class SaturationEffect : public Effect {
13 public:
14         SaturationEffect();
15         std::string output_fragment_shader();
16
17 private:
18         float saturation;
19 };
20
21 #endif // !defined(_SATURATION_EFFECT_H)