OLD | NEW |
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 size_t length, | 336 size_t length, |
337 int64_t capture_time_ms, | 337 int64_t capture_time_ms, |
338 bool send_over_rtx, | 338 bool send_over_rtx, |
339 bool is_retransmit); | 339 bool is_retransmit); |
340 | 340 |
341 // Return the number of bytes sent. Note that both of these functions may | 341 // Return the number of bytes sent. Note that both of these functions may |
342 // return a larger value that their argument. | 342 // return a larger value that their argument. |
343 size_t TrySendRedundantPayloads(size_t bytes); | 343 size_t TrySendRedundantPayloads(size_t bytes); |
344 size_t TrySendPadData(size_t bytes); | 344 size_t TrySendPadData(size_t bytes); |
345 | 345 |
346 size_t BuildPaddingPacket(uint8_t* packet, size_t header_length); | 346 size_t BuildPaddingPacket(uint8_t* packet, |
| 347 size_t header_length, |
| 348 size_t max_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 Loading... |
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_ |
OLD | NEW |