]> git.sesse.net Git - movit/blobdiff - unsharp_mask_effect_test.cpp
Fix non-float framebuffers in EffectChainTester.
[movit] / unsharp_mask_effect_test.cpp
index 8dbefc2c4deb1363092e2afcd5c19e73ffed7391..e6750ce8156d6fff8856a69daaab93a69c1907f1 100644 (file)
@@ -1,5 +1,6 @@
 // Unit tests for UnsharpMaskEffect.
 
+#include <epoxy/gl.h>
 #include <math.h>
 
 #include "effect_chain.h"
@@ -8,6 +9,8 @@
 #include "test_util.h"
 #include "unsharp_mask_effect.h"
 
+namespace movit {
+
 TEST(UnsharpMaskEffectTest, NoAmountDoesNothing) {
        const int size = 4;
 
@@ -71,3 +74,5 @@ TEST(UnsharpMaskEffectTest, UnblursGaussianBlur) {
        // Add some leeway for the rest; unsharp masking is not expected to be extremely good.
        expect_equal(expected_data, out_data, size, size, 0.1, 0.001);
 }
+
+}  // namespace movit