Implement gamma expansion from sRGB.
[movit] / colorspace_conversion_effect.cpp
index fe8119a..8a0199e 100644 (file)
@@ -1,4 +1,5 @@
 #include "colorspace_conversion_effect.h"
+#include "util.h"
 
 ColorSpaceConversionEffect::ColorSpaceConversionEffect()
        : source_space(COLORSPACE_sRGB),
@@ -7,3 +8,8 @@ ColorSpaceConversionEffect::ColorSpaceConversionEffect()
        register_int("source_space", (int *)&source_space);
        register_int("destination_space", (int *)&destination_space);
 }
+
+std::string ColorSpaceConversionEffect::output_glsl()
+{
+       return read_file("todo.glsl");
+}