]> git.sesse.net Git - movit/blobdiff - dither_effect_test.cpp
Store all twiddle factors as fp16.
[movit] / dither_effect_test.cpp
index bdba1212c76eaca680e3eabe6763cc6831c1b140..210a2e721e999047357b212a177863005b9e1fbd 100644 (file)
@@ -1,9 +1,14 @@
 // Unit tests for DitherEffect.
 
+#include <epoxy/gl.h>
 #include <math.h>
 
-#include "test_util.h"
+#include "effect_chain.h"
 #include "gtest/gtest.h"
+#include "image_format.h"
+#include "test_util.h"
+
+namespace movit {
 
 TEST(DitherEffectTest, NoDitherOnExactValues) {
        const int size = 4;
@@ -52,3 +57,5 @@ TEST(DitherEffectTest, SinusoidBelowOneLevelComesThrough) {
 
        EXPECT_NEAR(amplitude, sum / (size * 255.0f), 1.1e-5);
 }
+
+}  // namespace movit