]> git.sesse.net Git - movit/blobdiff - gamma_expansion_effect_test.cpp
Run include-what-you-use over all of movit. Some hand tuning.
[movit] / gamma_expansion_effect_test.cpp
index 71544b4738c1a92caa827d1d5c7e90d3a7941ca3..6fc0252c8c5a28780e7d6127790a0e942543a9f5 100644 (file)
@@ -1,8 +1,10 @@
 // Unit tests for GammaExpansionEffect.
 
-#include "test_util.h"
-#include "gtest/gtest.h"
+#include <GL/glew.h>
+
 #include "gamma_expansion_effect.h"
+#include "gtest/gtest.h"
+#include "test_util.h"
 
 TEST(GammaExpansionEffectTest, sRGB_KeyValues) {
        float data[] = {
@@ -43,7 +45,7 @@ TEST(GammaExpansionEffectTest, sRGB_AlphaIsUnchanged) {
                0.0f, 0.0f, 0.0f, 1.0f,
        };
        float out_data[5 * 4];
-       EffectChainTester tester(data, 5, 1, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_sRGB);
+       EffectChainTester tester(data, 5, 1, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_sRGB);
        tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);
 
        expect_equal(data, out_data, 5, 1);
@@ -88,7 +90,7 @@ TEST(GammaExpansionEffectTest, Rec709_AlphaIsUnchanged) {
                0.0f, 0.0f, 0.0f, 1.0f,
        };
        float out_data[5 * 4];
-       EffectChainTester tester(data, 5, 1, FORMAT_RGBA, COLORSPACE_sRGB, GAMMA_REC_709);
+       EffectChainTester tester(data, 5, 1, FORMAT_RGBA_POSTMULTIPLIED_ALPHA, COLORSPACE_sRGB, GAMMA_REC_709);
        tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_LINEAR);
 
        expect_equal(data, out_data, 5, 1);