]> git.sesse.net Git - movit/blob - alpha_multiplication_effect.h
Allow for more than ten bits in subpixel precision measuring; modern llvmpipe seems...
[movit] / alpha_multiplication_effect.h
1 #ifndef _ALPHA_MULTIPLICATION_EFFECT_H
2 #define _ALPHA_MULTIPLICATION_EFFECT_H 1
3
4 // Convert postmultiplied alpha to premultiplied alpha, simply by multiplying.
5
6 #include "effect.h"
7
8 class AlphaMultiplicationEffect : public Effect {
9 public:
10         AlphaMultiplicationEffect() {}
11         virtual std::string effect_type_id() const { return "AlphaMultiplicationEffect"; }
12         std::string output_fragment_shader();
13 };
14
15 #endif // !defined(_ALPHA_MULTIPLICATION_EFFECT_H)