]> git.sesse.net Git - movit/blobdiff - blur_effect.h
Add a white balance effect (port of my white balance effect from Frei0r).
[movit] / blur_effect.h
index 9bacd535efb69ffdbf39192f8b678c00fec472c8..2aada42061098561892b71b3d6d1fb1a2d91f19f 100644 (file)
@@ -17,6 +17,8 @@ class BlurEffect : public Effect {
 public:
        BlurEffect();
 
+       virtual std::string effect_type_id() const { return "BlurEffect"; }
+
        // We want this for the same reason as ResizeEffect; we could end up scaling
        // down quite a lot.
        virtual bool needs_texture_bounce() const { return true; }
@@ -30,7 +32,7 @@ public:
                assert(false);
        }
 
-       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);
        
 private:
@@ -43,6 +45,8 @@ private:
 class SingleBlurPassEffect : public Effect {
 public:
        SingleBlurPassEffect();
+       virtual std::string effect_type_id() const { return "SingleBlurPassEffect"; }
+
        std::string output_fragment_shader();
 
        virtual bool needs_texture_bounce() const { return true; }