]> git.sesse.net Git - movit/blobdiff - dither_effect_test.cpp
Save a mul in YCbCrInput by folding the scaling into the matrix.
[movit] / dither_effect_test.cpp
index 210a2e721e999047357b212a177863005b9e1fbd..1b72ecb5caec50c93d3ad34fc56a2e09ef390e26 100644 (file)
@@ -7,6 +7,7 @@
 #include "gtest/gtest.h"
 #include "image_format.h"
 #include "test_util.h"
 #include "gtest/gtest.h"
 #include "image_format.h"
 #include "test_util.h"
+#include "util.h"
 
 namespace movit {
 
 
 namespace movit {
 
@@ -28,8 +29,11 @@ TEST(DitherEffectTest, NoDitherOnExactValues) {
        unsigned char out_data[size * size];
 
        EffectChainTester tester(data, size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, GL_RGBA8);
        unsigned char out_data[size * size];
 
        EffectChainTester tester(data, size, size, FORMAT_GRAYSCALE, COLORSPACE_sRGB, GAMMA_LINEAR, GL_RGBA8);
+       check_error();
        tester.get_chain()->set_dither_bits(8);
        tester.get_chain()->set_dither_bits(8);
+       check_error();
        tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR);
        tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR);
+       check_error();
 
        expect_equal(expected_data, out_data, size, size);
 }
 
        expect_equal(expected_data, out_data, size, size);
 }