Make it possible to instantiate the colorspace conversion effect separately.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 22:04:18 +0000 (00:04 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 1 Oct 2012 22:04:18 +0000 (00:04 +0200)
effect_chain.cpp
effect_id.h

index 5d9eaa3..a15a566 100644 (file)
@@ -38,6 +38,8 @@ Effect *instantiate_effect(EffectId effect)
                return new GammaExpansionEffect();
        case EFFECT_GAMMA_COMPRESSION:
                return new GammaCompressionEffect();
                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:
        case EFFECT_LIFT_GAMMA_GAIN:
                return new LiftGammaGainEffect();
        case EFFECT_SATURATION:
index 97e0e13..623bb39 100644 (file)
@@ -5,7 +5,7 @@ enum EffectId {
        // Mostly for internal use.
        EFFECT_GAMMA_EXPANSION = 0,
        EFFECT_GAMMA_COMPRESSION,
        // Mostly for internal use.
        EFFECT_GAMMA_EXPANSION = 0,
        EFFECT_GAMMA_COMPRESSION,
-       EFFECT_RGB_PRIMARIES_CONVERSION,
+       EFFECT_COLOR_SPACE_CONVERSION,
 
        // Color.
        EFFECT_LIFT_GAMMA_GAIN,
 
        // Color.
        EFFECT_LIFT_GAMMA_GAIN,