]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Use sRGB textures on the input side if applicable.
[movit] / effect_chain.h
index 9622abc0eef1abf824b3b83f2c9fbdd151eef104..d97ef25d1fe428f07b4e94c4a6ed3ef4b0c2ece1 100644 (file)
@@ -46,10 +46,15 @@ public:
        void render_to_screen(unsigned char *src);
 
 private:
+       void normalize_to_linear_gamma();
+       void normalize_to_srgb();
+
        unsigned width, height;
        ImageFormat input_format, output_format;
        std::vector<Effect *> effects;
 
+       bool use_srgb_texture_format;
+
        int glsl_program_num;
        bool finalized;