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

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

Issue 163553006: Cast: Refactoring Cast API's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « media/cast/cast_config.h ('k') | media/cast/cast_receiver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 11 matching lines...) Expand all
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 kMaxIpPacketSize = 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 CastInitializationStatus {
33 STATUS_AUDIO_UNINITIALIZED,
34 STATUS_VIDEO_UNINITIALIZED,
35 STATUS_AUDIO_INITIALIZED,
36 STATUS_VIDEO_INITIALIZED,
37 STATUS_INVALID_CAST_ENVIRONMENT,
38 STATUS_INVALID_CRYPTO_CONFIGURATION,
39 STATUS_UNSUPPORTED_AUDIO_CODEC,
40 STATUS_INVALID_AUDIO_CONFIGURATION,
41 STATUS_INVALID_VIDEO_CONFIGURATION,
42 STATUS_GPU_ACCELERATION_NOT_SUPPORTED,
43 STATUS_GPU_ACCELERATION_ERROR,
44 };
45
32 enum DefaultSettings { 46 enum DefaultSettings {
33 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR. 47 kDefaultAudioEncoderBitrate = 0, // This means "auto," and may mean VBR.
34 kDefaultAudioSamplingRate = 48000, 48 kDefaultAudioSamplingRate = 48000,
35 kDefaultMaxQp = 56, 49 kDefaultMaxQp = 56,
36 kDefaultMinQp = 4, 50 kDefaultMinQp = 4,
37 kDefaultMaxFrameRate = 30, 51 kDefaultMaxFrameRate = 30,
38 kDefaultNumberOfVideoBuffers = 1, 52 kDefaultNumberOfVideoBuffers = 1,
39 kDefaultRtcpIntervalMs = 500, 53 kDefaultRtcpIntervalMs = 500,
40 kDefaultRtpHistoryMs = 1000, 54 kDefaultRtpHistoryMs = 1000,
41 kDefaultRtpMaxDelayMs = 100, 55 kDefaultRtpMaxDelayMs = 100,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::TimeTicks zero_time; 169 base::TimeTicks zero_time;
156 base::TimeDelta recorded_delta = time_ticks - zero_time; 170 base::TimeDelta recorded_delta = time_ticks - zero_time;
157 // Timestamp is in 90 KHz for video. 171 // Timestamp is in 90 KHz for video.
158 return static_cast<uint32>(recorded_delta.InMilliseconds() * 90); 172 return static_cast<uint32>(recorded_delta.InMilliseconds() * 90);
159 } 173 }
160 174
161 } // namespace cast 175 } // namespace cast
162 } // namespace media 176 } // namespace media
163 177
164 #endif // MEDIA_CAST_CAST_DEFINES_H_ 178 #endif // MEDIA_CAST_CAST_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/cast_config.h ('k') | media/cast/cast_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698