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

Side by Side Diff: webrtc/video/vie_remb.h

Issue 2789843002: Delete VieRemb class, move functionality to PacketRouter. (Closed)
Patch Set: Delete obsolete suppression for PacketRouterTest.SendTransportFeedback. 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
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_remb.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_VIDEO_VIE_REMB_H_
12 #define WEBRTC_VIDEO_VIE_REMB_H_
13
14 #include <list>
15 #include <utility>
16 #include <vector>
17
18 #include "webrtc/base/criticalsection.h"
19 #include "webrtc/modules/include/module.h"
20 #include "webrtc/modules/remote_bitrate_estimator/include/remote_bitrate_estimat or.h"
21 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h"
22
23 namespace webrtc {
24
25 class ProcessThread;
26 class RtpRtcp;
27
28 class VieRemb : public RemoteBitrateObserver {
29 public:
30 explicit VieRemb(Clock* clock);
31 ~VieRemb();
32
33 // Called to add a receive channel to include in the REMB packet.
34 void AddReceiveChannel(RtpRtcp* rtp_rtcp);
35
36 // Removes the specified channel from REMB estimate.
37 void RemoveReceiveChannel(RtpRtcp* rtp_rtcp);
38
39 // Called to add a module that can generate and send REMB RTCP.
40 void AddRembSender(RtpRtcp* rtp_rtcp);
41
42 // Removes a REMB RTCP sender.
43 void RemoveRembSender(RtpRtcp* rtp_rtcp);
44
45 // Returns true if the instance is in use, false otherwise.
46 bool InUse() const;
47
48 // Called every time there is a new bitrate estimate for a receive channel
49 // group. This call will trigger a new RTCP REMB packet if the bitrate
50 // estimate has decreased or if no RTCP REMB packet has been sent for
51 // a certain time interval.
52 // Implements RtpReceiveBitrateUpdate.
53 virtual void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
54 uint32_t bitrate);
55
56 private:
57 typedef std::list<RtpRtcp*> RtpModules;
58
59 Clock* const clock_;
60 rtc::CriticalSection list_crit_;
61
62 // The last time a REMB was sent.
63 int64_t last_remb_time_;
64 uint32_t last_send_bitrate_;
65
66 // All RtpRtcp modules to include in the REMB packet.
67 RtpModules receive_modules_;
68
69 // All modules that can send REMB RTCP.
70 RtpModules rtcp_sender_;
71
72 // The last bitrate update.
73 uint32_t bitrate_;
74 };
75
76 } // namespace webrtc
77
78 #endif // WEBRTC_VIDEO_VIE_REMB_H_
OLDNEW
« no previous file with comments | « webrtc/video/video_send_stream.cc ('k') | webrtc/video/vie_remb.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698