X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=saturation_effect.h;h=8a3aece844aa45b9cce0d0d36e0fb4231189c33d;hp=180210c7edc9682e97ca7db77ae2c78e62287543;hb=b3d1c89c7c8953cb4c73b7dba50c9813042976fa;hpb=e8650c7b7814c5beef59059b8acac3e5e7b8ddc6 diff --git a/saturation_effect.h b/saturation_effect.h index 180210c..8a3aece 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,15 +7,24 @@ // (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(); - std::string output_fragment_shader(); + std::string effect_type_id() const override { return "SaturationEffect"; } + AlphaHandling alpha_handling() const override { return DONT_CARE_ALPHA_TYPE; } + bool strong_one_to_one_sampling() const override { return true; } + std::string output_fragment_shader() override; private: float saturation; }; -#endif // !defined(_SATURATION_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_SATURATION_EFFECT_H)