X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=diffusion_effect.h;h=2c31e4ae348524e23ba2b55e344a739d01b2092c;hp=624990cbd664d90cd2e6d9ce2649bed96fecb10d;hb=d843bbc41c20e1f0abe25df5162423270af78896;hpb=e655afd53f2e56938bd4e7f72640eff56ef4a1ee diff --git a/diffusion_effect.h b/diffusion_effect.h index 624990c..2c31e4a 100644 --- a/diffusion_effect.h +++ b/diffusion_effect.h @@ -1,5 +1,5 @@ -#ifndef _DIFFUSION_EFFECT_H -#define _DIFFUSION_EFFECT_H 1 +#ifndef _MOVIT_DIFFUSION_EFFECT_H +#define _MOVIT_DIFFUSION_EFFECT_H 1 // There are many different effects that go under the name of "diffusion", // seemingly all of the inspired by the effect you get when you put a @@ -12,9 +12,17 @@ // where we first blur the picture, and then overlay it on the original // using the original as a matte. +#include +#include +#include + #include "effect.h" +namespace movit { + class BlurEffect; +class EffectChain; +class Node; class OverlayMatteEffect; class DiffusionEffect : public Effect { @@ -44,6 +52,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; } @@ -51,5 +60,6 @@ private: float blurred_mix_amount; }; +} // namespace movit -#endif // !defined(_DIFFUSION_EFFECT_H) +#endif // !defined(_MOVIT_DIFFUSION_EFFECT_H)