]> git.sesse.net Git - movit/blobdiff - padding_effect.h
Reduce the amount of arithmetic in the BlurEffect shader a bit.
[movit] / padding_effect.h
index a836ba208cc4c096fad3d0b9c7de6cc2da20ae7c..3bd4aacb321a54c80ce98e23526d941a9f1bce58 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _PADDING_EFFECT_H
-#define _PADDING_EFFECT_H 1
+#ifndef _MOVIT_PADDING_EFFECT_H
+#define _MOVIT_PADDING_EFFECT_H 1
 
 // Takes an image and pads it to fit a larger image, or crops it to fit a smaller one
 // (although the latter is implemented slightly less efficiently, and you cannot both
@@ -17,6 +17,8 @@
 
 #include "effect.h"
 
+namespace movit {
+
 class PaddingEffect : public Effect {
 public:
        PaddingEffect();
@@ -33,10 +35,12 @@ public:
        virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height);
 
 private:
-       RGBATriplet border_color;
+       RGBATuple border_color;
        int input_width, input_height;
        int output_width, output_height;
        float top, left;
 };
 
-#endif // !defined(_PADDING_EFFECT_H)
+}  // namespace movit
+
+#endif // !defined(_MOVIT_PADDING_EFFECT_H)