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

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

Issue 2589743002: Make OverheadObserver::OnOverheadChanged count RTP headers only (Closed)
Patch Set: Add explicit cast. Created 3 years, 11 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool REMB() const; 126 bool REMB() const;
127 127
128 void SetREMBStatus(bool enable); 128 void SetREMBStatus(bool enable);
129 129
130 void SetREMBData(uint32_t bitrate, const std::vector<uint32_t>& ssrcs); 130 void SetREMBData(uint32_t bitrate, const std::vector<uint32_t>& ssrcs);
131 131
132 bool TMMBR() const; 132 bool TMMBR() const;
133 133
134 void SetTMMBRStatus(bool enable); 134 void SetTMMBRStatus(bool enable);
135 135
136 void SetMaxPayloadLength(size_t max_payload_length); 136 void SetMaxRtpPacketSize(size_t max_packet_size);
137 137
138 void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set); 138 void SetTmmbn(std::vector<rtcp::TmmbItem> bounding_set);
139 139
140 int32_t SetApplicationSpecificData(uint8_t subType, 140 int32_t SetApplicationSpecificData(uint8_t subType,
141 uint32_t name, 141 uint32_t name,
142 const uint8_t* data, 142 const uint8_t* data,
143 uint16_t length); 143 uint16_t length);
144 int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric); 144 int32_t SetRTCPVoIPMetrics(const RTCPVoIPMetric* VoIPMetric);
145 145
146 void SendRtcpXrReceiverReferenceTime(bool enable); 146 void SendRtcpXrReceiverReferenceTime(bool enable);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_); 233 uint8_t sequence_number_fir_ GUARDED_BY(critical_section_rtcp_sender_);
234 234
235 // REMB 235 // REMB
236 uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_); 236 uint32_t remb_bitrate_ GUARDED_BY(critical_section_rtcp_sender_);
237 std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_); 237 std::vector<uint32_t> remb_ssrcs_ GUARDED_BY(critical_section_rtcp_sender_);
238 238
239 std::vector<rtcp::TmmbItem> tmmbn_to_send_ 239 std::vector<rtcp::TmmbItem> tmmbn_to_send_
240 GUARDED_BY(critical_section_rtcp_sender_); 240 GUARDED_BY(critical_section_rtcp_sender_);
241 uint32_t tmmbr_send_bps_ GUARDED_BY(critical_section_rtcp_sender_); 241 uint32_t tmmbr_send_bps_ GUARDED_BY(critical_section_rtcp_sender_);
242 uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_); 242 uint32_t packet_oh_send_ GUARDED_BY(critical_section_rtcp_sender_);
243 size_t max_payload_length_; 243 size_t max_packet_size_;
244 244
245 // APP 245 // APP
246 uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_); 246 uint8_t app_sub_type_ GUARDED_BY(critical_section_rtcp_sender_);
247 uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_); 247 uint32_t app_name_ GUARDED_BY(critical_section_rtcp_sender_);
248 std::unique_ptr<uint8_t[]> app_data_ 248 std::unique_ptr<uint8_t[]> app_data_
249 GUARDED_BY(critical_section_rtcp_sender_); 249 GUARDED_BY(critical_section_rtcp_sender_);
250 uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_); 250 uint16_t app_length_ GUARDED_BY(critical_section_rtcp_sender_);
251 251
252 // True if sending of XR Receiver reference time report is enabled. 252 // True if sending of XR Receiver reference time report is enabled.
253 bool xr_send_receiver_reference_time_enabled_ 253 bool xr_send_receiver_reference_time_enabled_
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)( 290 typedef std::unique_ptr<rtcp::RtcpPacket> (RTCPSender::*BuilderFunc)(
291 const RtcpContext&); 291 const RtcpContext&);
292 // Map from RTCPPacketType to builder. 292 // Map from RTCPPacketType to builder.
293 std::map<uint32_t, BuilderFunc> builders_; 293 std::map<uint32_t, BuilderFunc> builders_;
294 294
295 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender); 295 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTCPSender);
296 }; 296 };
297 } // namespace webrtc 297 } // namespace webrtc
298 298
299 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_ 299 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTCP_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/source/rtcp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698