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

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

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating chrome/renderer Created 6 years, 11 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 15
16 namespace media { 16 namespace media {
17 namespace cast { 17 namespace cast {
18 18
19 const int64 kDontShowTimeoutMs = 33; 19 const int64 kDontShowTimeoutMs = 33;
20 const float kDefaultCongestionControlBackOff = 0.875f; 20 const float kDefaultCongestionControlBackOff = 0.875f;
21 const uint32 kVideoFrequency = 90000; 21 const uint32 kVideoFrequency = 90000;
22 const int64 kSkippedFramesCheckPeriodkMs = 10000; 22 const int64 kSkippedFramesCheckPeriodkMs = 10000;
23 const uint32 kStartFrameId = GG_UINT32_C(0xffffffff); 23 const uint32 kStartFrameId = GG_UINT32_C(0xffffffff);
24 24
25 // Number of skipped frames threshold in fps (as configured) per period above. 25 // Number of skipped frames threshold in fps (as configured) per period above.
26 const int kSkippedFramesThreshold = 3; 26 const int kSkippedFramesThreshold = 3;
27 const size_t kIpPacketSize = 1500; 27 const size_t kMaxIpPacketSize = 1500;
28 const int kStartRttMs = 20; 28 const int kStartRttMs = 20;
29 const int64 kCastMessageUpdateIntervalMs = 33; 29 const int64 kCastMessageUpdateIntervalMs = 33;
30 const int64 kNackRepeatIntervalMs = 30; 30 const int64 kNackRepeatIntervalMs = 30;
31 31
32 enum DefaultSettings { 32 enum DefaultSettings {
33 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR. 33 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR.
34 kDefaultAudioSamplingRate = 48000, 34 kDefaultAudioSamplingRate = 48000,
35 kDefaultMaxQp = 56, 35 kDefaultMaxQp = 56,
36 kDefaultMinQp = 4, 36 kDefaultMinQp = 4,
37 kDefaultMaxFrameRate = 30, 37 kDefaultMaxFrameRate = 30,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 base::TimeTicks zero_time; 160 base::TimeTicks zero_time;
161 base::TimeDelta recorded_delta = time_ticks - zero_time; 161 base::TimeDelta recorded_delta = time_ticks - zero_time;
162 // Timestamp is in 90 KHz for video. 162 // Timestamp is in 90 KHz for video.
163 return static_cast<uint32>(recorded_delta.InMilliseconds() * 90); 163 return static_cast<uint32>(recorded_delta.InMilliseconds() * 90);
164 } 164 }
165 165
166 } // namespace cast 166 } // namespace cast
167 } // namespace media 167 } // namespace media
168 168
169 #endif // MEDIA_CAST_CAST_DEFINES_H_ 169 #endif // MEDIA_CAST_CAST_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698