Chromium Code Reviews

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

Issue 1746773002: [rtp_rtcp] tmmbr helper simplified by moving set_to_send member out (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_sender.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) 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 114 matching lines...)
125 bool REMB() const; 125 bool REMB() const;
126 126
127 void SetREMBStatus(bool enable); 127 void SetREMBStatus(bool enable);
128 128
129 void SetREMBData(uint32_t bitrate, const std::vector<uint32_t>& ssrcs); 129 void SetREMBData(uint32_t bitrate, const std::vector<uint32_t>& ssrcs);
130 130
131 bool TMMBR() const; 131 bool TMMBR() const;
132 132
133 void SetTMMBRStatus(bool enable); 133 void SetTMMBRStatus(bool enable);
134 134
135 int32_t SetTMMBN(const TMMBRSet* boundingSet); 135 void SetTMMBN(const TMMBRSet* boundingSet);
philipel 2016/03/04 10:49:27 While you are at it, change to const TMMBRSet& ins
danilchap 2016/03/04 14:06:13 Unfortunately right now caller can't guarantee non
136 136
137 int32_t SetApplicationSpecificData(uint8_t subType, 137 int32_t SetApplicationSpecificData(uint8_t subType,
138 uint32_t name, 138 uint32_t name,
139 const uint8_t* data, 139 const uint8_t* data,
140 uint16_t length); 140 uint16_t length);
141 int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric); 141 int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric);
142 142
143 void SendRtcpXrReceiverReferenceTime(bool enable); 143 void SendRtcpXrReceiverReferenceTime(bool enable);
144 144
145 bool RtcpXrReceiverReferenceTime() const; 145 bool RtcpXrReceiverReferenceTime() const;
(...skipping 85 matching lines...)
231 std::vector<uint32_t> csrcs_ GUARDED_BY(critical_section_rtcp_sender_); 231 std::vector<uint32_t> csrcs_ GUARDED_BY(critical_section_rtcp_sender_);
232 232
233 // Full intra request 233 // Full intra request
234 uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_); 234 uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_);
235 235
236 // REMB 236 // REMB
237 uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_); 237 uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_);
238 std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_); 238 std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_);
239 239
240 TMMBRHelp tmmbr_help_ GUARDED_BY(critical_section_rtcp_sender_); 240 TMMBRHelp tmmbr_help_ GUARDED_BY(critical_section_rtcp_sender_);
241 std::vector<rtcp::TmmbItem> tmmbn_to_send_
philipel 2016/03/04 10:49:27 Don't you think it would be clearer to use a TMMBR
danilchap 2016/03/04 14:06:13 Yes, it is inconsistent with SetTMMBN function, bu
242 GUARDED_BY(critical_section_rtcp_sender_);
241 uint32_t tmmbr_send_ GUARDED_BY(critical_section_rtcp_sender_); 243 uint32_t tmmbr_send_ GUARDED_BY(critical_section_rtcp_sender_);
242 uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_); 244 uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_);
243 245
244 // APP 246 // APP
245 uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_); 247 uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_);
246 uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_); 248 uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_);
247 rtc::scoped_ptr<uint8_t[]> app_data_ 249 rtc::scoped_ptr<uint8_t[]> app_data_
248 GUARDED_BY(critical_section_rtcp_sender_); 250 GUARDED_BY(critical_section_rtcp_sender_);
249 uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_); 251 uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_);
250 252
(...skipping 33 matching lines...)
284 286
285 typedef rtc::scoped_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( 287 typedef rtc::scoped_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)(
286 const RtcpContext&); 288 const RtcpContext&);
287 std::map<RTCPPacketType, BuilderFunc> builders_; 289 std::map<RTCPPacketType, BuilderFunc> builders_;
288 290
289 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); 291 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender);
290 }; 292 };
291 } // namespace webrtc 293 } // namespace webrtc
292 294
293 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 295 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine