X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=gamma_expansion_effect.cpp;h=1ecc897c00d73172e8205c48cb04a43a858eaea0;hp=1748ae93dcee81c7268f803c82a8dffb13c8495a;hb=f6c44598c9dad9ddd024c5f8f010d179a6d971fd;hpb=a592c55caca0fb654bad4ec43b84c46abcee21c2 diff --git a/gamma_expansion_effect.cpp b/gamma_expansion_effect.cpp index 1748ae9..1ecc897 100644 --- a/gamma_expansion_effect.cpp +++ b/gamma_expansion_effect.cpp @@ -1,3 +1,5 @@ +#include + #include "gamma_expansion_effect.h" #include "util.h" @@ -9,5 +11,13 @@ GammaExpansionEffect::GammaExpansionEffect() std::string GammaExpansionEffect::output_glsl() { - return read_file("todo.glsl"); + switch (source_curve) { + case GAMMA_sRGB: + return read_file("gamma_expansion_effect_srgb.glsl"); + case GAMMA_REC_709: // and GAMMA_REC_601 + // Not implemented yet. + assert(false); + default: + assert(false); + } }