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

Side by Side Diff: webrtc/video/video_quality_test.h

Issue 2117493002: Auto pause video streams based on encoder target bitrate. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 5 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/video_loopback.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | 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 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 10 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
(...skipping 16 matching lines...) Expand all
27 // Unfortunately, C++11 (as opposed to C11) doesn't support unnamed structs, 27 // Unfortunately, C++11 (as opposed to C11) doesn't support unnamed structs,
28 // which makes the implementation of VideoQualityTest a bit uglier. 28 // which makes the implementation of VideoQualityTest a bit uglier.
29 struct Params { 29 struct Params {
30 struct { 30 struct {
31 size_t width; 31 size_t width;
32 size_t height; 32 size_t height;
33 int32_t fps; 33 int32_t fps;
34 int min_bitrate_bps; 34 int min_bitrate_bps;
35 int target_bitrate_bps; 35 int target_bitrate_bps;
36 int max_bitrate_bps; 36 int max_bitrate_bps;
37 bool suspend_below_min_bitrate;
37 std::string codec; 38 std::string codec;
38 int num_temporal_layers; 39 int num_temporal_layers;
39 int selected_tl; 40 int selected_tl;
40 int min_transmit_bps; 41 int min_transmit_bps;
41 42
42 Call::Config::BitrateConfig call_bitrate_config; 43 Call::Config::BitrateConfig call_bitrate_config;
43 bool send_side_bwe; 44 bool send_side_bwe;
44 bool fec; 45 bool fec;
45 } common; 46 } common;
46 struct { // Video-specific settings. 47 struct { // Video-specific settings.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 std::unique_ptr<VideoEncoder> encoder_; 112 std::unique_ptr<VideoEncoder> encoder_;
112 VideoCodecUnion codec_settings_; 113 VideoCodecUnion codec_settings_;
113 Clock* const clock_; 114 Clock* const clock_;
114 115
115 Params params_; 116 Params params_;
116 }; 117 };
117 118
118 } // namespace webrtc 119 } // namespace webrtc
119 120
120 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 121 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_loopback.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698