From ec7936f64d8019c94d69bcd7a31e2002fcaca695 Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Mon, 15 Aug 2022 07:59:28 +0000 Subject: [PATCH] Increase pixel difference threshold PiperOrigin-RevId: 467610621 --- .../java/androidx/media3/effect/BitmapTestUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/androidTest/java/androidx/media3/effect/BitmapTestUtil.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/androidTest/java/androidx/media3/effect/BitmapTestUtil.java index 903203ff76..079674d05e 100644 --- a/google3/third_party/java_src/android_libs/media/libraries/effect/src/androidTest/java/androidx/media3/effect/BitmapTestUtil.java +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/androidTest/java/androidx/media3/effect/BitmapTestUtil.java @@ -55,13 +55,13 @@ public class BitmapTestUtil { * SingleFrameGlTextureProcessors} will cause the test to fail. * *

To run pixel difference-based tests on physical devices, please use a value of 5f, rather - * than 0.1f. This higher value will ignore some very small errors, but will allow for some + * than 0.5f. This higher value will ignore some very small errors, but will allow for some * differences caused by graphics implementations to be ignored. When the difference is close to * the threshold, manually inspect expected/actual bitmaps to confirm failure, as it's possible * this is caused by a difference in the codec or graphics implementation as opposed to a {@link * SingleFrameGlTextureProcessor} issue. */ - public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.1f; + public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.5f; /** * Reads a bitmap from the specified asset location.