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

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

Issue 1193513006: In screenshare mode, suppress VP8 bitrate overshoot and increase quality (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « webrtc/video/full_stack.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
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
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 }
OLDNEW
« no previous file with comments | « webrtc/video/full_stack.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698