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

Side by Side Diff: webrtc/call.h

Issue 1325263002: Make LoadObserver settable per video send stream. Gives client flexibility and makes the implementa… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 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 | « talk/media/webrtc/webrtcvideoengine2_unittest.cc ('k') | webrtc/video/call.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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_CALL_H_ 10 #ifndef WEBRTC_CALL_H_
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // are assumed to have the same remote endpoint and will share bitrate estimates 67 // are assumed to have the same remote endpoint and will share bitrate estimates
68 // etc. 68 // etc.
69 class Call { 69 class Call {
70 public: 70 public:
71 struct Config { 71 struct Config {
72 static const int kDefaultStartBitrateBps; 72 static const int kDefaultStartBitrateBps;
73 73
74 // VoiceEngine used for audio/video synchronization for this Call. 74 // VoiceEngine used for audio/video synchronization for this Call.
75 VoiceEngine* voice_engine = nullptr; 75 VoiceEngine* voice_engine = nullptr;
76 76
77 // Callback for overuse and normal usage based on the jitter of incoming
78 // captured frames. 'nullptr' disables the callback.
79 LoadObserver* overuse_callback = nullptr;
80
81 // Bitrate config used until valid bitrate estimates are calculated. Also 77 // Bitrate config used until valid bitrate estimates are calculated. Also
82 // used to cap total bitrate used. 78 // used to cap total bitrate used.
83 struct BitrateConfig { 79 struct BitrateConfig {
84 int min_bitrate_bps = 0; 80 int min_bitrate_bps = 0;
85 int start_bitrate_bps = kDefaultStartBitrateBps; 81 int start_bitrate_bps = kDefaultStartBitrateBps;
86 int max_bitrate_bps = -1; 82 int max_bitrate_bps = -1;
87 } bitrate_config; 83 } bitrate_config;
88 84
89 struct AudioConfig { 85 struct AudioConfig {
90 AudioDeviceModule* audio_device_manager = nullptr; 86 AudioDeviceModule* audio_device_manager = nullptr;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void SetBitrateConfig( 134 virtual void SetBitrateConfig(
139 const Config::BitrateConfig& bitrate_config) = 0; 135 const Config::BitrateConfig& bitrate_config) = 0;
140 virtual void SignalNetworkState(NetworkState state) = 0; 136 virtual void SignalNetworkState(NetworkState state) = 0;
141 137
142 virtual ~Call() {} 138 virtual ~Call() {}
143 }; 139 };
144 140
145 } // namespace webrtc 141 } // namespace webrtc
146 142
147 #endif // WEBRTC_CALL_H_ 143 #endif // WEBRTC_CALL_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2_unittest.cc ('k') | webrtc/video/call.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698