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

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

Issue 532373003: [Cast] RTT clean-up to the max! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 14 matching lines...) Expand all
25 const uint32 kStartFrameId = UINT32_C(0xffffffff); 25 const uint32 kStartFrameId = UINT32_C(0xffffffff);
26 26
27 // This is an important system-wide constant. This limits how much history the 27 // This is an important system-wide constant. This limits how much history the
28 // implementation must retain in order to process the acknowledgements of past 28 // implementation must retain in order to process the acknowledgements of past
29 // frames. 29 // frames.
30 // This value is carefully choosen such that it fits in the 8-bits range for 30 // This value is carefully choosen such that it fits in the 8-bits range for
31 // frame IDs. It is also less than half of the full 8-bits range such that we 31 // frame IDs. It is also less than half of the full 8-bits range such that we
32 // can handle wrap around and compare two frame IDs. 32 // can handle wrap around and compare two frame IDs.
33 const int kMaxUnackedFrames = 120; 33 const int kMaxUnackedFrames = 120;
34 34
35 const int kStartRttMs = 20;
36 const int64 kCastMessageUpdateIntervalMs = 33; 35 const int64 kCastMessageUpdateIntervalMs = 33;
37 const int64 kNackRepeatIntervalMs = 30; 36 const int64 kNackRepeatIntervalMs = 30;
38 37
39 enum CastInitializationStatus { 38 enum CastInitializationStatus {
40 STATUS_AUDIO_UNINITIALIZED, 39 STATUS_AUDIO_UNINITIALIZED,
41 STATUS_VIDEO_UNINITIALIZED, 40 STATUS_VIDEO_UNINITIALIZED,
42 STATUS_AUDIO_INITIALIZED, 41 STATUS_AUDIO_INITIALIZED,
43 STATUS_VIDEO_INITIALIZED, 42 STATUS_VIDEO_INITIALIZED,
44 STATUS_INVALID_CAST_ENVIRONMENT, 43 STATUS_INVALID_CAST_ENVIRONMENT,
45 STATUS_INVALID_CRYPTO_CONFIGURATION, 44 STATUS_INVALID_CRYPTO_CONFIGURATION,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 196
198 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) { 197 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) {
199 DCHECK_GT(rtp_timebase, 0); 198 DCHECK_GT(rtp_timebase, 0);
200 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1); 199 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1);
201 } 200 }
202 201
203 } // namespace cast 202 } // namespace cast
204 } // namespace media 203 } // namespace media
205 204
206 #endif // MEDIA_CAST_CAST_DEFINES_H_ 205 #endif // MEDIA_CAST_CAST_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698