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_MODULES_AUDIO_CODING_NETEQ_PACKET_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_PACKET_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_PACKET_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_PACKET_H_ |
13 | 13 |
14 #include <list> | 14 #include <list> |
15 | 15 |
16 #include "webrtc/modules/interface/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
17 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 // Struct for holding RTP packets. | 21 // Struct for holding RTP packets. |
22 struct Packet { | 22 struct Packet { |
23 RTPHeader header; | 23 RTPHeader header; |
24 uint8_t* payload; // Datagram excluding RTP header and header extension. | 24 uint8_t* payload; // Datagram excluding RTP header and header extension. |
25 size_t payload_length; | 25 size_t payload_length; |
26 bool primary; // Primary, i.e., not redundant payload. | 26 bool primary; // Primary, i.e., not redundant payload. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 bool operator>(const Packet& rhs) const { return rhs.operator<(*this); } | 79 bool operator>(const Packet& rhs) const { return rhs.operator<(*this); } |
80 bool operator<=(const Packet& rhs) const { return !operator>(rhs); } | 80 bool operator<=(const Packet& rhs) const { return !operator>(rhs); } |
81 bool operator>=(const Packet& rhs) const { return !operator<(rhs); } | 81 bool operator>=(const Packet& rhs) const { return !operator<(rhs); } |
82 }; | 82 }; |
83 | 83 |
84 // A list of packets. | 84 // A list of packets. |
85 typedef std::list<Packet*> PacketList; | 85 typedef std::list<Packet*> PacketList; |
86 | 86 |
87 } // namespace webrtc | 87 } // namespace webrtc |
88 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_PACKET_H_ | 88 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_PACKET_H_ |
OLD | NEW |