]> git.sesse.net Git - movit/blobdiff - alpha_division_effect.h
Release Movit 1.3.2. (From a branch, since I do not want to break ABI compatibility...
[movit] / alpha_division_effect.h
index 2b51c3a7256c6e53ca7633b561cfef1864c13aa6..2fd90820615269edad7a7655030c69d57ea01398 100644 (file)
@@ -1,17 +1,22 @@
-#ifndef _ALPHA_DIVISION_EFFECT_H
-#define _ALPHA_DIVISION_EFFECT_H 1
+#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"
 
 
 #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();
 class AlphaDivisionEffect : public Effect {
 public:
        AlphaDivisionEffect() {}
        virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; }
        std::string output_fragment_shader();
+       virtual bool one_to_one_sampling() const { return true; }
 };
 
 };
 
-#endif // !defined(_ALPHA_DIVISION_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_ALPHA_DIVISION_EFFECT_H)