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 <cmath> | 10 #include <cmath> |
(...skipping 10 matching lines...) Expand all Loading... | |
21 namespace cast { | 21 namespace cast { |
22 | 22 |
23 const int64 kDontShowTimeoutMs = 33; | 23 const int64 kDontShowTimeoutMs = 33; |
24 const float kDefaultCongestionControlBackOff = 0.875f; | 24 const float kDefaultCongestionControlBackOff = 0.875f; |
25 const uint32 kVideoFrequency = 90000; | 25 const uint32 kVideoFrequency = 90000; |
26 const uint32 kStartFrameId = UINT32_C(0xffffffff); | 26 const uint32 kStartFrameId = UINT32_C(0xffffffff); |
27 | 27 |
28 // This is an important system-wide constant. This limits how much history the | 28 // This is an important system-wide constant. This limits how much history the |
29 // implementation must retain in order to process the acknowledgements of past | 29 // implementation must retain in order to process the acknowledgements of past |
30 // frames. | 30 // frames. |
31 // This value is carefully choosen such that it fits in the 8-bits range for | 31 // This value is carefully choosen such that it fits in the 8-bits range for |
ajose
2015/09/14 16:28:43
s/choosen/chosen/
| |
32 // frame IDs. It is also less than half of the full 8-bits range such that we | 32 // frame IDs. It is also less than half of the full 8-bits range such that we |
33 // can handle wrap around and compare two frame IDs. | 33 // can handle wrap around and compare two frame IDs. |
34 const int kMaxUnackedFrames = 120; | 34 const int kMaxUnackedFrames = 120; |
35 const int kMinUnackedFrequency = 8000; | |
IrfanGoogle
2015/09/14 17:52:32
Comment here
miu
2015/09/14 17:55:08
This is not the meaning of this value. See commen
msu.koo
2015/09/15 00:05:06
Done.
Thank you for your comments, this change is
| |
35 | 36 |
36 const int64 kCastMessageUpdateIntervalMs = 33; | 37 const int64 kCastMessageUpdateIntervalMs = 33; |
37 const int64 kNackRepeatIntervalMs = 30; | 38 const int64 kNackRepeatIntervalMs = 30; |
38 | 39 |
39 // Success/in-progress/failure status codes bubbled up to clients via | 40 // Success/in-progress/failure status codes bubbled up to clients via |
40 // StatusChangeCallbacks. | 41 // StatusChangeCallbacks. |
41 enum OperationalStatus { | 42 enum OperationalStatus { |
42 // Client should not send frames yet (sender), or should not expect to receive | 43 // Client should not send frames yet (sender), or should not expect to receive |
43 // frames yet (receiver). | 44 // frames yet (receiver). |
44 STATUS_UNINITIALIZED, | 45 STATUS_UNINITIALIZED, |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
212 | 213 |
213 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) { | 214 inline int64 TimeDeltaToRtpDelta(base::TimeDelta delta, int rtp_timebase) { |
214 DCHECK_GT(rtp_timebase, 0); | 215 DCHECK_GT(rtp_timebase, 0); |
215 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1); | 216 return delta * rtp_timebase / base::TimeDelta::FromSeconds(1); |
216 } | 217 } |
217 | 218 |
218 } // namespace cast | 219 } // namespace cast |
219 } // namespace media | 220 } // namespace media |
220 | 221 |
221 #endif // MEDIA_CAST_CAST_DEFINES_H_ | 222 #endif // MEDIA_CAST_CAST_DEFINES_H_ |
OLD | NEW |