]> granicus.if.org Git - libvpx/commitdiff
Change the frame used to set up encoder in tests to 0.
authorchiyotsai <chiyotsai@google.com>
Tue, 2 Oct 2018 20:51:48 +0000 (13:51 -0700)
committerchiyotsai <chiyotsai@google.com>
Tue, 2 Oct 2018 23:03:45 +0000 (16:03 -0700)
Change-Id: Ied460b6ff53a58050d53dec8d32b627de5de3f3a

17 files changed:
test/active_map_refresh_test.cc
test/active_map_test.cc
test/alt_ref_aq_segment_test.cc
test/altref_test.cc
test/aq_segment_test.cc
test/borders_test.cc
test/cpu_speed_test.cc
test/cq_test.cc
test/decode_perf_test.cc
test/frame_size_tests.cc
test/keyframe_test.cc
test/superframe_test.cc
test/tile_independence_test.cc
test/vp9_encoder_parms_get_to_decoder.cc
test/vp9_end_to_end_test.cc
test/vp9_lossless_test.cc
test/vp9_motion_vector_test.cc

index d893635505cab8e70d6c0bce6212d0a27a9ddf78..a985ed4f11904b9e19fade0d9769f2d486e1fcdb 100644 (file)
@@ -74,7 +74,7 @@ class ActiveMapRefreshTest
                                   ::libvpx_test::Encoder *encoder) {
     ::libvpx_test::Y4mVideoSource *y4m_video =
         static_cast<libvpx_test::Y4mVideoSource *>(video);
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, cpu_used_);
       encoder->Control(VP9E_SET_AQ_MODE, kAqModeCyclicRefresh);
     } else if (video->frame() >= 2 && video->img()) {
index 1d24f956f59edb41c493a4e1506cdb51f0d9b0a9..03536c81ef4804ddeb123a0f06fdf60f403add88 100644 (file)
@@ -35,7 +35,7 @@ class ActiveMapTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, cpu_used_);
     } else if (video->frame() == 3) {
       vpx_active_map_t map = vpx_active_map_t();
index 64a3011eb99416d044370c966e76de7d7bf36ecd..6e03a478525f9ab290de6ff4ce9675fbd3b757d2 100644 (file)
@@ -32,7 +32,7 @@ class AltRefAqSegmentTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_);
       encoder->Control(VP9E_SET_ALT_REF_AQ, alt_ref_aq_mode_);
       encoder->Control(VP9E_SET_AQ_MODE, aq_mode_);
index f9308c2717a8800bf1f7142e45865a395cd3d09f..0119be4da0ab16b06249ddf60ee974652a1dcd4d 100644 (file)
@@ -35,7 +35,7 @@ class AltRefTest : public ::libvpx_test::EncoderTest,
 
   virtual void PreEncodeFrameHook(libvpx_test::VideoSource *video,
                                   libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1);
       encoder->Control(VP8E_SET_CPUUSED, 3);
     }
index 1c2147fbb2c92521fba4325ce544d15483fb89b6..3c4053be7f31ebefe1ab1c4285b9e8a7086a43ec 100644 (file)
@@ -31,7 +31,7 @@ class AqSegmentTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_);
       encoder->Control(VP9E_SET_AQ_MODE, aq_mode_);
       encoder->Control(VP8E_SET_MAX_INTRA_BITRATE_PCT, 100);
index e66ff02e25e03d53bc27fee11344842d584e00d8..b91a15b80036ad2bd1dc0f7519b328d2294e105b 100644 (file)
@@ -31,7 +31,7 @@ class BordersTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, 1);
       encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1);
       encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7);
