From a94fbb7ebe6bd57c0c0a7f4174d97b95e3147519 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 2 Oct 2012 00:03:12 +0200 Subject: [PATCH 1/1] Flip some need bits in the conversion effects. --- colorspace_conversion_effect.h | 2 ++ gamma_compression_effect.h | 2 ++ gamma_expansion_effect.h | 3 +++ 3 files changed, 7 insertions(+) diff --git a/colorspace_conversion_effect.h b/colorspace_conversion_effect.h index e487d70..6efc2a2 100644 --- a/colorspace_conversion_effect.h +++ b/colorspace_conversion_effect.h @@ -9,6 +9,8 @@ public: ColorSpaceConversionEffect(); std::string output_glsl(); + virtual bool needs_srgb_primaries() { return false; } + private: ColorSpace source_space, destination_space; }; diff --git a/gamma_compression_effect.h b/gamma_compression_effect.h index ec2a77a..fdc6eee 100644 --- a/gamma_compression_effect.h +++ b/gamma_compression_effect.h @@ -9,6 +9,8 @@ public: GammaCompressionEffect(); std::string output_glsl(); + virtual bool needs_srgb_primaries() { return false; } + private: GammaCurve destination_curve; }; diff --git a/gamma_expansion_effect.h b/gamma_expansion_effect.h index d161c92..41d4bf0 100644 --- a/gamma_expansion_effect.h +++ b/gamma_expansion_effect.h @@ -9,6 +9,9 @@ public: GammaExpansionEffect(); std::string output_glsl(); + virtual bool needs_linear_light() { return false; } + virtual bool needs_srgb_primaries() { return false; } + private: GammaCurve source_curve; }; -- 2.39.2