Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Side by Side Diff: media/cast/transport/cast_transport_defines.h

Issue 192843002: Cast:Adding signaling and infrastructure for adjustable delay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 aes_nonce[8] = (frame_id >> 24) & 0xff; 48 aes_nonce[8] = (frame_id >> 24) & 0xff;
49 49
50 for (size_t i = 0; i < kAesBlockSize; ++i) { 50 for (size_t i = 0; i < kAesBlockSize; ++i) {
51 aes_nonce[i] ^= iv_mask[i]; 51 aes_nonce[i] ^= iv_mask[i];
52 } 52 }
53 return aes_nonce; 53 return aes_nonce;
54 } 54 }
55 55
56 // Rtcp defines. 56 // Rtcp defines.
57 57
58 enum RtcpPacketTypes { 58 enum RtcpPacketFields {
59 kPacketTypeLow = 194, // SMPTE time-code mapping. 59 kPacketTypeLow = 194, // SMPTE time-code mapping.
60 kPacketTypeInterArrivalJitterReport = 195, 60 kPacketTypeInterArrivalJitterReport = 195,
61 kPacketTypeSenderReport = 200, 61 kPacketTypeSenderReport = 200,
62 kPacketTypeReceiverReport = 201, 62 kPacketTypeReceiverReport = 201,
63 kPacketTypeSdes = 202, 63 kPacketTypeSdes = 202,
64 kPacketTypeBye = 203, 64 kPacketTypeBye = 203,
65 kPacketTypeApplicationDefined = 204, 65 kPacketTypeApplicationDefined = 204,
66 kPacketTypeGenericRtpFeedback = 205, 66 kPacketTypeGenericRtpFeedback = 205,
67 kPacketTypePayloadSpecific = 206, 67 kPacketTypePayloadSpecific = 206,
68 kPacketTypeXr = 207, 68 kPacketTypeXr = 207,
69 kPacketTypeHigh = 210, // Port Mapping. 69 kPacketTypeHigh = 210, // Port Mapping.
70 }; 70 };
71 71
72 enum RtcpPacketField {
73 kRtcpSr = 0x0002,
74 kRtcpRr = 0x0004,
75 kRtcpBye = 0x0008,
76 kRtcpPli = 0x0010,
77 kRtcpNack = 0x0020,
78 kRtcpFir = 0x0040,
79 kRtcpSrReq = 0x0200,
80 kRtcpDlrr = 0x0400,
81 kRtcpRrtr = 0x0800,
82 kRtcpRpsi = 0x8000,
83 kRtcpRemb = 0x10000,
84 kRtcpCast = 0x20000,
85 kRtcpSenderLog = 0x40000,
86 kRtcpReceiverLog = 0x80000,
87 };
88
72 // Each uint16 represents one packet id within a cast frame. 89 // Each uint16 represents one packet id within a cast frame.
73 typedef std::set<uint16> PacketIdSet; 90 typedef std::set<uint16> PacketIdSet;
74 // Each uint8 represents one cast frame. 91 // Each uint8 represents one cast frame.
75 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap; 92 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap;
76 93
77 class FrameIdWrapHelper { 94 class FrameIdWrapHelper {
78 public: 95 public:
79 FrameIdWrapHelper() 96 FrameIdWrapHelper()
80 : first_(true), frame_id_wrap_count_(0), range_(kLowRange) {} 97 : first_(true), frame_id_wrap_count_(0), range_(kLowRange) {}
81 98
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 base::TimeDelta recorded_delta = time_ticks - zero_time; 156 base::TimeDelta recorded_delta = time_ticks - zero_time;
140 // Timestamp is in 90 KHz for video. 157 // Timestamp is in 90 KHz for video.
141 return static_cast<uint32>(recorded_delta.InMilliseconds() * 90); 158 return static_cast<uint32>(recorded_delta.InMilliseconds() * 90);
142 } 159 }
143 160
144 } // namespace transport 161 } // namespace transport
145 } // namespace cast 162 } // namespace cast
146 } // namespace media 163 } // namespace media
147 164
148 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ 165 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698