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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/screenshare_layers.h

Issue 2643763002: Revert of Add experimental simulcast screen content mode (Closed)
Patch Set: Created 3 years, 11 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 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
2 * 2 *
3 * Use of this source code is governed by a BSD-style license 3 * Use of this source code is governed by a BSD-style license
4 * that can be found in the LICENSE file in the root of the source 4 * that can be found in the LICENSE file in the root of the source
5 * tree. An additional intellectual property rights grant can be found 5 * tree. An additional intellectual property rights grant can be found
6 * in the file PATENTS. All contributing project authors may 6 * in the file PATENTS. All contributing project authors may
7 * be found in the AUTHORS file in the root of the source tree. 7 * be found in the AUTHORS file in the root of the source tree.
8 */ 8 */
9 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 9 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
10 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 10 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 uint32_t max_debt_bytes_; 77 uint32_t max_debt_bytes_;
78 78
79 // Configured max framerate. 79 // Configured max framerate.
80 rtc::Optional<uint32_t> target_framerate_; 80 rtc::Optional<uint32_t> target_framerate_;
81 // Incoming framerate from capturer. 81 // Incoming framerate from capturer.
82 rtc::Optional<uint32_t> capture_framerate_; 82 rtc::Optional<uint32_t> capture_framerate_;
83 // Tracks what framerate we actually encode, and drops frames on overshoot. 83 // Tracks what framerate we actually encode, and drops frames on overshoot.
84 RateStatistics encode_framerate_; 84 RateStatistics encode_framerate_;
85 bool bitrate_updated_; 85 bool bitrate_updated_;
86 86
87 static constexpr int kMaxNumTemporalLayers = 2; 87 static const int kMaxNumTemporalLayers = 2;
88 struct TemporalLayer { 88 struct TemporalLayer {
89 TemporalLayer() 89 TemporalLayer()
90 : state(State::kNormal), 90 : state(State::kNormal),
91 enhanced_max_qp(-1), 91 enhanced_max_qp(-1),
92 last_qp(-1), 92 last_qp(-1),
93 debt_bytes_(0), 93 debt_bytes_(0),
94 target_rate_kbps_(0) {} 94 target_rate_kbps_(0) {}
95 95
96 enum class State { 96 enum class State {
97 kNormal, 97 kNormal,
(...skipping 20 matching lines...) Expand all
118 int64_t num_overshoots_ = 0; 118 int64_t num_overshoots_ = 0;
119 int64_t tl0_qp_sum_ = 0; 119 int64_t tl0_qp_sum_ = 0;
120 int64_t tl1_qp_sum_ = 0; 120 int64_t tl1_qp_sum_ = 0;
121 int64_t tl0_target_bitrate_sum_ = 0; 121 int64_t tl0_target_bitrate_sum_ = 0;
122 int64_t tl1_target_bitrate_sum_ = 0; 122 int64_t tl1_target_bitrate_sum_ = 0;
123 } stats_; 123 } stats_;
124 }; 124 };
125 } // namespace webrtc 125 } // namespace webrtc
126 126
127 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_ 127 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SCREENSHARE_LAYERS_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvideoengine2_unittest.cc ('k') | webrtc/modules/video_coding/codecs/vp8/screenshare_layers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698