OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 char** argv, | 72 char** argv, |
73 webrtc::Clock* clock, | 73 webrtc::Clock* clock, |
74 webrtc::RemoteBitrateObserver* observer, | 74 webrtc::RemoteBitrateObserver* observer, |
75 webrtc::test::RtpFileReader** rtp_reader, | 75 webrtc::test::RtpFileReader** rtp_reader, |
76 webrtc::RtpHeaderParser** parser, | 76 webrtc::RtpHeaderParser** parser, |
77 webrtc::RemoteBitrateEstimator** estimator, | 77 webrtc::RemoteBitrateEstimator** estimator, |
78 std::string* estimator_used) { | 78 std::string* estimator_used) { |
79 if (rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true)) { | 79 if (rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true)) { |
80 return 1; | 80 return 1; |
81 } | 81 } |
82 if (FLAG_help) { | 82 if (flags::FLAG_help) { |
83 rtc::FlagList::Print(nullptr, false); | 83 rtc::FlagList::Print(nullptr, false); |
84 return 0; | 84 return 0; |
85 } | 85 } |
86 std::string filename = flags::InputFile(); | 86 std::string filename = flags::InputFile(); |
87 | 87 |
88 std::set<uint32_t> ssrc_filter = flags::SsrcFilter(); | 88 std::set<uint32_t> ssrc_filter = flags::SsrcFilter(); |
89 fprintf(stderr, "Filter on SSRC: "); | 89 fprintf(stderr, "Filter on SSRC: "); |
90 for (auto& s : ssrc_filter) { | 90 for (auto& s : ssrc_filter) { |
91 fprintf(stderr, "0x%08x, ", s); | 91 fprintf(stderr, "0x%08x, ", s); |
92 } | 92 } |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 new webrtc::RemoteBitrateEstimatorSingleStream(observer, clock); | 134 new webrtc::RemoteBitrateEstimatorSingleStream(observer, clock); |
135 *estimator_used = "RemoteBitrateEstimator"; | 135 *estimator_used = "RemoteBitrateEstimator"; |
136 break; | 136 break; |
137 } | 137 } |
138 default: | 138 default: |
139 assert(false); | 139 assert(false); |
140 } | 140 } |
141 } | 141 } |
142 return true; | 142 return true; |
143 } | 143 } |
OLD | NEW |