| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 for (int j = 0; j < static_cast<int>(cfg_.ts_number_layers); ++j) { | 569 for (int j = 0; j < static_cast<int>(cfg_.ts_number_layers); ++j) { |
| 570 ASSERT_GE(effective_datarate_[j], cfg_.ts_target_bitrate[j] * 0.85) | 570 ASSERT_GE(effective_datarate_[j], cfg_.ts_target_bitrate[j] * 0.85) |
| 571 << " The datarate for the file is lower than target by too much, " | 571 << " The datarate for the file is lower than target by too much, " |
| 572 "for layer: " << j; | 572 "for layer: " << j; |
| 573 ASSERT_LE(effective_datarate_[j], cfg_.ts_target_bitrate[j] * 1.15) | 573 ASSERT_LE(effective_datarate_[j], cfg_.ts_target_bitrate[j] * 1.15) |
| 574 << " The datarate for the file is greater than target by too much, " | 574 << " The datarate for the file is greater than target by too much, " |
| 575 "for layer: " << j; | 575 "for layer: " << j; |
| 576 // Expect some frame drops in this test: for this 200 frames test, | 576 // Expect some frame drops in this test: for this 200 frames test, |
| 577 // expect at least 10% and not more than 60% drops. | 577 // expect at least 10% and not more than 60% drops. |
| 578 ASSERT_GE(num_drops_, 20); | 578 ASSERT_GE(num_drops_, 20); |
| 579 ASSERT_LE(num_drops_, 120); | 579 ASSERT_LE(num_drops_, 130); |
| 580 } | 580 } |
| 581 } | 581 } |
| 582 | 582 |
| 583 VP8_INSTANTIATE_TEST_CASE(DatarateTestLarge, ALL_TEST_MODES); | 583 VP8_INSTANTIATE_TEST_CASE(DatarateTestLarge, ALL_TEST_MODES); |
| 584 VP9_INSTANTIATE_TEST_CASE(DatarateTestVP9Large, | 584 VP9_INSTANTIATE_TEST_CASE(DatarateTestVP9Large, |
| 585 ::testing::Values(::libvpx_test::kOnePassGood, | 585 ::testing::Values(::libvpx_test::kOnePassGood, |
| 586 ::libvpx_test::kRealTime), | 586 ::libvpx_test::kRealTime), |
| 587 ::testing::Range(2, 7)); | 587 ::testing::Range(2, 7)); |
| 588 } // namespace | 588 } // namespace |
| OLD | NEW |