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

Side by Side Diff: media/cast/cast_defines.h

Issue 219723003: Remove all uses of GG_UINT32_C. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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_CAST_DEFINES_H_ 5 #ifndef MEDIA_CAST_CAST_DEFINES_H_
6 #define MEDIA_CAST_CAST_DEFINES_H_ 6 #define MEDIA_CAST_CAST_DEFINES_H_
7 7
8 #include <stdint.h>
9
8 #include <map> 10 #include <map>
9 #include <set> 11 #include <set>
10 12
11 #include "base/basictypes.h" 13 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
13 #include "base/logging.h" 15 #include "base/logging.h"
14 #include "base/time/time.h" 16 #include "base/time/time.h"
15 #include "media/cast/transport/cast_transport_config.h" 17 #include "media/cast/transport/cast_transport_config.h"
16 18
17 namespace media { 19 namespace media {
18 namespace cast { 20 namespace cast {
19 21
20 const int64 kDontShowTimeoutMs = 33; 22 const int64 kDontShowTimeoutMs = 33;
21 const float kDefaultCongestionControlBackOff = 0.875f; 23 const float kDefaultCongestionControlBackOff = 0.875f;
22 const uint32 kVideoFrequency = 90000; 24 const uint32 kVideoFrequency = 90000;
23 const int64 kSkippedFramesCheckPeriodkMs = 10000; 25 const int64 kSkippedFramesCheckPeriodkMs = 10000;
24 const uint32 kStartFrameId = GG_UINT32_C(0xffffffff); 26 const uint32 kStartFrameId = UINT32_C(0xffffffff);
25 27
26 // Number of skipped frames threshold in fps (as configured) per period above. 28 // Number of skipped frames threshold in fps (as configured) per period above.
27 const int kSkippedFramesThreshold = 3; 29 const int kSkippedFramesThreshold = 3;
28 const size_t kMaxIpPacketSize = 1500; 30 const size_t kMaxIpPacketSize = 1500;
29 const int kStartRttMs = 20; 31 const int kStartRttMs = 20;
30 const int64 kCastMessageUpdateIntervalMs = 33; 32 const int64 kCastMessageUpdateIntervalMs = 33;
31 const int64 kNackRepeatIntervalMs = 30; 33 const int64 kNackRepeatIntervalMs = 30;
32 34
33 enum CastInitializationStatus { 35 enum CastInitializationStatus {
34 STATUS_AUDIO_UNINITIALIZED, 36 STATUS_AUDIO_UNINITIALIZED,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 typedef std::set<uint16> PacketIdSet; 76 typedef std::set<uint16> PacketIdSet;
75 // Each uint8 represents one cast frame. 77 // Each uint8 represents one cast frame.
76 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap; 78 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap;
77 79
78 // TODO(pwestin): Re-factor the functions bellow into a class with static 80 // TODO(pwestin): Re-factor the functions bellow into a class with static
79 // methods. 81 // methods.
80 82
81 // January 1970, in NTP seconds. 83 // January 1970, in NTP seconds.
82 // Network Time Protocol (NTP), which is in seconds relative to 0h UTC on 84 // Network Time Protocol (NTP), which is in seconds relative to 0h UTC on
83 // 1 January 1900. 85 // 1 January 1900.
84 static const int64 kUnixEpochInNtpSeconds = GG_INT64_C(2208988800); 86 static const int64 kUnixEpochInNtpSeconds = INT64_C(2208988800);
85 87
86 // Magic fractional unit. Used to convert time (in microseconds) to/from 88 // Magic fractional unit. Used to convert time (in microseconds) to/from
87 // fractional NTP seconds. 89 // fractional NTP seconds.
88 static const double kMagicFractionalUnit = 4.294967296E3; 90 static const double kMagicFractionalUnit = 4.294967296E3;
89 91
90 // The maximum number of Cast receiver events to keep in history for the 92 // The maximum number of Cast receiver events to keep in history for the
91 // purpose of sending the events through RTCP. 93 // purpose of sending the events through RTCP.
92 // The number chosen should be more than the number of events that can be 94 // The number chosen should be more than the number of events that can be
93 // stored in a RTCP packet. 95 // stored in a RTCP packet.
94 static const size_t kReceiverRtcpEventHistorySize = 512; 96 static const size_t kReceiverRtcpEventHistorySize = 512;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 base::TimeTicks time_sent_; 221 base::TimeTicks time_sent_;
220 uint32 rtp_timestamp_; 222 uint32 rtp_timestamp_;
221 223
222 DISALLOW_COPY_AND_ASSIGN(RtpSenderStatistics); 224 DISALLOW_COPY_AND_ASSIGN(RtpSenderStatistics);
223 }; 225 };
224 226
225 } // namespace cast 227 } // namespace cast
226 } // namespace media 228 } // namespace media
227 229
228 #endif // MEDIA_CAST_CAST_DEFINES_H_ 230 #endif // MEDIA_CAST_CAST_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/audio_sender/audio_sender_unittest.cc ('k') | media/cast/congestion_control/congestion_control_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698