diff options
author | JackyChen <jackychen@google.com> | 2014-09-18 14:20:44 -0700 |
---|---|---|
committer | JackyChen <jackychen@google.com> | 2014-09-18 15:38:32 -0700 |
commit | 4eece0d983c8c29e47d8a54899760042a569b809 (patch) | |
tree | 68bcee6f8b2a07add7a086ba22d73bb1c8966c88 /test | |
parent | 5887aededbd96c07101d9ca2ddc9e6c33b34df15 (diff) | |
download | libvpx-4eece0d983c8c29e47d8a54899760042a569b809.tar libvpx-4eece0d983c8c29e47d8a54899760042a569b809.tar.gz libvpx-4eece0d983c8c29e47d8a54899760042a569b809.tar.bz2 libvpx-4eece0d983c8c29e47d8a54899760042a569b809.zip |
Add a conditional compilation macro to VP8 unit test.
In many tests in VP8, the denoiser is disabled. By adding this
conditional comilation macro, the unit test will not be included
when denoiser is not enabled.
Change-Id: I6edec85c996acca22aacd11161c52408be2660a3
Diffstat (limited to 'test')
-rw-r--r-- | test/datarate_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/datarate_test.cc b/test/datarate_test.cc index 5c2cad832..1b7863ad6 100644 --- a/test/datarate_test.cc +++ b/test/datarate_test.cc @@ -126,6 +126,7 @@ class DatarateTestLarge : public ::libvpx_test::EncoderTest, 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 @@ TEST_P(DatarateTestLarge, DenoiserLevels) { << " The datarate for the file missed the target!"; } } +#endif // CONFIG_TEMPORAL_DENOISING TEST_P(DatarateTestLarge, BasicBufferModel) { denoiser_on_ = 0; @@ -647,7 +649,7 @@ TEST_P(DatarateTestVP9Large, DenoiserLevels) { 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, |