]> git.sesse.net Git - movit/blobdiff - ycbcr_conversion_effect_test.cpp
Loosen a test bound slightly for the benefit of NVIDIA cards.
[movit] / ycbcr_conversion_effect_test.cpp
index 27a10e32783c8d68588c7b888abd236b3027d341..6bac55624307df2718927f536b4c019377c0fccf 100644 (file)
@@ -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