From 8c9047448cc46b7e7909613b7cb9309ecb094609 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 2 Oct 2012 00:04:18 +0200 Subject: [PATCH] Make it possible to instantiate the colorspace conversion effect separately. --- effect_chain.cpp | 2 ++ effect_id.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/effect_chain.cpp b/effect_chain.cpp index 5d9eaa3..a15a566 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -38,6 +38,8 @@ Effect *instantiate_effect(EffectId effect) return new GammaExpansionEffect(); case EFFECT_GAMMA_COMPRESSION: return new GammaCompressionEffect(); + case EFFECT_COLOR_SPACE_CONVERSION: + return new ColorSpaceConversionEffect(); case EFFECT_LIFT_GAMMA_GAIN: return new LiftGammaGainEffect(); case EFFECT_SATURATION: diff --git a/effect_id.h b/effect_id.h index 97e0e13..623bb39 100644 --- a/effect_id.h +++ b/effect_id.h @@ -5,7 +5,7 @@ enum EffectId { // Mostly for internal use. EFFECT_GAMMA_EXPANSION = 0, EFFECT_GAMMA_COMPRESSION, - EFFECT_RGB_PRIMARIES_CONVERSION, + EFFECT_COLOR_SPACE_CONVERSION, // Color. EFFECT_LIFT_GAMMA_GAIN, -- 2.39.2