]> git.sesse.net Git - movit/blobdiff - diffusion_effect.h
Release Movit 1.1.1.
[movit] / diffusion_effect.h
index 390787d9a3dc4c54c2dd8408538fd43d480ab471..64b94dd8dad11df184e3fb082ec622ab13186644 100644 (file)
 // where we first blur the picture, and then overlay it on the original
 // using the original as a matte.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <assert.h>
 #include <string>
 
 #include "effect.h"
 
+namespace movit {
+
 class BlurEffect;
 class EffectChain;
 class Node;
@@ -26,6 +28,7 @@ class OverlayMatteEffect;
 class DiffusionEffect : public Effect {
 public:
        DiffusionEffect();
+       ~DiffusionEffect();
        virtual std::string effect_type_id() const { return "DiffusionEffect"; }
 
        virtual void rewrite_graph(EffectChain *graph, Node *self);
@@ -41,6 +44,7 @@ public:
 private:
        BlurEffect *blur;
        OverlayMatteEffect *overlay_matte;
+       bool owns_overlay_matte;
 };
 
 // Used internally by DiffusionEffect; combines the blurred and the original
@@ -58,5 +62,6 @@ private:
        float blurred_mix_amount;
 };
 
+}  // namespace movit
 
 #endif // !defined(_MOVIT_DIFFUSION_EFFECT_H)