X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=mix_effect.h;h=d891eb5212f7470d013553bc48a2b742d5a40f69;hp=fda06a6f9426426e9794637348c19f907a5894d5;hb=fbb1247a1996c6dbe54114eb5cc23dc79e17099c;hpb=ac4fc36aa70ffefb6b9632dc0abea5cbbce5387b diff --git a/mix_effect.h b/mix_effect.h index fda06a6..d891eb5 100644 --- a/mix_effect.h +++ b/mix_effect.h @@ -8,6 +8,8 @@ #include "effect.h" +namespace movit { + class MixEffect : public Effect { public: MixEffect(); @@ -16,6 +18,7 @@ public: virtual bool needs_srgb_primaries() const { return false; } virtual unsigned num_inputs() const { return 2; } + virtual bool one_to_one_sampling() const { return true; } // TODO: In the common case where a+b=1, it would be useful to be able to set // alpha_handling() to INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK. However, right now @@ -25,4 +28,6 @@ private: float strength_first, strength_second; }; +} // namespace movit + #endif // !defined(_MOVIT_MIX_EFFECT_H)