X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=saturation_effect.h;h=a80740fefc0946508d23776f4b7c63ff1d33ef70;hp=4dd72e4da09b4b0805ecf6d6d7b0104e68f9cd1e;hb=67b2debafd624d3be66588171d6ec677b54247ba;hpb=f99ad333a7acbb6c8c995dbb036484ae8940c490 diff --git a/saturation_effect.h b/saturation_effect.h index 4dd72e4..a80740f 100644 --- a/saturation_effect.h +++ b/saturation_effect.h @@ -1,5 +1,5 @@ -#ifndef _SATURATION_EFFECT_H -#define _SATURATION_EFFECT_H 1 +#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 @@ -7,16 +7,23 @@ // (saturation=1). Extrapolating that curve further (ie., saturation > 1) // gives us increased saturation if so desired. +#include + #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; } std::string output_fragment_shader(); private: float saturation; }; -#endif // !defined(_SATURATION_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_SATURATION_EFFECT_H)