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

Side by Side Diff: webrtc/modules/video_coding/media_optimization.h

Issue 1543503002: Lint fix for webrtc/modules/video_coding PART 2! (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // Informs Media Optimization of encoded output. 79 // Informs Media Optimization of encoded output.
80 int32_t UpdateWithEncodedData(const EncodedImage& encoded_image); 80 int32_t UpdateWithEncodedData(const EncodedImage& encoded_image);
81 81
82 // InputFrameRate 0 = no frame rate estimate available. 82 // InputFrameRate 0 = no frame rate estimate available.
83 uint32_t InputFrameRate(); 83 uint32_t InputFrameRate();
84 uint32_t SentFrameRate(); 84 uint32_t SentFrameRate();
85 uint32_t SentBitRate(); 85 uint32_t SentBitRate();
86 86
87 private: 87 private:
88 enum { 88 enum { kFrameCountHistorySize = 90 };
89 kFrameCountHistorySize = 90 89 enum { kFrameHistoryWinMs = 2000 };
90 }; 90 enum { kBitrateAverageWinMs = 1000 };
91 enum {
92 kFrameHistoryWinMs = 2000
93 };
94 enum {
95 kBitrateAverageWinMs = 1000
96 };
97 91
98 struct EncodedFrameSample; 92 struct EncodedFrameSample;
99 typedef std::list<EncodedFrameSample> FrameSampleList; 93 typedef std::list<EncodedFrameSample> FrameSampleList;
100 94
101 void UpdateIncomingFrameRate() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 95 void UpdateIncomingFrameRate() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
102 void PurgeOldFrameSamples(int64_t now_ms) 96 void PurgeOldFrameSamples(int64_t now_ms)
103 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 97 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
104 void UpdateSentBitrate(int64_t now_ms) EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 98 void UpdateSentBitrate(int64_t now_ms) EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
105 void UpdateSentFramerate() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 99 void UpdateSentFramerate() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
106 100
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 int num_layers_ GUARDED_BY(crit_sect_); 165 int num_layers_ GUARDED_BY(crit_sect_);
172 bool suspension_enabled_ GUARDED_BY(crit_sect_); 166 bool suspension_enabled_ GUARDED_BY(crit_sect_);
173 bool video_suspended_ GUARDED_BY(crit_sect_); 167 bool video_suspended_ GUARDED_BY(crit_sect_);
174 int suspension_threshold_bps_ GUARDED_BY(crit_sect_); 168 int suspension_threshold_bps_ GUARDED_BY(crit_sect_);
175 int suspension_window_bps_ GUARDED_BY(crit_sect_); 169 int suspension_window_bps_ GUARDED_BY(crit_sect_);
176 }; 170 };
177 } // namespace media_optimization 171 } // namespace media_optimization
178 } // namespace webrtc 172 } // namespace webrtc
179 173
180 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPTIMIZATION_H_ 174 #endif // WEBRTC_MODULES_VIDEO_CODING_MEDIA_OPTIMIZATION_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/media_opt_util.cc ('k') | webrtc/modules/video_coding/media_optimization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698