]> git.sesse.net Git - movit/blobdiff - white_balance_effect.cpp
Run include-what-you-use over all of movit. Some hand tuning.
[movit] / white_balance_effect.cpp
index 8a00af4397afe6b8d2267712672bb0119572075a..1583922461053dd1c793eaa51f93b28275b1cab5 100644 (file)
@@ -1,12 +1,11 @@
-#include <math.h>
-#include <assert.h>
-
+#include <Eigen/Core>
 #include <Eigen/LU>
+#include <GL/glew.h>
+#include <assert.h>
 
-#include "white_balance_effect.h"
-#include "util.h"
-#include "opengl.h"
 #include "d65.h"
+#include "util.h"
+#include "white_balance_effect.h"
 
 using namespace Eigen;
 
@@ -39,7 +38,7 @@ Vector3d convert_color_temperature_to_xyz(float T)
 }
 
 // Assuming sRGB primaries, from Wikipedia.
-double rgb_to_xyz_matrix[9] = {
+const double rgb_to_xyz_matrix[9] = {
        0.4124, 0.2126, 0.0193, 
        0.3576, 0.7152, 0.1192,
        0.1805, 0.0722, 0.9505,