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

Side by Side Diff: webrtc/call.h

Issue 2304363002: Let ViEEncoder express resolution requests as Sinkwants (Closed)
Patch Set: Rebased and fixed. Created 4 years, 2 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) 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 virtual DeliveryStatus DeliverPacket(MediaType media_type, 47 virtual DeliveryStatus DeliverPacket(MediaType media_type,
48 const uint8_t* packet, 48 const uint8_t* packet,
49 size_t length, 49 size_t length,
50 const PacketTime& packet_time) = 0; 50 const PacketTime& packet_time) = 0;
51 51
52 protected: 52 protected:
53 virtual ~PacketReceiver() {} 53 virtual ~PacketReceiver() {}
54 }; 54 };
55 55
56 // Callback interface for reporting when a system overuse is detected.
57 class LoadObserver {
58 public:
59 enum Load { kOveruse, kUnderuse };
60
61 // Triggered when overuse is detected or when we believe the system can take
62 // more load.
63 virtual void OnLoadUpdate(Load load) = 0;
64
65 protected:
66 virtual ~LoadObserver() {}
67 };
68
69 // A Call instance can contain several send and/or receive streams. All streams 56 // A Call instance can contain several send and/or receive streams. All streams
70 // are assumed to have the same remote endpoint and will share bitrate estimates 57 // are assumed to have the same remote endpoint and will share bitrate estimates
71 // etc. 58 // etc.
72 class Call { 59 class Call {
73 public: 60 public:
74 struct Config { 61 struct Config {
75 static const int kDefaultStartBitrateBps; 62 static const int kDefaultStartBitrateBps;
76 63
77 // Bitrate config used until valid bitrate estimates are calculated. Also 64 // Bitrate config used until valid bitrate estimates are calculated. Also
78 // used to cap total bitrate used. 65 // used to cap total bitrate used.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 virtual bool StartEventLog(rtc::PlatformFile log_file, 141 virtual bool StartEventLog(rtc::PlatformFile log_file,
155 int64_t max_size_bytes) = 0; 142 int64_t max_size_bytes) = 0;
156 virtual void StopEventLog() = 0; 143 virtual void StopEventLog() = 0;
157 144
158 virtual ~Call() {} 145 virtual ~Call() {}
159 }; 146 };
160 147
161 } // namespace webrtc 148 } // namespace webrtc
162 149
163 #endif // WEBRTC_CALL_H_ 150 #endif // WEBRTC_CALL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/call/bitrate_estimator_tests.cc » ('j') | webrtc/media/engine/fakewebrtccall.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698