shithub: libvpx

Download patch

ref: d689e77c043ebd6fd6fb1671b3fbe2fa09c9faaa
parent: 49dc7b05d0e026c945c8ee11266979b1e4830fbb
parent: 4eece0d983c8c29e47d8a54899760042a569b809
author: James Zern <[email protected]>
date: Thu Sep 18 15:20:48 EDT 2014

Merge "Add a conditional compilation macro to VP8 unit test."

--- a/test/datarate_test.cc
+++ b/test/datarate_test.cc
@@ -126,6 +126,7 @@
   int denoiser_on_;
 };
 
+#if CONFIG_TEMPORAL_DENOISING
 // Check basic datarate targeting, for a single bitrate, but loop over the
 // various denoiser settings.
 TEST_P(DatarateTestLarge, DenoiserLevels) {
@@ -154,6 +155,7 @@
         << " The datarate for the file missed the target!";
   }
 }
+#endif  // CONFIG_TEMPORAL_DENOISING
 
 TEST_P(DatarateTestLarge, BasicBufferModel) {
   denoiser_on_ = 0;
@@ -647,7 +649,7 @@
   ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.15)
       << " The datarate for the file is greater than target by too much!";
 }
-#endif
+#endif  // CONFIG_VP9_TEMPORAL_DENOISING
 
 VP8_INSTANTIATE_TEST_CASE(DatarateTestLarge, ALL_TEST_MODES);
 VP9_INSTANTIATE_TEST_CASE(DatarateTestVP9Large,