| 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 27 matching lines...) Expand all Loading... |
| 38 DEFINE_int32(fps, 5, "Frames per second."); | 38 DEFINE_int32(fps, 5, "Frames per second."); |
| 39 int Fps() { | 39 int Fps() { |
| 40 return static_cast<int>(FLAGS_fps); | 40 return static_cast<int>(FLAGS_fps); |
| 41 } | 41 } |
| 42 | 42 |
| 43 DEFINE_int32(min_bitrate, 50, "Minimum video bitrate."); | 43 DEFINE_int32(min_bitrate, 50, "Minimum video bitrate."); |
| 44 size_t MinBitrate() { | 44 size_t MinBitrate() { |
| 45 return static_cast<size_t>(FLAGS_min_bitrate); | 45 return static_cast<size_t>(FLAGS_min_bitrate); |
| 46 } | 46 } |
| 47 | 47 |
| 48 DEFINE_int32(tl0_bitrate, 100, "Temporal layer 0 target bitrate."); | 48 DEFINE_int32(tl0_bitrate, 200, "Temporal layer 0 target bitrate."); |
| 49 size_t StartBitrate() { | 49 size_t StartBitrate() { |
| 50 return static_cast<size_t>(FLAGS_tl0_bitrate); | 50 return static_cast<size_t>(FLAGS_tl0_bitrate); |
| 51 } | 51 } |
| 52 | 52 |
| 53 DEFINE_int32(tl1_bitrate, 1000, "Temporal layer 1 target bitrate."); | 53 DEFINE_int32(tl1_bitrate, 2000, "Temporal layer 1 target bitrate."); |
| 54 size_t MaxBitrate() { | 54 size_t MaxBitrate() { |
| 55 return static_cast<size_t>(FLAGS_tl1_bitrate); | 55 return static_cast<size_t>(FLAGS_tl1_bitrate); |
| 56 } | 56 } |
| 57 | 57 |
| 58 DEFINE_int32(min_transmit_bitrate, 400, "Min transmit bitrate incl. padding."); | 58 DEFINE_int32(min_transmit_bitrate, 400, "Min transmit bitrate incl. padding."); |
| 59 int MinTransmitBitrate() { | 59 int MinTransmitBitrate() { |
| 60 return FLAGS_min_transmit_bitrate; | 60 return FLAGS_min_transmit_bitrate; |
| 61 } | 61 } |
| 62 | 62 |
| 63 DEFINE_string(codec, "VP8", "Video codec to use."); | 63 DEFINE_string(codec, "VP8", "Video codec to use."); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 } // namespace webrtc | 172 } // namespace webrtc |
| 173 | 173 |
| 174 int main(int argc, char* argv[]) { | 174 int main(int argc, char* argv[]) { |
| 175 ::testing::InitGoogleTest(&argc, argv); | 175 ::testing::InitGoogleTest(&argc, argv); |
| 176 google::ParseCommandLineFlags(&argc, &argv, true); | 176 google::ParseCommandLineFlags(&argc, &argv, true); |
| 177 webrtc::test::InitFieldTrialsFromString( | 177 webrtc::test::InitFieldTrialsFromString( |
| 178 webrtc::flags::FLAGS_force_fieldtrials); | 178 webrtc::flags::FLAGS_force_fieldtrials); |
| 179 webrtc::test::RunTest(webrtc::Loopback); | 179 webrtc::test::RunTest(webrtc::Loopback); |
| 180 return 0; | 180 return 0; |
| 181 } | 181 } |
| OLD | NEW |