]> git.sesse.net Git - movit/commitdiff
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 5d9eaa3c596c88671d62dd81d4a22b9c29bee3d0..a15a566c4153f6c45126aa9f571c028af882a950 100644 (file)
@@ -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:
index 97e0e1397e7fc29aabc2c78125c8e71321ce1898..623bb3977a063f33b131f7b3f2ebd618429ccaa0 100644 (file)
@@ -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,