]> git.sesse.net Git - movit/blobdiff - white_balance_effect.h
Remove C++11 dependency from ResampleEffect.
[movit] / white_balance_effect.h
index 43bfccb1f132bf93d01ae57a7aaad481647c6e3d..2370847e966872746e0a75e967550bedd9979e45 100644 (file)
@@ -3,8 +3,9 @@
 
 // Color correction in LMS color space.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <string>
+#include <Eigen/Core>
 
 #include "effect.h"
 
@@ -15,6 +16,7 @@ public:
        WhiteBalanceEffect();
        virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; }
        virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
+       virtual bool one_to_one_sampling() const { return true; }
        std::string output_fragment_shader();
 
        void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
@@ -26,6 +28,8 @@ private:
        // Output color temperature (in Kelvins).
        // Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray).
        float output_color_temperature;
+
+       Eigen::Matrix3d uniform_correction_matrix;
 };
 
 }  // namespace movit