From a8e59d207483f75b87dd5fc670e937672cdf5776 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Fri, 27 Sep 2024 17:04:05 -0700 Subject: [PATCH] Fix the test case The test case should have the dst width and height, and the src width and height should be specified by the --libyuv_width and --libyuv_height options to libyuv_unittest. Tested: libyuv_unittest --gtest_filter=LibYUVScaleTest.I420ScaleTo264x216_Box \ --libyuv_width=352 --libyuv_height=288 Bug: b/369963535, b/366045177 Change-Id: I8166a264c9c4840e0d16c0d3c1818c18aebc1b2e Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5896466 Reviewed-by: Frank Barchard --- unit_test/scale_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_test/scale_test.cc b/unit_test/scale_test.cc index 429e67e68..088cd29a9 100644 --- a/unit_test/scale_test.cc +++ b/unit_test/scale_test.cc @@ -1053,8 +1053,8 @@ TEST_SCALETO(Scale, 569, 480) TEST_SCALETO(Scale, 640, 360) #ifndef DISABLE_SLOW_TESTS TEST_SCALETO(Scale, 256, 144) /* 128x72 * 2 */ +TEST_SCALETO(Scale, 264, 216) TEST_SCALETO(Scale, 320, 240) -TEST_SCALETO(Scale, 352, 288) TEST_SCALETO(Scale, 1280, 720) TEST_SCALETO(Scale, 1920, 1080) TEST_SCALETO(Scale, 1080, 1920) // for rotated phones