X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=alpha_division_effect.h;h=ae8f786e3075040c147f844da3ff8afae2326667;hb=7878253d0d7b5aaa6b701499e588b31f2c5edca2;hp=2b51c3a7256c6e53ca7633b561cfef1864c13aa6;hpb=37f56fcbe571b2322243f6de59494bf9e0cbb37a;p=movit diff --git a/alpha_division_effect.h b/alpha_division_effect.h index 2b51c3a..ae8f786 100644 --- a/alpha_division_effect.h +++ b/alpha_division_effect.h @@ -1,12 +1,14 @@ -#ifndef _ALPHA_DIVISION_EFFECT_H -#define _ALPHA_DIVISION_EFFECT_H 1 +#ifndef _MOVIT_ALPHA_DIVISION_EFFECT_H +#define _MOVIT_ALPHA_DIVISION_EFFECT_H 1 -// Convert premultiplied alpha to postmultiplied alpha, simply by multiplying. +// Convert postmultiplied alpha to premultiplied alpha, simply by dividing. #include #include "effect.h" +namespace movit { + class AlphaDivisionEffect : public Effect { public: AlphaDivisionEffect() {} @@ -14,4 +16,6 @@ public: std::string output_fragment_shader(); }; -#endif // !defined(_ALPHA_DIVISION_EFFECT_H) +} // namespace movit + +#endif // !defined(_MOVIT_ALPHA_DIVISION_EFFECT_H)