diff --git a/libraries/test_data/src/test/assets/test-generated-goldens/hdr-goldens/original_hlg10_to_pq.png b/libraries/test_data/src/test/assets/test-generated-goldens/hdr-goldens/original_hlg10_to_pq.png index b31f31cb0b..9333aefe34 100644 Binary files a/libraries/test_data/src/test/assets/test-generated-goldens/hdr-goldens/original_hlg10_to_pq.png and b/libraries/test_data/src/test/assets/test-generated-goldens/hdr-goldens/original_hlg10_to_pq.png differ diff --git a/libraries/transformer/src/androidTest/java/androidx/media3/transformer/mh/DefaultVideoFrameProcessorTextureOutputPixelTest.java b/libraries/transformer/src/androidTest/java/androidx/media3/transformer/mh/DefaultVideoFrameProcessorTextureOutputPixelTest.java index 28bcfff350..91d51f42fa 100644 --- a/libraries/transformer/src/androidTest/java/androidx/media3/transformer/mh/DefaultVideoFrameProcessorTextureOutputPixelTest.java +++ b/libraries/transformer/src/androidTest/java/androidx/media3/transformer/mh/DefaultVideoFrameProcessorTextureOutputPixelTest.java @@ -491,12 +491,7 @@ public final class DefaultVideoFrameProcessorTextureOutputPixelTest { videoFrameProcessorTestRunner.processFirstFrameAndEnd(); Bitmap actualBitmap = videoFrameProcessorTestRunner.getOutputBitmap(); - // TODO(b/207848601): Switch to using proper tooling for testing against golden data. - float averagePixelAbsoluteDifference = - BitmapPixelTestUtil.getBitmapAveragePixelAbsoluteDifferenceFp16( - expectedBitmap, actualBitmap); - assertThat(averagePixelAbsoluteDifference) - .isAtMost(MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE_DIFFERENT_DEVICE_FP16); + assertBitmapsAreSimilar(expectedBitmap, actualBitmap, HDR_PSNR_THRESHOLD); } @Test