]> git.sesse.net Git - movit/blob - alpha_division_effect.h
Add an assert to expect_equal() to make sure people send in reasonable widths and...
[movit] / alpha_division_effect.h
1 #ifndef _ALPHA_DIVISION_EFFECT_H
2 #define _ALPHA_DIVISION_EFFECT_H 1
3
4 // Convert premultiplied alpha to postmultiplied alpha, simply by multiplying.
5
6 #include "effect.h"
7
8 class AlphaDivisionEffect : public Effect {
9 public:
10         AlphaDivisionEffect() {}
11         virtual std::string effect_type_id() const { return "AlphaDivisionEffect"; }
12         std::string output_fragment_shader();
13 };
14
15 #endif // !defined(_ALPHA_DIVISION_EFFECT_H)