Reword MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE javadoc.
MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE was copied from a test class, but BitmapTestUtil isn't a test. So the javadoc needs rewording to reflect that. PiperOrigin-RevId: 438001833
This commit is contained in:
parent
f48babb4ed
commit
bd6eaab6b4
@ -64,18 +64,18 @@ public class BitmapTestUtil {
|
|||||||
public static final String ROTATE45_SCALE_TO_FIT_EXPECTED_OUTPUT_PNG_ASSET_STRING =
|
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";
|
"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
|
* Maximum allowed average pixel difference between the expected and actual edited images in pixel
|
||||||
* test to pass. The value is chosen so that differences in decoder behavior across emulator
|
* difference-based tests. The value is chosen so that differences in decoder behavior across
|
||||||
* versions don't affect whether the test passes for most emulators, but substantial distortions
|
* emulator versions don't affect whether the test passes for most emulators, but substantial
|
||||||
* introduced by changes in the behavior of the {@link GlFrameProcessor GlFrameProcessors} will
|
* distortions introduced by changes in the behavior of the {@link GlFrameProcessor
|
||||||
* cause the test to fail.
|
* GlFrameProcessors} will cause the test to fail.
|
||||||
*
|
*
|
||||||
* <p>To run this test on physical devices, please use a value of 5f, rather than 0.1f. This
|
* <p>To run pixel difference-based tests on physical devices, please use a value of 5f, rather
|
||||||
* higher value will ignore some very small errors, but will allow for some differences caused by
|
* than 0.1f. This higher value will ignore some very small errors, but will allow for some
|
||||||
* graphics implementations to be ignored. When the difference is close to the threshold, manually
|
* differences caused by graphics implementations to be ignored. When the difference is close to
|
||||||
* inspect expected/actual bitmaps to confirm failure, as it's possible this is caused by a
|
* the threshold, manually inspect expected/actual bitmaps to confirm failure, as it's possible
|
||||||
* difference in the codec or graphics implementation as opposed to a {@link GlFrameProcessor}
|
* this is caused by a difference in the codec or graphics implementation as opposed to a {@link
|
||||||
* issue.
|
* GlFrameProcessor} issue.
|
||||||
*/
|
*/
|
||||||
public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.1f;
|
public static final float MAXIMUM_AVERAGE_PIXEL_ABSOLUTE_DIFFERENCE = 0.1f;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user