OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ | 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ |
6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ | 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | |
10 #include <set> | |
11 | |
9 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/time/time.h" | |
10 | 14 |
11 namespace media { | 15 namespace media { |
12 namespace cast { | 16 namespace cast { |
13 namespace transport { | 17 namespace transport { |
14 | 18 |
19 enum CastTransportStatus { | |
20 UNINITIALIZED, | |
21 INITIALIZED, | |
22 INVALID_CRYPTO_CONFIG, | |
23 SOCKET_ERROR, | |
24 // TODO(mikhal): Add. | |
25 }; | |
26 | |
27 const size_t kIpPacketSize = 1500; | |
hubbe
2013/12/27 23:49:58
kMaxIpPacketSize ?
Isn't 1500 bytes the MTU *befor
mikhal1
2013/12/30 17:33:46
It is indeed the max packet size, including the he
| |
28 // Each uint16 represents one packet id within a cast frame. | |
29 typedef std::set<uint16> PacketIdSet; | |
30 // Each uint8 represents one cast frame. | |
31 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap; | |
32 | |
15 // Rtcp defines. | 33 // Rtcp defines. |
16 | 34 |
35 enum RtcpPacketTypes { | |
36 kPacketTypeLow = 194, // SMPTE time-code mapping. | |
37 kPacketTypeInterArrivalJitterReport = 195, | |
38 kPacketTypeSenderReport = 200, | |
39 kPacketTypeReceiverReport = 201, | |
40 kPacketTypeSdes = 202, | |
41 kPacketTypeBye = 203, | |
42 kPacketTypeApplicationDefined = 204, | |
43 kPacketTypeGenericRtpFeedback = 205, | |
44 kPacketTypePayloadSpecific = 206, | |
45 kPacketTypeXr = 207, | |
46 kPacketTypeHigh = 210, // Port Mapping. | |
47 }; | |
48 | |
17 // Log messages form sender to receiver. | 49 // Log messages form sender to receiver. |
18 enum RtcpSenderFrameStatus { | 50 enum RtcpSenderFrameStatus { |
19 kRtcpSenderFrameStatusUnknown = 0, | 51 kRtcpSenderFrameStatusUnknown = 0, |
20 kRtcpSenderFrameStatusDroppedByEncoder = 1, | 52 kRtcpSenderFrameStatusDroppedByEncoder = 1, |
21 kRtcpSenderFrameStatusDroppedByFlowControl = 2, | 53 kRtcpSenderFrameStatusDroppedByFlowControl = 2, |
22 kRtcpSenderFrameStatusSentToNetwork = 3, | 54 kRtcpSenderFrameStatusSentToNetwork = 3, |
23 }; | 55 }; |
24 | 56 |
25 struct RtcpSenderFrameLogMessage { | 57 struct RtcpSenderFrameLogMessage { |
26 RtcpSenderFrameStatus frame_status; | 58 RtcpSenderFrameStatus frame_status; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
125 bool first_; | 157 bool first_; |
126 uint32 frame_id_wrap_count_; | 158 uint32 frame_id_wrap_count_; |
127 Range range_; | 159 Range range_; |
128 }; | 160 }; |
129 | 161 |
130 } // namespace transport | 162 } // namespace transport |
131 } // namespace cast | 163 } // namespace cast |
132 } // namespace media | 164 } // namespace media |
133 | 165 |
134 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ | 166 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ |
OLD | NEW |