]> git.sesse.net Git - movit/blob - mix_effect.h
Add some more simple tests to EffectChainTest.
[movit] / mix_effect.h
1 #ifndef _MIX_EFFECT_H
2 #define _MIX_EFFECT_H 1
3
4 // Combine two images: a*x + b*y. (If you set a within [0,1] and b=1-a, you will get a fade.)
5
6 #include "effect.h"
7
8 class MixEffect : public Effect {
9 public:
10         MixEffect();
11         virtual std::string effect_type_id() const { return "MixEffect"; }
12         std::string output_fragment_shader();
13
14         virtual bool needs_srgb_primaries() const { return false; }
15         virtual unsigned num_inputs() const { return 2; }
16
17 private:
18         float strength_first, strength_second;
19 };
20
21 #endif // !defined(_MIX_EFFECT_H)