X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=ycbcr_conversion_effect_test.cpp;h=6bac55624307df2718927f536b4c019377c0fccf;hp=27a10e32783c8d68588c7b888abd236b3027d341;hb=546632016ca9a297ca14a0d3e6890d52bfae049c;hpb=f44c81569a268efea44f1f6df03a000711b18ffc diff --git a/ycbcr_conversion_effect_test.cpp b/ycbcr_conversion_effect_test.cpp index 27a10e3..6bac556 100644 --- a/ycbcr_conversion_effect_test.cpp +++ b/ycbcr_conversion_effect_test.cpp @@ -619,7 +619,9 @@ TEST(YCbCrConversionEffectTest, TenBitOutputInSixteen) { tester.add_ycbcr_output(format, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED, ycbcr_format, YCBCR_OUTPUT_INTERLEAVED, GL_UNSIGNED_SHORT); tester.run(out_data, GL_RGBA, COLORSPACE_sRGB, GAMMA_sRGB); - expect_equal(expected_data, out_data, 4 * width, height); + // Add some slight leeway for the benefit of cards that don't + // round correctly (would be fixed by DitherEffect if we had dither). + expect_equal(expected_data, out_data, 4 * width, height, 2); } } // namespace movit