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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 int probe_cluster_id); | 366 int probe_cluster_id); |
367 | 367 |
368 // Return the number of bytes sent. Note that both of these functions may | 368 // Return the number of bytes sent. Note that both of these functions may |
369 // return a larger value that their argument. | 369 // return a larger value that their argument. |
370 size_t TrySendRedundantPayloads(size_t bytes, int probe_cluster_id); | 370 size_t TrySendRedundantPayloads(size_t bytes, int probe_cluster_id); |
371 | 371 |
372 void BuildPaddingPacket(uint8_t* packet, | 372 void BuildPaddingPacket(uint8_t* packet, |
373 size_t header_length, | 373 size_t header_length, |
374 size_t padding_length); | 374 size_t padding_length); |
375 | 375 |
376 void BuildRtxPacket(uint8_t* buffer, size_t* length, | 376 bool BuildRtxPacket(uint8_t* buffer, size_t* length, uint8_t* buffer_rtx); |
377 uint8_t* buffer_rtx); | |
378 | 377 |
379 bool SendPacketToNetwork(const uint8_t* packet, | 378 bool SendPacketToNetwork(const uint8_t* packet, |
380 size_t size, | 379 size_t size, |
381 const PacketOptions& options); | 380 const PacketOptions& options); |
382 | 381 |
383 void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms); | 382 void UpdateDelayStatistics(int64_t capture_time_ms, int64_t now_ms); |
384 void UpdateOnSendPacket(int packet_id, | 383 void UpdateOnSendPacket(int packet_id, |
385 int64_t capture_time_ms, | 384 int64_t capture_time_ms, |
386 uint32_t ssrc); | 385 uint32_t ssrc); |
387 | 386 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 std::map<int8_t, int8_t> rtx_payload_type_map_ GUARDED_BY(send_critsect_); | 496 std::map<int8_t, int8_t> rtx_payload_type_map_ GUARDED_BY(send_critsect_); |
498 | 497 |
499 RateLimiter* const retransmission_rate_limiter_; | 498 RateLimiter* const retransmission_rate_limiter_; |
500 | 499 |
501 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); | 500 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); |
502 }; | 501 }; |
503 | 502 |
504 } // namespace webrtc | 503 } // namespace webrtc |
505 | 504 |
506 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 505 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ |
OLD | NEW |