]> git.sesse.net Git - movit/blobdiff - alpha_division_effect.h
Use C++11 override everywhere it is appropriate.
[movit] / alpha_division_effect.h
index b95e9fe77c61fb8074e548e1f361ae43f1dfdf3e..92581710c0c739c418dbc342683f85be10b4e03a 100644 (file)
@@ -1,17 +1,22 @@
 #ifndef _MOVIT_ALPHA_DIVISION_EFFECT_H
 #define _MOVIT_ALPHA_DIVISION_EFFECT_H 1
 
-// Convert premultiplied alpha to postmultiplied alpha, simply by multiplying.
+// Convert postmultiplied alpha to premultiplied alpha, simply by dividing.
 
 #include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class AlphaDivisionEffect : public Effect {
 public:
        AlphaDivisionEffect() {}
-       virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; }
-       std::string output_fragment_shader();
+       std::string effect_type_id() const override { return "AlphaDivisionEffect"; }
+       std::string output_fragment_shader() override;
+       bool one_to_one_sampling() const override { return true; }
 };
 
+}  // namespace movit
+
 #endif // !defined(_MOVIT_ALPHA_DIVISION_EFFECT_H)