]> git.sesse.net Git - movit/blobdiff - padding_effect_test.cpp
Stop using BGR, BGRA and grayscale formats.
[movit] / padding_effect_test.cpp
index c9c8ef1d7af1a0a9074697fb2d73f6d47ffe73e1..dd836ea066ee527dd6f5af3aaa6c4415eeebe28b 100644 (file)
@@ -1,5 +1,6 @@
 // Unit tests for AlphaMultiplicationEffect.
 
+#include <epoxy/gl.h>
 #include <stddef.h>
 
 #include "effect_chain.h"
@@ -10,6 +11,8 @@
 #include "test_util.h"
 #include "util.h"
 
+namespace movit {
+
 TEST(PaddingEffectTest, SimpleCenter) {
        float data[2 * 2] = {
                1.0f, 0.5f,
@@ -240,3 +243,5 @@ TEST(PaddingEffectTest, AlphaIsCorrectEvenWithNonLinearInputsAndOutputs) {
        tester.run(out_data, GL_RGBA, COLORSPACE_REC_601_625, GAMMA_REC_709, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED);
        expect_equal(expected_data, out_data, 4, 4);
 }
+
+}  // namespace movit