X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=glow_effect.h;h=02520d7bd9ad8f87f38dd9c4365f63be9e85851f;hp=3453c997d82ee2938b987089774b2a5677309bde;hb=f216b7bef5a968c89f6fc78e83cc26a91e504a8a;hpb=37f56fcbe571b2322243f6de59494bf9e0cbb37a diff --git a/glow_effect.h b/glow_effect.h index 3453c99..02520d7 100644 --- a/glow_effect.h +++ b/glow_effect.h @@ -1,15 +1,17 @@ -#ifndef _GLOW_EFFECT_H -#define _GLOW_EFFECT_H 1 +#ifndef _MOVIT_GLOW_EFFECT_H +#define _MOVIT_GLOW_EFFECT_H 1 // Glow: Cut out the highlights of the image (everything above a certain threshold), // blur them, and overlay them onto the original image. -#include +#include #include #include #include "effect.h" +namespace movit { + class BlurEffect; class EffectChain; class HighlightCutoffEffect; @@ -50,9 +52,12 @@ public: std::string output_fragment_shader(); virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } + virtual bool one_to_one_sampling() const { return true; } private: float cutoff; }; -#endif // !defined(_GLOW_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_GLOW_EFFECT_H)