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

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

Issue 1327933003: Enable probing with repeated payload packets by default. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing yet another flake in libjingle tests. Created 5 years, 3 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 uint8_t payload_type_red, 290 uint8_t payload_type_red,
291 uint8_t payload_type_fec); 291 uint8_t payload_type_fec);
292 292
293 void GenericFECStatus(bool* enable, 293 void GenericFECStatus(bool* enable,
294 uint8_t* payload_type_red, 294 uint8_t* payload_type_red,
295 uint8_t* payload_type_fec) const; 295 uint8_t* payload_type_fec) const;
296 296
297 int32_t SetFecParameters(const FecProtectionParams *delta_params, 297 int32_t SetFecParameters(const FecProtectionParams *delta_params,
298 const FecProtectionParams *key_params); 298 const FecProtectionParams *key_params);
299 299
300 size_t SendPadData(uint32_t timestamp, 300 size_t SendPadData(size_t bytes,
301 int64_t capture_time_ms, 301 bool timestamp_provided,
302 size_t bytes); 302 uint32_t timestamp,
303 int64_t capture_time_ms);
303 304
304 // Called on update of RTP statistics. 305 // Called on update of RTP statistics.
305 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); 306 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback);
306 StreamDataCountersCallback* GetRtpStatisticsCallback() const; 307 StreamDataCountersCallback* GetRtpStatisticsCallback() const;
307 308
308 uint32_t BitrateSent() const; 309 uint32_t BitrateSent() const;
309 310
310 void SetRtpState(const RtpState& rtp_state); 311 void SetRtpState(const RtpState& rtp_state);
311 RtpState GetRtpState() const; 312 RtpState GetRtpState() const;
312 void SetRtxRtpState(const RtpState& rtp_state); 313 void SetRtxRtpState(const RtpState& rtp_state);
(...skipping 21 matching lines...) Expand all
334 335
335 bool PrepareAndSendPacket(uint8_t* buffer, 336 bool PrepareAndSendPacket(uint8_t* buffer,
336 size_t length, 337 size_t length,
337 int64_t capture_time_ms, 338 int64_t capture_time_ms,
338 bool send_over_rtx, 339 bool send_over_rtx,
339 bool is_retransmit); 340 bool is_retransmit);
340 341
341 // 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
342 // return a larger value that their argument. 343 // return a larger value that their argument.
343 size_t TrySendRedundantPayloads(size_t bytes); 344 size_t TrySendRedundantPayloads(size_t bytes);
344 size_t TrySendPadData(size_t bytes);
345 345
346 size_t BuildPaddingPacket(uint8_t* packet, size_t header_length); 346 void BuildPaddingPacket(uint8_t* packet,
347 size_t header_length,
348 size_t padding_length);
347 349
348 void BuildRtxPacket(uint8_t* buffer, size_t* length, 350 void BuildRtxPacket(uint8_t* buffer, size_t* length,
349 uint8_t* buffer_rtx); 351 uint8_t* buffer_rtx);
350 352
351 bool SendPacketToNetwork(const uint8_t *packet, size_t size); 353 bool SendPacketToNetwork(const uint8_t *packet, size_t size);
352 354
353 void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms); 355 void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms);
354 356
355 // Find the byte position of the RTP extension as indicated by |type| in 357 // Find the byte position of the RTP extension as indicated by |type| in
356 // |rtp_packet|. Return false if such extension doesn't exist. 358 // |rtp_packet|. Return false if such extension doesn't exist.
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember 463 // SetTargetBitrateKbps or GetTargetBitrateKbps. Also remember
462 // that by the time the function returns there is no guarantee 464 // that by the time the function returns there is no guarantee
463 // that the target bitrate is still valid. 465 // that the target bitrate is still valid.
464 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_; 466 rtc::scoped_ptr<CriticalSectionWrapper> target_bitrate_critsect_;
465 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); 467 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_);
466 }; 468 };
467 469
468 } // namespace webrtc 470 } // namespace webrtc
469 471
470 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ 472 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/paced_sender_unittest.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