]> git.sesse.net Git - movit/blobdiff - gamma_compression_effect_test.cpp
Make number of BlurEffect taps configurable.
[movit] / gamma_compression_effect_test.cpp
index 41a700ca0b0c188f5997c8364110c74c38f929ba..6efbdea0944211a82e157518b616fb71b0cdf0a1 100644 (file)
@@ -5,7 +5,7 @@
 // However, the accuracy tests are somewhat simpler, since we
 // only need to care about absolute errors and not relative.
 
-#include <GL/glew.h>
+#include <epoxy/gl.h>
 #include <math.h>
 
 #include "gtest/gtest.h"
@@ -13,6 +13,8 @@
 #include "image_format.h"
 #include "test_util.h"
 
+namespace movit {
+
 TEST(GammaCompressionEffectTest, sRGB_KeyValues) {
        float data[] = {
                0.0f, 1.0f,
@@ -212,3 +214,5 @@ TEST(GammaCompressionEffectTest, Rec2020_12Bit_Inaccuracy) {
        // precision and inaccuracies in the polynomial approximation.
        expect_equal(expected_data, out_data, 4096, 1, 1.2 / 4095.0, 1e-5);
 }
+
+}  // namespace movit