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

Side by Side Diff: webrtc/modules/video_coding/include/bitrate_adjuster.h

Issue 1824833002: Remove redefined macros from BitrateAdjuster (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | 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 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2016 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
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_INCLUDE_BITRATE_ADJUSTER_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_INCLUDE_BITRATE_ADJUSTER_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_INCLUDE_BITRATE_ADJUSTER_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_INCLUDE_BITRATE_ADJUSTER_H_
13 13
14 #include <functional> 14 #include <functional>
15 15
16 #include "webrtc/base/criticalsection.h" 16 #include "webrtc/base/criticalsection.h"
17 #include "webrtc/base/gtest_prod_util.h"
18 #include "webrtc/base/rate_statistics.h" 17 #include "webrtc/base/rate_statistics.h"
19 18
20 namespace webrtc { 19 namespace webrtc {
21 20
22 class Clock; 21 class Clock;
23 22
24 // Certain hardware encoders tend to consistently overshoot the bitrate that 23 // Certain hardware encoders tend to consistently overshoot the bitrate that
25 // they are configured to encode at. This class estimates an adjusted bitrate 24 // they are configured to encode at. This class estimates an adjusted bitrate
26 // that when set on the encoder will produce the desired bitrate. 25 // that when set on the encoder will produce the desired bitrate.
27 class BitrateAdjuster { 26 class BitrateAdjuster {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 RateStatistics bitrate_tracker_ GUARDED_BY(crit_); 80 RateStatistics bitrate_tracker_ GUARDED_BY(crit_);
82 // The last time we tried to adjust the bitrate. 81 // The last time we tried to adjust the bitrate.
83 uint32_t last_bitrate_update_time_ms_ GUARDED_BY(crit_); 82 uint32_t last_bitrate_update_time_ms_ GUARDED_BY(crit_);
84 // The number of frames since the last time we tried to adjust the bitrate. 83 // The number of frames since the last time we tried to adjust the bitrate.
85 uint32_t frames_since_last_update_ GUARDED_BY(crit_); 84 uint32_t frames_since_last_update_ GUARDED_BY(crit_);
86 }; 85 };
87 86
88 } // namespace webrtc 87 } // namespace webrtc
89 88
90 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_BITRATE_ADJUSTER_H_ 89 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_BITRATE_ADJUSTER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698