| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 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); | 
| 304 | 306 | 
|  | 307   size_t SendPadData(size_t bytes, | 
|  | 308                      bool timestamp_provided, | 
|  | 309                      uint32_t timestamp, | 
|  | 310                      int64_t capture_time_ms, | 
|  | 311                      int probe_cluster_id); | 
|  | 312 | 
| 305   // Called on update of RTP statistics. | 313   // Called on update of RTP statistics. | 
| 306   void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); | 314   void RegisterRtpStatisticsCallback(StreamDataCountersCallback* callback); | 
| 307   StreamDataCountersCallback* GetRtpStatisticsCallback() const; | 315   StreamDataCountersCallback* GetRtpStatisticsCallback() const; | 
| 308 | 316 | 
| 309   uint32_t BitrateSent() const; | 317   uint32_t BitrateSent() const; | 
| 310 | 318 | 
| 311   void SetRtpState(const RtpState& rtp_state); | 319   void SetRtpState(const RtpState& rtp_state); | 
| 312   RtpState GetRtpState() const; | 320   RtpState GetRtpState() const; | 
| 313   void SetRtxRtpState(const RtpState& rtp_state); | 321   void SetRtxRtpState(const RtpState& rtp_state); | 
| 314   RtpState GetRtxRtpState() const; | 322   RtpState GetRtxRtpState() const; | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 330                          uint32_t timestamp, | 338                          uint32_t timestamp, | 
| 331                          uint16_t sequence_number, | 339                          uint16_t sequence_number, | 
| 332                          const std::vector<uint32_t>& csrcs) const; | 340                          const std::vector<uint32_t>& csrcs) const; | 
| 333 | 341 | 
| 334   void UpdateNACKBitRate(uint32_t bytes, int64_t now); | 342   void UpdateNACKBitRate(uint32_t bytes, int64_t now); | 
| 335 | 343 | 
| 336   bool PrepareAndSendPacket(uint8_t* buffer, | 344   bool PrepareAndSendPacket(uint8_t* buffer, | 
| 337                             size_t length, | 345                             size_t length, | 
| 338                             int64_t capture_time_ms, | 346                             int64_t capture_time_ms, | 
| 339                             bool send_over_rtx, | 347                             bool send_over_rtx, | 
| 340                             bool is_retransmit); | 348                             bool is_retransmit, | 
|  | 349                             int probe_cluster_id); | 
| 341 | 350 | 
| 342   // Return the number of bytes sent.  Note that both of these functions may | 351   // Return the number of bytes sent.  Note that both of these functions may | 
| 343   // return a larger value that their argument. | 352   // return a larger value that their argument. | 
| 344   size_t TrySendRedundantPayloads(size_t bytes); | 353   size_t TrySendRedundantPayloads(size_t bytes, int probe_cluster_id); | 
| 345 | 354 | 
| 346   void BuildPaddingPacket(uint8_t* packet, | 355   void BuildPaddingPacket(uint8_t* packet, | 
| 347                           size_t header_length, | 356                           size_t header_length, | 
| 348                           size_t padding_length); | 357                           size_t padding_length); | 
| 349 | 358 | 
| 350   void BuildRtxPacket(uint8_t* buffer, size_t* length, | 359   void BuildRtxPacket(uint8_t* buffer, size_t* length, | 
| 351                       uint8_t* buffer_rtx); | 360                       uint8_t* buffer_rtx); | 
| 352 | 361 | 
| 353   bool SendPacketToNetwork(const uint8_t* packet, | 362   bool SendPacketToNetwork(const uint8_t* packet, | 
| 354                            size_t size, | 363                            size_t size, | 
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 500   // that the target bitrate is still valid. | 509   // that the target bitrate is still valid. | 
| 501   rtc::CriticalSection target_bitrate_critsect_; | 510   rtc::CriticalSection target_bitrate_critsect_; | 
| 502   uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); | 511   uint32_t target_bitrate_ GUARDED_BY(target_bitrate_critsect_); | 
| 503 | 512 | 
| 504   RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); | 513   RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); | 
| 505 }; | 514 }; | 
| 506 | 515 | 
| 507 }  // namespace webrtc | 516 }  // namespace webrtc | 
| 508 | 517 | 
| 509 #endif  // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 518 #endif  // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 
| OLD | NEW | 
|---|