| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #include "./vpx_config.h" | 10 #include "./vpx_config.h" |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 ResetModel(); | 533 ResetModel(); |
| 534 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 534 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
| 535 ASSERT_GE(effective_datarate_[0], cfg_.rc_target_bitrate * 0.85) | 535 ASSERT_GE(effective_datarate_[0], cfg_.rc_target_bitrate * 0.85) |
| 536 << " The datarate for the file is lower than target by too much!"; | 536 << " The datarate for the file is lower than target by too much!"; |
| 537 ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.15) | 537 ASSERT_LE(effective_datarate_[0], cfg_.rc_target_bitrate * 1.15) |
| 538 << " The datarate for the file is greater than target by too much!"; | 538 << " The datarate for the file is greater than target by too much!"; |
| 539 ASSERT_LE(first_drop_, last_drop) | 539 ASSERT_LE(first_drop_, last_drop) |
| 540 << " The first dropped frame for drop_thresh " << i | 540 << " The first dropped frame for drop_thresh " << i |
| 541 << " > first dropped frame for drop_thresh " | 541 << " > first dropped frame for drop_thresh " |
| 542 << i - kDropFrameThreshTestStep; | 542 << i - kDropFrameThreshTestStep; |
| 543 ASSERT_GE(num_drops_, last_num_drops) | 543 ASSERT_GE(num_drops_, last_num_drops * 0.90) |
| 544 << " The number of dropped frames for drop_thresh " << i | 544 << " The number of dropped frames for drop_thresh " << i |
| 545 << " < number of dropped frames for drop_thresh " | 545 << " < number of dropped frames for drop_thresh " |
| 546 << i - kDropFrameThreshTestStep; | 546 << i - kDropFrameThreshTestStep; |
| 547 last_drop = first_drop_; | 547 last_drop = first_drop_; |
| 548 last_num_drops = num_drops_; | 548 last_num_drops = num_drops_; |
| 549 } | 549 } |
| 550 } | 550 } |
| 551 | 551 |
| 552 // Check basic rate targeting for 2 temporal layers. | 552 // Check basic rate targeting for 2 temporal layers. |
| 553 TEST_P(DatarateTestVP9Large, BasicRateTargeting2TemporalLayers) { | 553 TEST_P(DatarateTestVP9Large, BasicRateTargeting2TemporalLayers) { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 << " The datarate for the file is greater than target by too much!"; | 737 << " The datarate for the file is greater than target by too much!"; |
| 738 } | 738 } |
| 739 #endif // CONFIG_VP9_TEMPORAL_DENOISING | 739 #endif // CONFIG_VP9_TEMPORAL_DENOISING |
| 740 | 740 |
| 741 VP8_INSTANTIATE_TEST_CASE(DatarateTestLarge, ALL_TEST_MODES); | 741 VP8_INSTANTIATE_TEST_CASE(DatarateTestLarge, ALL_TEST_MODES); |
| 742 VP9_INSTANTIATE_TEST_CASE(DatarateTestVP9Large, | 742 VP9_INSTANTIATE_TEST_CASE(DatarateTestVP9Large, |
| 743 ::testing::Values(::libvpx_test::kOnePassGood, | 743 ::testing::Values(::libvpx_test::kOnePassGood, |
| 744 ::libvpx_test::kRealTime), | 744 ::libvpx_test::kRealTime), |
| 745 ::testing::Range(2, 7)); | 745 ::testing::Range(2, 7)); |
| 746 } // namespace | 746 } // namespace |
| OLD | NEW |