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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 // return a larger value that their argument. | 343 // return a larger value that their argument. |
344 size_t TrySendRedundantPayloads(size_t bytes); | 344 size_t TrySendRedundantPayloads(size_t bytes); |
345 | 345 |
346 void BuildPaddingPacket(uint8_t* packet, | 346 void BuildPaddingPacket(uint8_t* packet, |
347 size_t header_length, | 347 size_t header_length, |
348 size_t padding_length); | 348 size_t padding_length); |
349 | 349 |
350 void BuildRtxPacket(uint8_t* buffer, size_t* length, | 350 void BuildRtxPacket(uint8_t* buffer, size_t* length, |
351 uint8_t* buffer_rtx); | 351 uint8_t* buffer_rtx); |
352 | 352 |
353 bool SendPacketToNetwork(const uint8_t *packet, size_t size); | 353 bool SendPacketToNetwork(const uint8_t* packet, |
| 354 size_t size, |
| 355 const PacketOptions& options); |
354 | 356 |
355 void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms); | 357 void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms); |
356 | 358 |
357 // Find the byte position of the RTP extension as indicated by |type| in | 359 // Find the byte position of the RTP extension as indicated by |type| in |
358 // |rtp_packet|. Return false if such extension doesn't exist. | 360 // |rtp_packet|. Return false if such extension doesn't exist. |
359 bool FindHeaderExtensionPosition(RTPExtensionType type, | 361 bool FindHeaderExtensionPosition(RTPExtensionType type, |
360 const uint8_t* rtp_packet, | 362 const uint8_t* rtp_packet, |
361 size_t rtp_packet_length, | 363 size_t rtp_packet_length, |
362 const RTPHeader& rtp_header, | 364 const RTPHeader& rtp_header, |
363 size_t* position) const; | 365 size_t* position) const; |
(...skipping 97 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 |