]> git.sesse.net Git - movit/blobdiff - mirror_effect.h
Save a mul in YCbCrInput by folding the scaling into the matrix.
[movit] / mirror_effect.h
index 343eb173a52a96c717ee5bc49c44314bb9db6ae4..c4b46dbb6ff61cff94554bf845bbc8238cec8340 100644 (file)
@@ -1,17 +1,25 @@
-#ifndef _MIRROR_EFFECT_H
-#define _MIRROR_EFFECT_H 1
+#ifndef _MOVIT_MIRROR_EFFECT_H
+#define _MOVIT_MIRROR_EFFECT_H 1
 
 // A simple horizontal mirroring.
 
+#include <string>
+
 #include "effect.h"
 
+namespace movit {
+
 class MirrorEffect : public Effect {
 public:
        MirrorEffect();
+       virtual std::string effect_type_id() const { return "MirrorEffect"; }
        std::string output_fragment_shader();
 
        virtual bool needs_linear_light() const { return false; }
        virtual bool needs_srgb_primaries() const { return false; }
+       virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
 };
 
-#endif // !defined(_MIRROR_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_MIRROR_EFFECT_H)