index 34e35b0653522cf5f2aefbb99e0772986cd2fb36..2fb5c10eae13df7aea7ea66cd7ec36635d38f814 100644 (file)
@@ -44,7 +44,7 @@ class CpuSpeedTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_);
       encoder->Control(VP9E_SET_TUNE_CONTENT, tune_content_);
       if (encoding_mode_ != ::libvpx_test::kRealTime) {
index 20e1f0f3deff9e37729618af3f1615b9f2b6068c..474b9d0fa2eeec2532ed9af6997e0aa000aa4966 100644 (file)
@@ -65,7 +65,7 @@ class CQTest : public ::libvpx_test::EncoderTest,
 
   virtual void PreEncodeFrameHook(libvpx_test::VideoSource *video,
                                   libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       if (cfg_.rc_end_usage == VPX_CQ) {
         encoder->Control(VP8E_SET_CQ_LEVEL, cq_level_);
       }
index e2169ad6bc4366452ff442f3a8b98ceb44678efb..fed09de983cb2294fc816a126ae0db7c20ac06eb 100644 (file)
@@ -137,7 +137,7 @@ class VP9NewEncodeDecodePerfTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, speed_);
       encoder->Control(VP9E_SET_FRAME_PARALLEL_DECODING, 1);
       encoder->Control(VP9E_SET_TILE_COLUMNS, 2);
index 5a9b166e5b1d555ba118583c4a7cfb5afbdd0393..f66972b4a19ad350685144533a3d904aa7d9bff6 100644 (file)
@@ -34,7 +34,7 @@ class VP9FrameSizeTestsLarge : public ::libvpx_test::EncoderTest,
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, 7);
       encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1);
       encoder->Control(VP8E_SET_ARNR_MAXFRAMES, 7);
index 2dab0cb4904c9a31ce8bdcbe0bb99620718992d6..582d448168d1dbdb5bb0e1931a720a22e1b02d88 100644 (file)
@@ -38,7 +38,7 @@ class KeyframeTest
     if (kf_do_force_kf_) {
       frame_flags_ = (video->frame() % 3) ? 0 : VPX_EFLAG_FORCE_KF;
     }
-    if (set_cpu_used_ && video->frame() == 1) {
+    if (set_cpu_used_ && video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, set_cpu_used_);
     }
   }
index f74e8be3484c3852707d95957c175d7d4cf187f6..d913871c5ba6e0de515c403d141b097ba42ecfd3 100644 (file)
@@ -41,7 +41,7 @@ class SuperframeTest
 
   virtual void PreEncodeFrameHook(libvpx_test::VideoSource *video,
                                   libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_ENABLEAUTOALTREF, 1);
     }
   }
index e24981c68d36e46cbd131bc5dc1c24379f92e582..1d1020a9d3e1b5a927509f2e6026e80112a6db47 100644 (file)
@@ -48,7 +48,7 @@ class TileIndependenceTest : public ::libvpx_test::EncoderTest,
 
   virtual void PreEncodeFrameHook(libvpx_test::VideoSource *video,
                                   libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP9E_SET_TILE_COLUMNS, n_tiles_);
     }
   }
index 62e8dcb9b52b7f1977b08abe5568d580e73dd4e3..df0d53eab33a8b800ce62b7ccb65ab4653ee7a59 100644 (file)
@@ -74,7 +74,7 @@ class VpxEncoderParmsGetToDecoder
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP9E_SET_COLOR_SPACE, encode_parms.cs);
       encoder->Control(VP9E_SET_COLOR_RANGE, encode_parms.color_range);
       encoder->Control(VP9E_SET_LOSSLESS, encode_parms.lossless);
index 2f711bc5b207360685c821bfbfd6d8de9aa4df36..564e514b3283ec97971e773f5e51592129769cf5 100644 (file)
@@ -155,7 +155,7 @@ class EndToEndTestLarge
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP9E_SET_FRAME_PARALLEL_DECODING, 1);
       encoder->Control(VP9E_SET_TILE_COLUMNS, 4);
       encoder->Control(VP8E_SET_CPUUSED, cpu_used_);
index 703b55e9bddd6b748507442142ff1f5c43e82a99..5cf0a41da4d1d77a543374c670dfbfbef78932ea 100644 (file)
@@ -38,7 +38,7 @@ class LosslessTest
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       // Only call Control if quantizer > 0 to verify that using quantizer
       // alone will activate lossless
       if (cfg_.rc_max_quantizer > 0 || cfg_.rc_min_quantizer > 0) {
index 5dd2ddb47a46f031efae9edae5de69329b11ea5c..bb860c3d1d3ce6a3a763eb9408b4df53312bf169 100644 (file)
@@ -59,7 +59,7 @@ class MotionVectorTestLarge
 
   virtual void PreEncodeFrameHook(::libvpx_test::VideoSource *video,
                                   ::libvpx_test::Encoder *encoder) {
-    if (video->frame() == 1) {
+    if (video->frame() == 0) {
       encoder->Control(VP8E_SET_CPUUSED, cpu_used_);
       encoder->Control(VP9E_ENABLE_MOTION_VECTOR_UNIT_TEST, mv_test_mode_);
       if (encoding_mode_ != ::libvpx_test::kRealTime) {