X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=dither_effect_test.cpp;h=a604fac87bcad3f53cf371516df32c10ac29fb10;hp=210a2e721e999047357b212a177863005b9e1fbd;hb=8e9f58fec54a4c879035b214fd7411f6ff7b3a32;hpb=9e219b96e914b2e5709ba3c3345afdc3cf13a78d diff --git a/dither_effect_test.cpp b/dither_effect_test.cpp index 210a2e7..a604fac 100644 --- a/dither_effect_test.cpp +++ b/dither_effect_test.cpp @@ -1,4 +1,7 @@ // Unit tests for DitherEffect. +// +// Note: Dithering of multiple outputs is tested (somewhat weakly) +// in YCbCrConversionEffectTest. #include #include @@ -7,6 +10,7 @@ #include "gtest/gtest.h" #include "image_format.h" #include "test_util.h" +#include "util.h" namespace movit { @@ -28,8 +32,11 @@ TEST(DitherEffectTest, NoDitherOnExactValues) { 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); + check_error(); tester.run(out_data, GL_RED, COLORSPACE_sRGB, GAMMA_LINEAR); + check_error(); expect_equal(expected_data, out_data, size, size); }