]> git.sesse.net Git - movit/blobdiff - saturation_effect.h
Remove some unused members in tests. Found by Clang 7.
[movit] / saturation_effect.h
index 710dcfd917fca1d55a04fadbe5fb2a07660bd0f0..8a3aece844aa45b9cce0d0d36e0fb4231189c33d 100644 (file)
@@ -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
 
 #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();
+       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)