| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, int64_t capture_time_ms, | 214 bool TimeToSendPacket(uint16_t sequence_number, |
| 215 bool retransmission); | 215 int64_t capture_time_ms, |
| 216 size_t TimeToSendPadding(size_t bytes); | 216 bool retransmission, |
| 217 int probe_cluster_id); |
| 218 size_t TimeToSendPadding(size_t bytes, int probe_cluster_id); |
| 217 | 219 |
| 218 // NACK. | 220 // NACK. |
| 219 int SelectiveRetransmissions() const; | 221 int SelectiveRetransmissions() const; |
| 220 int SetSelectiveRetransmissions(uint8_t settings); | 222 int SetSelectiveRetransmissions(uint8_t settings); |
| 221 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers, | 223 void OnReceivedNACK(const std::list<uint16_t>& nack_sequence_numbers, |
| 222 int64_t avg_rtt); | 224 int64_t avg_rtt); |
| 223 | 225 |
| 224 void SetStorePacketsStatus(bool enable, uint16_t number_to_store); | 226 void SetStorePacketsStatus(bool enable, uint16_t number_to_store); |
| 225 | 227 |
| 226 bool StorePackets() const; | 228 bool StorePackets() const; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 void GenericFECStatus(bool* enable, | 295 void GenericFECStatus(bool* enable, |
| 294 uint8_t* payload_type_red, | 296 uint8_t* payload_type_red, |
| 295 uint8_t* payload_type_fec) const; | 297 uint8_t* payload_type_fec) const; |
| 296 | 298 |
| 297 int32_t SetFecParameters(const FecProtectionParams *delta_params, | 299 int32_t SetFecParameters(const FecProtectionParams *delta_params, |
| 298 const FecProtectionParams *key_params); | 300 const FecProtectionParams *key_params); |
| 299 | 301 |
| 300 size_t SendPadData(size_t bytes, | 302 size_t SendPadData(size_t bytes, |
| 301 bool timestamp_provided, | 303 bool timestamp_provided, |
| 302 uint32_t timestamp, | 304 uint32_t timestamp, |
| 303 int64_t capture_time_ms); | 305 int64_t capture_time_ms, |
| 306 int probe_cluster_id); |
| 304 | 307 |
| 305 // Called on update of RTP statistics. | 308 // Called on update of RTP statistics. |
| 306 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); | 309 void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); |
| 307 StreamDataCountersCallback* GetRtpStatisticsCallback() const; | 310 StreamDataCountersCallback* GetRtpStatisticsCallback() const; |
| 308 | 311 |
| 309 uint32_t BitrateSent() const; | 312 uint32_t BitrateSent() const; |
| 310 | 313 |
| 311 void SetRtpState(const RtpState& rtp_state); | 314 void SetRtpState(const RtpState& rtp_state); |
| 312 RtpState GetRtpState() const; | 315 RtpState GetRtpState() const; |
| 313 void SetRtxRtpState(const RtpState& rtp_state); | 316 void SetRtxRtpState(const RtpState& rtp_state); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 330 uint32_t timestamp, | 333 uint32_t timestamp, |
| 331 uint16_t sequence_number, | 334 uint16_t sequence_number, |
| 332 const std::vector<uint32_t>& csrcs) const; | 335 const std::vector<uint32_t>& csrcs) const; |
| 333 | 336 |
| 334 void UpdateNACKBitRate(uint32_t bytes, int64_t now); | 337 void UpdateNACKBitRate(uint32_t bytes, int64_t now); |
| 335 | 338 |
| 336 bool PrepareAndSendPacket(uint8_t* buffer, | 339 bool PrepareAndSendPacket(uint8_t* buffer, |
| 337 size_t length, | 340 size_t length, |
| 338 int64_t capture_time_ms, | 341 int64_t capture_time_ms, |
| 339 bool send_over_rtx, | 342 bool send_over_rtx, |
| 340 bool is_retransmit); | 343 bool is_retransmit, |
| 344 int probe_cluster_id); |
| 341 | 345 |
| 342 // Return the number of bytes sent. Note that both of these functions may | 346 // Return the number of bytes sent. Note that both of these functions may |
| 343 // return a larger value that their argument. | 347 // return a larger value that their argument. |
| 344 size_t TrySendRedundantPayloads(size_t bytes); | 348 size_t TrySendRedundantPayloads(size_t bytes, int probe_cluster_id); |
| 345 | 349 |
| 346 void BuildPaddingPacket(uint8_t* packet, | 350 void BuildPaddingPacket(uint8_t* packet, |
| 347 size_t header_length, | 351 size_t header_length, |
| 348 size_t padding_length); | 352 size_t padding_length); |
| 349 | 353 |
| 350 void BuildRtxPacket(uint8_t* buffer, size_t* length, | 354 void BuildRtxPacket(uint8_t* buffer, size_t* length, |
| 351 uint8_t* buffer_rtx); | 355 uint8_t* buffer_rtx); |
| 352 | 356 |
| 353 bool SendPacketToNetwork(const uint8_t* packet, | 357 bool SendPacketToNetwork(const uint8_t* packet, |
| 354 size_t size, | 358 size_t size, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 // that the target bitrate is still valid. | 504 // that the target bitrate is still valid. |
| 501 rtc::CriticalSection target_bitrate_critsect_; | 505 rtc::CriticalSection target_bitrate_critsect_; |
| 502 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); | 506 uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); |
| 503 | 507 |
| 504 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); | 508 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); |
| 505 }; | 509 }; |
| 506 | 510 |
| 507 } // namespace webrtc | 511 } // namespace webrtc |
| 508 | 512 |
| 509 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 513 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ |
| OLD | NEW |