From: Yaowu Xu Date: Thu, 4 Aug 2016 21:36:29 +0000 (-0700) Subject: Reduce number of frames in lossless tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1b6507e2bac768f77bda4d68672fa3416141033;p=libvpx Reduce number of frames in lossless tests This it to reduce the time necessary for these tests. Change-Id: Ibe7a3248a6c45baf575af85fdffcffc557dd054b --- diff --git a/test/lossless_test.cc b/test/lossless_test.cc index 51c6e4db7..40df026a6 100644 --- a/test/lossless_test.cc +++ b/test/lossless_test.cc @@ -81,14 +81,14 @@ TEST_P(LosslessTest, TestLossLessEncoding) { // intentionally changed the dimension for better testing coverage libvpx_test::I420VideoSource video("hantro_collage_w352h288.yuv", 352, 288, - timebase.den, timebase.num, 0, 10); + timebase.den, timebase.num, 0, 5); ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); const double psnr_lossless = GetMinPsnr(); EXPECT_GE(psnr_lossless, kMaxPsnr); } TEST_P(LosslessTest, TestLossLessEncoding444) { - libvpx_test::Y4mVideoSource video("rush_hour_444.y4m", 0, 10); + libvpx_test::Y4mVideoSource video("rush_hour_444.y4m", 0, 5); cfg_.g_profile = 1; cfg_.g_timebase = video.timebase(); @@ -117,7 +117,7 @@ TEST_P(LosslessTest, TestLossLessEncodingCtrl) { init_flags_ = VPX_CODEC_USE_PSNR; libvpx_test::I420VideoSource video("hantro_collage_w352h288.yuv", 352, 288, - timebase.den, timebase.num, 0, 10); + timebase.den, timebase.num, 0, 5); ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); const double psnr_lossless = GetMinPsnr(); EXPECT_GE(psnr_lossless, kMaxPsnr);