]> git.sesse.net Git - movit/blobdiff - diffusion_effect.h
Add some missing tests to .gitignore.
[movit] / diffusion_effect.h
index f8ed77c35af528cdb71e896e80522dfa3c270ae8..64d743d12eb923bd409b24ddd0d5de508ff5458c 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 <assert.h>
+#include <string>
+
 #include "effect.h"
 
 class BlurEffect;
+class EffectChain;
+class Node;
 class OverlayMatteEffect;
 
 class DiffusionEffect : public Effect {
@@ -22,7 +28,7 @@ public:
        DiffusionEffect();
        virtual std::string effect_type_id() const { return "DiffusionEffect"; }
 
-       virtual void add_self_to_effect_chain(EffectChain *chain, const std::vector<Effect *> &input);
+       virtual void rewrite_graph(EffectChain *graph, Node *self);
        virtual bool set_float(const std::string &key, float value);
        
        virtual std::string output_fragment_shader() {
@@ -44,6 +50,7 @@ public:
        OverlayMatteEffect();
        virtual std::string effect_type_id() const { return "OverlayMatteEffect"; }
        std::string output_fragment_shader();
+       virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
 
        unsigned num_inputs() const { return 2; }