]> git.sesse.net Git - movit/blobdiff - mix_effect.h
Fix a comment.
[movit] / mix_effect.h
index 967c06b2ba59ac47b9ed21b7f1692f90bfdde854..d891eb5212f7470d013553bc48a2b742d5a40f69 100644 (file)
@@ -1,11 +1,15 @@
-#ifndef _MIX_EFFECT_H
-#define _MIX_EFFECT_H 1
+#ifndef _MOVIT_MIX_EFFECT_H
+#define _MOVIT_MIX_EFFECT_H 1
 
 // Combine two images: a*x + b*y. If you set a within [0,1] and b=1-a,
 // you will get a fade; if not, you may get surprising results (consider alpha).
 
+#include <string>
+
 #include "effect.h"
 
+namespace movit {
+
 class MixEffect : public Effect {
 public:
        MixEffect();
@@ -14,6 +18,7 @@ public:
 
        virtual bool needs_srgb_primaries() const { return false; }
        virtual unsigned num_inputs() const { return 2; }
+       virtual bool one_to_one_sampling() const { return true; }
 
        // TODO: In the common case where a+b=1, it would be useful to be able to set
        // alpha_handling() to INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK. However, right now
@@ -23,4 +28,6 @@ private:
        float strength_first, strength_second;
 };
 
-#endif // !defined(_MIX_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_MIX_EFFECT_H)