OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC 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 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 "Suspends video below the configured min bitrate."); | 60 "Suspends video below the configured min bitrate."); |
61 | 61 |
62 DEFINE_int32(num_temporal_layers, | 62 DEFINE_int32(num_temporal_layers, |
63 1, | 63 1, |
64 "Number of temporal layers. Set to 1-4 to override."); | 64 "Number of temporal layers. Set to 1-4 to override."); |
65 int NumTemporalLayers() { | 65 int NumTemporalLayers() { |
66 return static_cast<int>(FLAGS_num_temporal_layers); | 66 return static_cast<int>(FLAGS_num_temporal_layers); |
67 } | 67 } |
68 | 68 |
69 // Flags common with screenshare loopback, with equal default values. | 69 // Flags common with screenshare loopback, with equal default values. |
70 DEFINE_string(codec, "VP8", "Video codec to use."); | 70 DEFINE_string(codec, "VP9", "Video codec to use."); |
brandtr
2017/05/19 14:10:27
Is this an intentional change?
jianj1
2017/05/19 21:20:57
Done.
It's just for test purpose. I forgot to cha
| |
71 std::string Codec() { | 71 std::string Codec() { |
72 return static_cast<std::string>(FLAGS_codec); | 72 return static_cast<std::string>(FLAGS_codec); |
73 } | 73 } |
74 | 74 |
75 DEFINE_int32(selected_tl, | 75 DEFINE_int32(selected_tl, |
76 -1, | 76 -1, |
77 "Temporal layer to show or analyze. -1 to disable filtering."); | 77 "Temporal layer to show or analyze. -1 to disable filtering."); |
78 int SelectedTL() { | 78 int SelectedTL() { |
79 return static_cast<int>(FLAGS_selected_tl); | 79 return static_cast<int>(FLAGS_selected_tl); |
80 } | 80 } |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
288 } // namespace webrtc | 288 } // namespace webrtc |
289 | 289 |
290 int main(int argc, char* argv[]) { | 290 int main(int argc, char* argv[]) { |
291 ::testing::InitGoogleTest(&argc, argv); | 291 ::testing::InitGoogleTest(&argc, argv); |
292 google::ParseCommandLineFlags(&argc, &argv, true); | 292 google::ParseCommandLineFlags(&argc, &argv, true); |
293 webrtc::test::InitFieldTrialsFromString( | 293 webrtc::test::InitFieldTrialsFromString( |
294 webrtc::flags::FLAGS_force_fieldtrials); | 294 webrtc::flags::FLAGS_force_fieldtrials); |
295 webrtc::test::RunTest(webrtc::Loopback); | 295 webrtc::test::RunTest(webrtc::Loopback); |
296 return 0; | 296 return 0; |
297 } | 297 } |
OLD | NEW |