]> git.sesse.net Git - movit/commitdiff
Flip some need bits in the conversion effects.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 22:03:12 +0000 (00:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 22:03:12 +0000 (00:03 +0200)
colorspace_conversion_effect.h
gamma_compression_effect.h
gamma_expansion_effect.h

index e487d7056a7925f795049e7c4bfbc948d4329f6e..6efc2a2c8e11b5cd4b0b46cf51d6e3202325fb37 100644 (file)
@@ -9,6 +9,8 @@ public:
        ColorSpaceConversionEffect();
        std::string output_glsl();
 
        ColorSpaceConversionEffect();
        std::string output_glsl();
 
+       virtual bool needs_srgb_primaries() { return false; }
+
 private:
        ColorSpace source_space, destination_space;
 };
 private:
        ColorSpace source_space, destination_space;
 };
index ec2a77a64ae1441f08ef6bb93207f27a904507fa..fdc6eee94aa96dc74448e5a2ef392f74a5e59937 100644 (file)
@@ -9,6 +9,8 @@ public:
        GammaCompressionEffect();
        std::string output_glsl();
 
        GammaCompressionEffect();
        std::string output_glsl();
 
+       virtual bool needs_srgb_primaries() { return false; }
+
 private:
        GammaCurve destination_curve;
 };
 private:
        GammaCurve destination_curve;
 };
index d161c92d72983eb2ef37d6a362e08931e6746a5e..41d4bf0a9e7a727fdb65fa9bf43c11a3558d0879 100644 (file)
@@ -9,6 +9,9 @@ public:
        GammaExpansionEffect();
        std::string output_glsl();
 
        GammaExpansionEffect();
        std::string output_glsl();
 
+       virtual bool needs_linear_light() { return false; }
+       virtual bool needs_srgb_primaries() { return false; }
+
 private:
        GammaCurve source_curve;
 };
 private:
        GammaCurve source_curve;
 };