| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |