Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: source/libvpx/test/datarate_test.cc

Issue 375983002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/test/cpu_speed_test.cc ('k') | source/libvpx/test/decode_test_driver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « source/libvpx/test/cpu_speed_test.cc ('k') | source/libvpx/test/decode_test_driver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698