]> git.sesse.net Git - movit/blobdiff - fft_pass_effect_test.cpp
Save a mul in YCbCrInput by folding the scaling into the matrix.
[movit] / fft_pass_effect_test.cpp
index 284aa5fd28ee815af0ea976006e3837d661cea31..bce91cec4809809b76a5483cc91422660b2e7f93 100644 (file)
@@ -3,11 +3,11 @@
 #include <math.h>
 #include <stdlib.h>
 #include <string.h>
+#include <epoxy/gl.h>
+#include <gtest/gtest.h>
 
 #include "effect_chain.h"
 #include "fft_pass_effect.h"
-#include "glew.h"
-#include "gtest/gtest.h"
 #include "image_format.h"
 #include "multiply_effect.h"
 #include "test_util.h"
@@ -126,7 +126,7 @@ TEST(FFTPassEffectTest, SingleFrequency) {
 
 TEST(FFTPassEffectTest, Repeat) {
        srand(12345);
-       for (int fft_size = 2; fft_size < 512; fft_size *= 2) {
+       for (int fft_size = 2; fft_size <= 128; fft_size *= 2) {
                const int num_repeats = 31;  // Prime, to make things more challenging.
                float data[num_repeats * fft_size * 4];
                float expected_data[num_repeats * fft_size * 4], out_data[num_repeats * fft_size * 4];