diff --git a/libraries/transformer/src/androidTest/java/androidx/media3/transformer/BitmapTestUtil.java b/libraries/transformer/src/androidTest/java/androidx/media3/transformer/BitmapTestUtil.java index db2df0c07e..a590b903f4 100644 --- a/libraries/transformer/src/androidTest/java/androidx/media3/transformer/BitmapTestUtil.java +++ b/libraries/transformer/src/androidTest/java/androidx/media3/transformer/BitmapTestUtil.java @@ -64,18 +64,18 @@ public class BitmapTestUtil { public static final String ROTATE45_SCALE_TO_FIT_EXPECTED_OUTPUT_PNG_ASSET_STRING = "media/bitmap/sample_mp4_first_frame_rotate_45_scale_to_fit.png"; /** - * Maximum allowed average pixel difference between the expected and actual edited images for the - * test to pass. The value is chosen so that differences in decoder behavior across emulator - * versions don't affect whether the test passes for most emulators, but substantial distortions - * introduced by changes in the behavior of the {@link GlFrameProcessor GlFrameProcessors} will - * cause the test to fail. + * Maximum allowed average pixel difference between the expected and actual edited images in pixel + * difference-based tests. The value is chosen so that differences in decoder behavior across + * emulator versions don't affect whether the test passes for most emulators, but substantial + * distortions introduced by changes in the behavior of the {@link GlFrameProcessor + * GlFrameProcessors} will cause the test to fail. * - *

To run this test 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 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 GlFrameProcessor} - * issue. + *

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 + * 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 + * GlFrameProcessor} issue. */ public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.1f;