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

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

Issue 2032463003: Revert of Propagate probing cluster id to SendTimeHistory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 size_t rtp_packet_length, 204 size_t rtp_packet_length,
205 const RTPHeader& rtp_header, 205 const RTPHeader& rtp_header,
206 bool is_voiced, 206 bool is_voiced,
207 uint8_t dBov) const; 207 uint8_t dBov) const;
208 208
209 bool UpdateVideoRotation(uint8_t* rtp_packet, 209 bool UpdateVideoRotation(uint8_t* rtp_packet,
210 size_t rtp_packet_length, 210 size_t rtp_packet_length,
211 const RTPHeader& rtp_header, 211 const RTPHeader& rtp_header,
212 VideoRotation rotation) const override; 212 VideoRotation rotation) const override;
213 213
214 bool TimeToSendPacket(uint16_t sequence_number, 214 bool TimeToSendPacket(uint16_t sequence_number, int64_t capture_time_ms,
215 int64_t capture_time_ms, 215 bool retransmission);
216 bool retransmission, 216 size_t TimeToSendPadding(size_t bytes);
217 int probe_cluster_id);
218 size_t TimeToSendPadding(size_t bytes, int probe_cluster_id);
219 217
220 // NACK. 218 // NACK.
221 int SelectiveRetransmissions() const; 219 int SelectiveRetransmissions() const;
222 int SetSelectiveRetransmissions(uint8_t settings); 220 int SetSelectiveRetransmissions(uint8_t settings);
223 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers, 221 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers,
224 int64_t avg_rtt); 222 int64_t avg_rtt);
225 223
226 void SetStorePacketsStatus(bool enable, uint16_t number_to_store); 224 void SetStorePacketsStatus(bool enable, uint16_t number_to_store);
227 225
228 bool StorePackets() const; 226 bool StorePackets() const;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 void GenericFECStatus(bool* enable, 293 void GenericFECStatus(bool* enable,
296 uint8_t* payload_type_red, 294 uint8_t* payload_type_red,
297 uint8_t* payload_type_fec) const; 295 uint8_t* payload_type_fec) const;
298 296
299 int32_t SetFecParameters(const FecProtectionParams *delta_params, 297 int32_t SetFecParameters(const FecProtectionParams *delta_params,
300 const FecProtectionParams *key_params); 298 const FecProtectionParams *key_params);
301 299
302 size_t SendPadData(size_t bytes, 300 size_t SendPadData(size_t bytes,
303 bool timestamp_provided, 301 bool timestamp_provided,
304 uint32_t timestamp, 302 uint32_t timestamp,
305 int64_t capture_time_ms, 303 int64_t capture_time_ms);
306 int probe_cluster_id);
307 304
308 // Called on update of RTP statistics. 305 // Called on update of RTP statistics.
309 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); 306 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback);
310 StreamDataCountersCallback* GetRtpStatisticsCallback() const; 307 StreamDataCountersCallback* GetRtpStatisticsCallback() const;
311 308
312 uint32_t BitrateSent() const; 309 uint32_t BitrateSent() const;
313 310
314 void SetRtpState(const RtpState& rtp_state); 311 void SetRtpState(const RtpState& rtp_state);
315 RtpState GetRtpState() const; 312 RtpState GetRtpState() const;
316 void SetRtxRtpState(const RtpState& rtp_state); 313 void SetRtxRtpState(const RtpState& rtp_state);
(...skipping 16 matching lines...) Expand all
333 uint32_t timestamp, 330 uint32_t timestamp,
334 uint16_t sequence_number, 331 uint16_t sequence_number,
335 const std::vector<uint32_t>& csrcs) const; 332 const std::vector<uint32_t>& csrcs) const;
336 333
337 void UpdateNACKBitRate(uint32_t bytes, int64_t now); 334 void UpdateNACKBitRate(uint32_t bytes, int64_t now);
338 335
339 bool PrepareAndSendPacket(uint8_t* buffer, 336 bool PrepareAndSendPacket(uint8_t* buffer,
340 size_t length, 337 size_t length,
341 int64_t capture_time_ms, 338 int64_t capture_time_ms,
342 bool send_over_rtx, 339 bool send_over_rtx,
343 bool is_retransmit, 340 bool is_retransmit);
344 int probe_cluster_id);
345 341
346 // Return the number of bytes sent. Note that both of these functions may 342 // Return the number of bytes sent. Note that both of these functions may
347 // return a larger value that their argument. 343 // return a larger value that their argument.
348 size_t TrySendRedundantPayloads(size_t bytes, int probe_cluster_id); 344 size_t TrySendRedundantPayloads(size_t bytes);
349 345
350 void BuildPaddingPacket(uint8_t* packet, 346 void BuildPaddingPacket(uint8_t* packet,
351 size_t header_length, 347 size_t header_length,
352 size_t padding_length); 348 size_t padding_length);
353 349
354 void BuildRtxPacket(uint8_t* buffer, size_t* length, 350 void BuildRtxPacket(uint8_t* buffer, size_t* length,
355 uint8_t* buffer_rtx); 351 uint8_t* buffer_rtx);
356 352
357 bool SendPacketToNetwork(const uint8_t* packet, 353 bool SendPacketToNetwork(const uint8_t* packet,
358 size_t size, 354 size_t size,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // that the target bitrate is still valid. 500 // that the target bitrate is still valid.
505 rtc::CriticalSection target_bitrate_critsect_; 501 rtc::CriticalSection target_bitrate_critsect_;
506 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); 502 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_);
507 503
508 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); 504 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender);
509 }; 505 };
510 506
511 } // namespace webrtc 507 } // namespace webrtc
512 508
513 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ 509 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc ('k') | webrtc/modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698