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 <climits> | 10 #include <climits> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 61 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
62 } | 62 } |
63 TEST_P(BordersTest, TestLowBitrate) { | 63 TEST_P(BordersTest, TestLowBitrate) { |
64 // Validate that this clip encodes and decodes without a mismatch | 64 // Validate that this clip encodes and decodes without a mismatch |
65 // when passing in a very high min q. This pushes the encoder to producing | 65 // when passing in a very high min q. This pushes the encoder to producing |
66 // lots of small partitions which might will test the other condition. | 66 // lots of small partitions which might will test the other condition. |
67 | 67 |
68 cfg_.g_lag_in_frames = 25; | 68 cfg_.g_lag_in_frames = 25; |
69 cfg_.rc_2pass_vbr_minsection_pct = 5; | 69 cfg_.rc_2pass_vbr_minsection_pct = 5; |
70 cfg_.rc_2pass_vbr_minsection_pct = 2000; | 70 cfg_.rc_2pass_vbr_maxsection_pct = 2000; |
71 cfg_.rc_target_bitrate = 200; | 71 cfg_.rc_target_bitrate = 200; |
72 cfg_.rc_min_quantizer = 40; | 72 cfg_.rc_min_quantizer = 40; |
73 | 73 |
74 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", 208, 144, 30, 1, 0, | 74 ::libvpx_test::I420VideoSource video("hantro_odd.yuv", 208, 144, 30, 1, 0, |
75 40); | 75 40); |
76 | 76 |
77 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); | 77 ASSERT_NO_FATAL_FAILURE(RunLoop(&video)); |
78 } | 78 } |
79 | 79 |
80 VP9_INSTANTIATE_TEST_CASE(BordersTest, ::testing::Values( | 80 VP9_INSTANTIATE_TEST_CASE(BordersTest, ::testing::Values( |
81 ::libvpx_test::kTwoPassGood)); | 81 ::libvpx_test::kTwoPassGood)); |
82 } // namespace | 82 } // namespace |
OLD | NEW |