OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 TelephoneEventHandler* GetTelephoneEventHandler() override; | 66 TelephoneEventHandler* GetTelephoneEventHandler() override; |
67 | 67 |
68 private: | 68 private: |
69 bool HaveReceivedFrame() const; | 69 bool HaveReceivedFrame() const; |
70 | 70 |
71 void CheckSSRCChanged(const RTPHeader& rtp_header); | 71 void CheckSSRCChanged(const RTPHeader& rtp_header); |
72 void CheckCSRC(const WebRtcRTPHeader& rtp_header); | 72 void CheckCSRC(const WebRtcRTPHeader& rtp_header); |
73 int32_t CheckPayloadChanged(const RTPHeader& rtp_header, | 73 int32_t CheckPayloadChanged(const RTPHeader& rtp_header, |
74 const int8_t first_payload_byte, | 74 const int8_t first_payload_byte, |
75 bool& is_red, | 75 bool& is_red, |
76 PayloadUnion* payload, | 76 PayloadUnion* payload); |
77 bool* should_reset_statistics); | |
78 | 77 |
79 Clock* clock_; | 78 Clock* clock_; |
80 RTPPayloadRegistry* rtp_payload_registry_; | 79 RTPPayloadRegistry* rtp_payload_registry_; |
81 rtc::scoped_ptr<RTPReceiverStrategy> rtp_media_receiver_; | 80 rtc::scoped_ptr<RTPReceiverStrategy> rtp_media_receiver_; |
82 | 81 |
83 int32_t id_; | 82 int32_t id_; |
84 | 83 |
85 RtpFeedback* cb_rtp_feedback_; | 84 RtpFeedback* cb_rtp_feedback_; |
86 | 85 |
87 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtp_receiver_; | 86 rtc::scoped_ptr<CriticalSectionWrapper> critical_section_rtp_receiver_; |
88 int64_t last_receive_time_; | 87 int64_t last_receive_time_; |
89 size_t last_received_payload_length_; | 88 size_t last_received_payload_length_; |
90 | 89 |
91 // SSRCs. | 90 // SSRCs. |
92 uint32_t ssrc_; | 91 uint32_t ssrc_; |
93 uint8_t num_csrcs_; | 92 uint8_t num_csrcs_; |
94 uint32_t current_remote_csrc_[kRtpCsrcSize]; | 93 uint32_t current_remote_csrc_[kRtpCsrcSize]; |
95 | 94 |
96 uint32_t last_received_timestamp_; | 95 uint32_t last_received_timestamp_; |
97 int64_t last_received_frame_time_ms_; | 96 int64_t last_received_frame_time_ms_; |
98 uint16_t last_received_sequence_number_; | 97 uint16_t last_received_sequence_number_; |
99 | 98 |
100 NACKMethod nack_method_; | 99 NACKMethod nack_method_; |
101 }; | 100 }; |
102 } // namespace webrtc | 101 } // namespace webrtc |
103 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_IMPL_H_ | 102 #endif // WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_RECEIVER_IMPL_H_ |
OLD | NEW |