]> 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 4c77b4c2cb2268af48f662b321cdfe4e2972a68f..0155ee54b32fb28313d22785d91497e7f40a08c8 100644 (file)
 class GammaCompressionEffect : public Effect {
 public:
        GammaCompressionEffect();
+       virtual std::string effect_type_id() const { return "GammaCompressionEffect"; }
        std::string output_fragment_shader();
 
        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];