]> granicus.if.org Git - libvpx/commitdiff
Reduce number of frames in lossless tests
authorYaowu Xu <yaowu@google.com>
Thu, 4 Aug 2016 21:36:29 +0000 (14:36 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 4 Aug 2016 21:36:29 +0000 (14:36 -0700)
This it to reduce the time necessary for these tests.

Change-Id: Ibe7a3248a6c45baf575af85fdffcffc557dd054b

test/lossless_test.cc

index 51c6e4db7ce60221581b51daa362a4524148bc2c..40df026a6b8ed51d7788b88dc86b1ce982f0a9ee 100644 (file)
@@ -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);