]> git.sesse.net Git - movit/blobdiff - gamma_compression_effect.h
Fix an issue where a (cached) shader program could be used from multiple
[movit] / gamma_compression_effect.h
index 83208cf0dcc44d77412c5a595f6cab9906b75e0a..d52291115ec0ae85e3cb16840eddf4892acd4040 100644 (file)
@@ -9,7 +9,7 @@
 // Note that Movit's internal formats generally do not have enough accuracy
 // for 12-bit input or output.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <string>
 
 #include "effect.h"
@@ -29,6 +29,7 @@ public:
        virtual void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
 
        virtual bool needs_srgb_primaries() const { return false; }
+       virtual bool one_to_one_sampling() const { return true; }
 
        // Actually needs postmultiplied input as well as outputting it.
        // EffectChain will take care of that.
@@ -36,6 +37,7 @@ public:
 
 private:
        GammaCurve destination_curve;
+       float uniform_linear_scale, uniform_c[5], uniform_beta;
 };
 
 }  // namespace movit