]> git.sesse.net Git - movit/blobdiff - overlay_effect.h
In OverlayEffect, add support for swapping the inputs.
[movit] / overlay_effect.h
index c11569f4eec6c34e0eea4e169ee51b6142fef637..40a6fff99e2a465f71cff654d8ae675495c08685 100644 (file)
@@ -32,6 +32,11 @@ public:
        // However, understanding that would require changes
        // to EffectChain, so postpone that optimization for later.
        virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
+
+private:
+       // If true, overlays input1 on top of input2 instead of vice versa.
+       // Must be set before finalize.
+       bool swap_inputs;
 };
 
 }  // namespace movit