X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=effect_chain.cpp;h=9246a4d94285749103011448f16b318743d71ed3;hb=087adc28dd5b359f28a128aded8fb2c1c69716f2;hp=1ff57d75672b3769121f7c0956941c6538415620;hpb=bfa58911af9e945f3532a2c48306b4e9e293e0f7;p=movit diff --git a/effect_chain.cpp b/effect_chain.cpp index 1ff57d7..9246a4d 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -13,6 +13,7 @@ #include "gamma_compression_effect.h" #include "lift_gamma_gain_effect.h" #include "colorspace_conversion_effect.h" +#include "saturation_effect.h" #include "texture_enum.h" EffectChain::EffectChain(unsigned width, unsigned height) @@ -33,12 +34,14 @@ void EffectChain::add_output(const ImageFormat &format) Effect *instantiate_effect(EffectId effect) { switch (effect) { - case GAMMA_CONVERSION: + case EFFECT_GAMMA_EXPANSION: return new GammaExpansionEffect(); - case RGB_PRIMARIES_CONVERSION: - return new GammaExpansionEffect(); - case LIFT_GAMMA_GAIN: + case EFFECT_GAMMA_COMPRESSION: + return new GammaCompressionEffect(); + case EFFECT_LIFT_GAMMA_GAIN: return new LiftGammaGainEffect(); + case EFFECT_SATURATION: + return new SaturationEffect(); } assert(false); }