| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 int32_t BuildRtpHeader(uint8_t* data_buffer, | 215 int32_t BuildRtpHeader(uint8_t* data_buffer, |
| 216 int8_t payload_type, | 216 int8_t payload_type, |
| 217 bool marker_bit, | 217 bool marker_bit, |
| 218 uint32_t capture_timestamp, | 218 uint32_t capture_timestamp, |
| 219 int64_t capture_time_ms); | 219 int64_t capture_time_ms); |
| 220 | 220 |
| 221 size_t RtpHeaderLength() const; | 221 size_t RtpHeaderLength() const; |
| 222 uint16_t AllocateSequenceNumber(uint16_t packets_to_send); | 222 uint16_t AllocateSequenceNumber(uint16_t packets_to_send); |
| 223 size_t MaxPayloadLength() const; | 223 size_t MaxPayloadLength() const; |
| 224 | 224 |
| 225 // Current timestamp. | |
| 226 uint32_t Timestamp() const; | |
| 227 uint32_t SSRC() const; | 225 uint32_t SSRC() const; |
| 228 | 226 |
| 229 // Deprecated. Create RtpPacketToSend instead and use next function. | 227 // Deprecated. Create RtpPacketToSend instead and use next function. |
| 230 bool SendToNetwork(uint8_t* data_buffer, | 228 bool SendToNetwork(uint8_t* data_buffer, |
| 231 size_t payload_length, | 229 size_t payload_length, |
| 232 size_t rtp_header_length, | 230 size_t rtp_header_length, |
| 233 int64_t capture_time_ms, | 231 int64_t capture_time_ms, |
| 234 StorageType storage, | 232 StorageType storage, |
| 235 RtpPacketSender::Priority priority); | 233 RtpPacketSender::Priority priority); |
| 236 bool SendToNetwork(std::unique_ptr<RtpPacketToSend> packet, | 234 bool SendToNetwork(std::unique_ptr<RtpPacketToSend> packet, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 401 |
| 404 // RTP variables | 402 // RTP variables |
| 405 uint32_t timestamp_offset_ GUARDED_BY(send_critsect_); | 403 uint32_t timestamp_offset_ GUARDED_BY(send_critsect_); |
| 406 SSRCDatabase* const ssrc_db_; | 404 SSRCDatabase* const ssrc_db_; |
| 407 uint32_t remote_ssrc_ GUARDED_BY(send_critsect_); | 405 uint32_t remote_ssrc_ GUARDED_BY(send_critsect_); |
| 408 bool sequence_number_forced_ GUARDED_BY(send_critsect_); | 406 bool sequence_number_forced_ GUARDED_BY(send_critsect_); |
| 409 uint16_t sequence_number_ GUARDED_BY(send_critsect_); | 407 uint16_t sequence_number_ GUARDED_BY(send_critsect_); |
| 410 uint16_t sequence_number_rtx_ GUARDED_BY(send_critsect_); | 408 uint16_t sequence_number_rtx_ GUARDED_BY(send_critsect_); |
| 411 bool ssrc_forced_ GUARDED_BY(send_critsect_); | 409 bool ssrc_forced_ GUARDED_BY(send_critsect_); |
| 412 uint32_t ssrc_ GUARDED_BY(send_critsect_); | 410 uint32_t ssrc_ GUARDED_BY(send_critsect_); |
| 413 uint32_t timestamp_ GUARDED_BY(send_critsect_); | 411 uint32_t last_rtp_timestamp_ GUARDED_BY(send_critsect_); |
| 414 int64_t capture_time_ms_ GUARDED_BY(send_critsect_); | 412 int64_t capture_time_ms_ GUARDED_BY(send_critsect_); |
| 415 int64_t last_timestamp_time_ms_ GUARDED_BY(send_critsect_); | 413 int64_t last_timestamp_time_ms_ GUARDED_BY(send_critsect_); |
| 416 bool media_has_been_sent_ GUARDED_BY(send_critsect_); | 414 bool media_has_been_sent_ GUARDED_BY(send_critsect_); |
| 417 bool last_packet_marker_bit_ GUARDED_BY(send_critsect_); | 415 bool last_packet_marker_bit_ GUARDED_BY(send_critsect_); |
| 418 std::vector<uint32_t> csrcs_ GUARDED_BY(send_critsect_); | 416 std::vector<uint32_t> csrcs_ GUARDED_BY(send_critsect_); |
| 419 int rtx_ GUARDED_BY(send_critsect_); | 417 int rtx_ GUARDED_BY(send_critsect_); |
| 420 uint32_t ssrc_rtx_ GUARDED_BY(send_critsect_); | 418 uint32_t ssrc_rtx_ GUARDED_BY(send_critsect_); |
| 421 // Mapping rtx_payload_type_map_[associated] = rtx. | 419 // Mapping rtx_payload_type_map_[associated] = rtx. |
| 422 std::map<int8_t, int8_t> rtx_payload_type_map_ GUARDED_BY(send_critsect_); | 420 std::map<int8_t, int8_t> rtx_payload_type_map_ GUARDED_BY(send_critsect_); |
| 423 | 421 |
| 424 RateLimiter* const retransmission_rate_limiter_; | 422 RateLimiter* const retransmission_rate_limiter_; |
| 425 | 423 |
| 426 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); | 424 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(RTPSender); |
| 427 }; | 425 }; |
| 428 | 426 |
| 429 } // namespace webrtc | 427 } // namespace webrtc |
| 430 | 428 |
| 431 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ | 429 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_H_ |
| OLD | NEW |