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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtcp_receiver.h

Issue 2702373002: Reduce usage of tmmbr information structure (Closed)
Patch Set: nits Created 3 years, 10 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // RTCP report blocks map mapped by source SSRC. 124 // RTCP report blocks map mapped by source SSRC.
125 using ReportBlockMap = std::map<uint32_t, ReportBlockInfoMap>; 125 using ReportBlockMap = std::map<uint32_t, ReportBlockInfoMap>;
126 126
127 bool ParseCompoundPacket(const uint8_t* packet_begin, 127 bool ParseCompoundPacket(const uint8_t* packet_begin,
128 const uint8_t* packet_end, 128 const uint8_t* packet_end,
129 PacketInformation* packet_information); 129 PacketInformation* packet_information);
130 130
131 void TriggerCallbacksFromRtcpPacket( 131 void TriggerCallbacksFromRtcpPacket(
132 const PacketInformation& packet_information); 132 const PacketInformation& packet_information);
133 133
134 void CreateTmmbrInformation(uint32_t remote_ssrc) 134 TmmbrInformation* CreateTmmbrInformation(uint32_t remote_ssrc)
135 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);
136 // Update TmmbrInformation (if present) is alive.
137 void UpdateTmmbrRemoteIsAlive(uint32_t remote_ssrc)
135 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_); 138 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);
136 TmmbrInformation* GetTmmbrInformation(uint32_t remote_ssrc) 139 TmmbrInformation* GetTmmbrInformation(uint32_t remote_ssrc)
137 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_); 140 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);
138 141
139 void HandleSenderReport(const rtcp::CommonHeader& rtcp_block, 142 void HandleSenderReport(const rtcp::CommonHeader& rtcp_block,
140 PacketInformation* packet_information) 143 PacketInformation* packet_information)
141 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_); 144 EXCLUSIVE_LOCKS_REQUIRED(rtcp_receiver_lock_);
142 145
143 void HandleReceiverReport(const rtcp::CommonHeader& rtcp_block, 146 void HandleReceiverReport(const rtcp::CommonHeader& rtcp_block,
144 PacketInformation* packet_information) 147 PacketInformation* packet_information)
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_; 264 RtcpPacketTypeCounterObserver* const packet_type_counter_observer_;
262 RtcpPacketTypeCounter packet_type_counter_; 265 RtcpPacketTypeCounter packet_type_counter_;
263 266
264 RtcpNackStats nack_stats_; 267 RtcpNackStats nack_stats_;
265 268
266 size_t num_skipped_packets_; 269 size_t num_skipped_packets_;
267 int64_t last_skipped_packets_warning_ms_; 270 int64_t last_skipped_packets_warning_ms_;
268 }; 271 };
269 } // namespace webrtc 272 } // namespace webrtc
270 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_ 273 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_RECEIVER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('j') | webrtc/modules/rtp_rtcp/source/rtcp_receiver.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698