]> git.sesse.net Git - movit/blobdiff - gamma_compression_effect.h
Revert all the changes in demo.cpp that were never supposed to be there in the last...
[movit] / gamma_compression_effect.h
index 03cbb24133417da2a3da336d60b39edc04b4e781..0155ee54b32fb28313d22785d91497e7f40a08c8 100644 (file)
@@ -20,6 +20,10 @@ public:
 
        virtual bool needs_srgb_primaries() const { return false; }
 
+       // Actually needs postmultiplied input as well as outputting it.
+       // EffectChain will take care of that.
+       virtual AlphaHandling alpha_handling() const { return OUTPUT_ALPHA_POSTMULTIPLIED; }
+
 private:
        GammaCurve destination_curve;
        float compression_curve[COMPRESSION_CURVE_SIZE];