lc-dec: Add vertical 1080p clip to EndToEndLcModeTest This patch adds vertical 1080p clip to unit tests (EndToEndLcModeTest and EndToEndLcModeTestLarge) to check encoder-decoder compliance and validate PSNR for low complexity decode mode. Change-Id: I4af3e393a08936bab8992f65b2adbdd13298264d
diff --git a/test/end_to_end_psnr_test.cc b/test/end_to_end_psnr_test.cc index 9b27901..b006509 100644 --- a/test/end_to_end_psnr_test.cc +++ b/test/end_to_end_psnr_test.cc
@@ -81,6 +81,12 @@ { 1, 41.8 }, { 2, 41.4 }, { 3, 41.1 }, + } }, + { "SDR_Dance_ldsn_1080p.y4m", + { + { 1, 32.6 }, + { 2, 32.5 }, + { 3, 32.3 }, } } }; // Encoding modes tested @@ -93,6 +99,7 @@ const TestVideoParam kTestVectorsLcMode[] = { { "SDR_Animal_oqo7.y4m", 8, AOM_IMG_FMT_I420, AOM_BITS_8, 0 }, { "SDR_Health_rtd0_720p.y4m", 8, AOM_IMG_FMT_I420, AOM_BITS_8, 0 }, + { "SDR_Dance_ldsn_1080p.y4m", 8, AOM_IMG_FMT_I420, AOM_BITS_8, 0 }, }; // Speed settings tested @@ -138,8 +145,12 @@ if (video->frame() == 0) { if (encoding_mode_ == ::libaom_test::kLowComplexityDecode) { ASSERT_LE(cpu_used_, 3); + if (video->img()->d_h >= 1920) { + encoder->Control(AV1E_SET_TILE_ROWS, 2); + } else { + encoder->Control(AV1E_SET_TILE_ROWS, 1); + } encoder->Control(AV1E_SET_TILE_COLUMNS, 1); - encoder->Control(AV1E_SET_TILE_ROWS, 1); encoder->Control(AV1E_SET_ENABLE_CDEF, 0); encoder->Control(AV1E_SET_ENABLE_LOW_COMPLEXITY_DECODE, 1); } else {