X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=blur_effect.h;h=2aada42061098561892b71b3d6d1fb1a2d91f19f;hb=e655afd53f2e56938bd4e7f72640eff56ef4a1ee;hp=9bacd535efb69ffdbf39192f8b678c00fec472c8;hpb=3d1f6c11c53cd9d3d5c1fb60f4accf050b7f135e;p=movit diff --git a/blur_effect.h b/blur_effect.h index 9bacd53..2aada42 100644 --- a/blur_effect.h +++ b/blur_effect.h @@ -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 &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; }