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

Side by Side Diff: webrtc/video/screenshare_loopback.cc

Issue 1351693005: Read the number of TLs for VP9 too + cleanup (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 DEFINE_int32( 78 DEFINE_int32(
79 tl_discard_threshold, 79 tl_discard_threshold,
80 0, 80 0,
81 "Discard TLs with id greater or equal the threshold. 0 to disable."); 81 "Discard TLs with id greater or equal the threshold. 0 to disable.");
82 size_t TLDiscardThreshold() { 82 size_t TLDiscardThreshold() {
83 return static_cast<size_t>(FLAGS_tl_discard_threshold); 83 return static_cast<size_t>(FLAGS_tl_discard_threshold);
84 } 84 }
85 85
86 DEFINE_bool(disable_wrapper_frame_dropper,
87 false,
88 "Disable FrameDropper in the wrapper. "
89 "Does not affect drop on capture or PacedSender.");
90
86 DEFINE_int32(min_transmit_bitrate, 400, "Min transmit bitrate incl. padding."); 91 DEFINE_int32(min_transmit_bitrate, 400, "Min transmit bitrate incl. padding.");
87 int MinTransmitBitrateKbps() { 92 int MinTransmitBitrateKbps() {
88 return FLAGS_min_transmit_bitrate; 93 return FLAGS_min_transmit_bitrate;
89 } 94 }
90 95
91 DEFINE_string(codec, "VP8", "Video codec to use."); 96 DEFINE_string(codec, "VP8", "Video codec to use.");
92 std::string Codec() { 97 std::string Codec() {
93 return static_cast<std::string>(FLAGS_codec); 98 return static_cast<std::string>(FLAGS_codec);
94 } 99 }
95 100
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 { 170 {
166 flags::Width(), 171 flags::Width(),
167 flags::Height(), 172 flags::Height(),
168 flags::Fps(), 173 flags::Fps(),
169 flags::MinBitrateKbps() * 1000, 174 flags::MinBitrateKbps() * 1000,
170 flags::TargetBitrateKbps() * 1000, 175 flags::TargetBitrateKbps() * 1000,
171 flags::MaxBitrateKbps() * 1000, 176 flags::MaxBitrateKbps() * 1000,
172 flags::Codec(), 177 flags::Codec(),
173 flags::NumTemporalLayers(), 178 flags::NumTemporalLayers(),
174 flags::MinTransmitBitrateKbps() * 1000, 179 flags::MinTransmitBitrateKbps() * 1000,
180 flags::FLAGS_disable_wrapper_frame_dropper,
175 call_bitrate_config, 181 call_bitrate_config,
176 flags::TLDiscardThreshold() 182 flags::TLDiscardThreshold()
177 }, 183 },
178 {}, // Video specific. 184 {}, // Video specific.
179 {true, flags::SlideChangeInterval(), flags::ScrollDuration()}, 185 {true, flags::SlideChangeInterval(), flags::ScrollDuration()},
180 {"screenshare", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename()}, 186 {"screenshare", 0.0, 0.0, flags::DurationSecs(), flags::OutputFilename()},
181 pipe_config, 187 pipe_config,
182 flags::FLAGS_logs}; 188 flags::FLAGS_logs};
183 189
184 VideoQualityTest test; 190 VideoQualityTest test;
185 if (flags::OutputFilename().empty()) 191 if (flags::OutputFilename().empty())
186 test.RunWithVideoRenderer(params); 192 test.RunWithVideoRenderer(params);
187 else 193 else
188 test.RunWithAnalyzer(params); 194 test.RunWithAnalyzer(params);
189 } 195 }
190 } // namespace webrtc 196 } // namespace webrtc
191 197
192 int main(int argc, char* argv[]) { 198 int main(int argc, char* argv[]) {
193 ::testing::InitGoogleTest(&argc, argv); 199 ::testing::InitGoogleTest(&argc, argv);
194 google::ParseCommandLineFlags(&argc, &argv, true); 200 google::ParseCommandLineFlags(&argc, &argv, true);
195 webrtc::test::InitFieldTrialsFromString( 201 webrtc::test::InitFieldTrialsFromString(
196 webrtc::flags::FLAGS_force_fieldtrials); 202 webrtc::flags::FLAGS_force_fieldtrials);
197 webrtc::test::RunTest(webrtc::Loopback); 203 webrtc::test::RunTest(webrtc::Loopback);
198 return 0; 204 return 0;
199 } 205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698