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 |
11 #ifndef WEBRTC_VIDEO_ENGINE_VIE_RECEIVER_H_ | 11 #ifndef WEBRTC_VIDEO_ENGINE_VIE_RECEIVER_H_ |
12 #define WEBRTC_VIDEO_ENGINE_VIE_RECEIVER_H_ | 12 #define WEBRTC_VIDEO_ENGINE_VIE_RECEIVER_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
| 15 #include <vector> |
15 | 16 |
16 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
17 #include "webrtc/engine_configurations.h" | 18 #include "webrtc/engine_configurations.h" |
18 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" | 19 #include "webrtc/modules/rtp_rtcp/include/receive_statistics.h" |
19 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" | 20 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h" |
20 #include "webrtc/typedefs.h" | 21 #include "webrtc/typedefs.h" |
21 | 22 |
22 namespace webrtc { | 23 namespace webrtc { |
23 | 24 |
24 class CriticalSectionWrapper; | 25 class CriticalSectionWrapper; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 const PacketTime& packet_time); | 78 const PacketTime& packet_time); |
78 int ReceivedRTCPPacket(const void* rtcp_packet, size_t rtcp_packet_length); | 79 int ReceivedRTCPPacket(const void* rtcp_packet, size_t rtcp_packet_length); |
79 | 80 |
80 // Implements RtpData. | 81 // Implements RtpData. |
81 int32_t OnReceivedPayloadData(const uint8_t* payload_data, | 82 int32_t OnReceivedPayloadData(const uint8_t* payload_data, |
82 const size_t payload_size, | 83 const size_t payload_size, |
83 const WebRtcRTPHeader* rtp_header) override; | 84 const WebRtcRTPHeader* rtp_header) override; |
84 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override; | 85 bool OnRecoveredPacket(const uint8_t* packet, size_t packet_length) override; |
85 | 86 |
86 ReceiveStatistics* GetReceiveStatistics() const; | 87 ReceiveStatistics* GetReceiveStatistics() const; |
| 88 |
87 private: | 89 private: |
88 int InsertRTPPacket(const uint8_t* rtp_packet, size_t rtp_packet_length, | 90 int InsertRTPPacket(const uint8_t* rtp_packet, size_t rtp_packet_length, |
89 const PacketTime& packet_time); | 91 const PacketTime& packet_time); |
90 bool ReceivePacket(const uint8_t* packet, | 92 bool ReceivePacket(const uint8_t* packet, |
91 size_t packet_length, | 93 size_t packet_length, |
92 const RTPHeader& header, | 94 const RTPHeader& header, |
93 bool in_order); | 95 bool in_order); |
94 // Parses and handles for instance RTX and RED headers. | 96 // Parses and handles for instance RTX and RED headers. |
95 // This function assumes that it's being called from only one thread. | 97 // This function assumes that it's being called from only one thread. |
96 bool ParseAndHandleEncapsulatingHeader(const uint8_t* packet, | 98 bool ParseAndHandleEncapsulatingHeader(const uint8_t* packet, |
(...skipping 21 matching lines...) Expand all Loading... |
118 | 120 |
119 bool receiving_; | 121 bool receiving_; |
120 uint8_t restored_packet_[IP_PACKET_SIZE]; | 122 uint8_t restored_packet_[IP_PACKET_SIZE]; |
121 bool restored_packet_in_use_; | 123 bool restored_packet_in_use_; |
122 bool receiving_ast_enabled_; | 124 bool receiving_ast_enabled_; |
123 bool receiving_cvo_enabled_; | 125 bool receiving_cvo_enabled_; |
124 bool receiving_tsn_enabled_; | 126 bool receiving_tsn_enabled_; |
125 int64_t last_packet_log_ms_; | 127 int64_t last_packet_log_ms_; |
126 }; | 128 }; |
127 | 129 |
128 } // namespace webrt | 130 } // namespace webrtc |
129 | 131 |
130 #endif // WEBRTC_VIDEO_ENGINE_VIE_RECEIVER_H_ | 132 #endif // WEBRTC_VIDEO_ENGINE_VIE_RECEIVER_H_ |
OLD | NEW |