X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=alpha_division_effect.h;h=2fd90820615269edad7a7655030c69d57ea01398;hp=b95e9fe77c61fb8074e548e1f361ae43f1dfdf3e;hb=34776d3ed2565ee834405e575bf3bfc7f7933e36;hpb=ac4fc36aa70ffefb6b9632dc0abea5cbbce5387b diff --git a/alpha_division_effect.h b/alpha_division_effect.h index b95e9fe..2fd9082 100644 --- a/alpha_division_effect.h +++ b/alpha_division_effect.h @@ -1,17 +1,22 @@ #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() {} virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; } std::string output_fragment_shader(); + virtual bool one_to_one_sampling() const { return true; } }; +} // namespace movit + #endif // !defined(_MOVIT_ALPHA_DIVISION_EFFECT_H)