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

Side by Side Diff: webrtc/modules/remote_bitrate_estimator/include/bwe_defines.h

Issue 2800633004: Resolve dependency between rtc_event_log_api and remote_bitrate_estimator (Closed)
Patch Set: Rebased Created 3 years, 8 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 /* 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 17 matching lines...) Expand all
28 extern const char* kBweTypeHistogram; 28 extern const char* kBweTypeHistogram;
29 29
30 enum BweNames { 30 enum BweNames {
31 kReceiverNoExtension = 0, 31 kReceiverNoExtension = 0,
32 kReceiverTOffset = 1, 32 kReceiverTOffset = 1,
33 kReceiverAbsSendTime = 2, 33 kReceiverAbsSendTime = 2,
34 kSendSideTransportSeqNum = 3, 34 kSendSideTransportSeqNum = 3,
35 kBweNamesMax = 4 35 kBweNamesMax = 4
36 }; 36 };
37 37
38 enum BandwidthUsage { 38 enum class BandwidthUsage {
39 kBwNormal = 0, 39 kBwNormal = 0,
40 kBwUnderusing = 1, 40 kBwUnderusing = 1,
41 kBwOverusing = 2, 41 kBwOverusing = 2,
42 }; 42 };
43 43
44 enum RateControlState { kRcHold, kRcIncrease, kRcDecrease }; 44 enum RateControlState { kRcHold, kRcIncrease, kRcDecrease };
45 45
46 enum RateControlRegion { kRcNearMax, kRcAboveMax, kRcMaxUnknown }; 46 enum RateControlRegion { kRcNearMax, kRcAboveMax, kRcMaxUnknown };
47 47
48 struct RateControlInput { 48 struct RateControlInput {
49 RateControlInput(BandwidthUsage bw_state, 49 RateControlInput(BandwidthUsage bw_state,
50 const rtc::Optional<uint32_t>& incoming_bitrate, 50 const rtc::Optional<uint32_t>& incoming_bitrate,
51 double noise_var) 51 double noise_var)
52 : bw_state(bw_state), 52 : bw_state(bw_state),
53 incoming_bitrate(incoming_bitrate), 53 incoming_bitrate(incoming_bitrate),
54 noise_var(noise_var) {} 54 noise_var(noise_var) {}
55 55
56 BandwidthUsage bw_state; 56 BandwidthUsage bw_state;
57 rtc::Optional<uint32_t> incoming_bitrate; 57 rtc::Optional<uint32_t> incoming_bitrate;
58 double noise_var; 58 double noise_var;
59 }; 59 };
60 } // namespace webrtc 60 } // namespace webrtc
61 61
62 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_ 62 #endif // WEBRTC_MODULES_REMOTE_BITRATE_ESTIMATOR_INCLUDE_BWE_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698