OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/video_coding/main/source/inter_frame_delay.h" | 11 #include "webrtc/modules/video_coding/inter_frame_delay.h" |
12 | 12 |
13 namespace webrtc { | 13 namespace webrtc { |
14 | 14 |
15 VCMInterFrameDelay::VCMInterFrameDelay(int64_t currentWallClock) | 15 VCMInterFrameDelay::VCMInterFrameDelay(int64_t currentWallClock) |
16 { | 16 { |
17 Reset(currentWallClock); | 17 Reset(currentWallClock); |
18 } | 18 } |
19 | 19 |
20 // Resets the delay estimate | 20 // Resets the delay estimate |
21 void | 21 void |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // This difference will probably be less than -2^31 if we have had a backwar
d wrap around. | 105 // This difference will probably be less than -2^31 if we have had a backwar
d wrap around. |
106 // Since it is cast to a Word32, it should be positive. | 106 // Since it is cast to a Word32, it should be positive. |
107 else if (static_cast<int32_t>(_prevTimestamp - timestamp) > 0) | 107 else if (static_cast<int32_t>(_prevTimestamp - timestamp) > 0) |
108 { | 108 { |
109 // Backward wrap around | 109 // Backward wrap around |
110 _wrapArounds--; | 110 _wrapArounds--; |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 } | 114 } |
OLD | NEW |