| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "webrtc/system_wrappers/include/clock.h" | 33 #include "webrtc/system_wrappers/include/clock.h" |
| 34 | 34 |
| 35 namespace webrtc { | 35 namespace webrtc { |
| 36 | 36 |
| 37 class VideoBitrateAllocator; | 37 class VideoBitrateAllocator; |
| 38 | 38 |
| 39 namespace vcm { | 39 namespace vcm { |
| 40 | 40 |
| 41 class VCMProcessTimer { | 41 class VCMProcessTimer { |
| 42 public: | 42 public: |
| 43 static const int64_t kDefaultProcessIntervalMs = 1000; |
| 44 |
| 43 VCMProcessTimer(int64_t periodMs, Clock* clock) | 45 VCMProcessTimer(int64_t periodMs, Clock* clock) |
| 44 : _clock(clock), | 46 : _clock(clock), |
| 45 _periodMs(periodMs), | 47 _periodMs(periodMs), |
| 46 _latestMs(_clock->TimeInMilliseconds()) {} | 48 _latestMs(_clock->TimeInMilliseconds()) {} |
| 47 int64_t Period() const; | 49 int64_t Period() const; |
| 48 int64_t TimeUntilProcess() const; | 50 int64_t TimeUntilProcess() const; |
| 49 void Processed(); | 51 void Processed(); |
| 50 | 52 |
| 51 private: | 53 private: |
| 52 Clock* _clock; | 54 Clock* _clock; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 VCMProcessTimer _receiveStatsTimer; | 217 VCMProcessTimer _receiveStatsTimer; |
| 216 VCMProcessTimer _retransmissionTimer; | 218 VCMProcessTimer _retransmissionTimer; |
| 217 VCMProcessTimer _keyRequestTimer; | 219 VCMProcessTimer _keyRequestTimer; |
| 218 QpParser qp_parser_; | 220 QpParser qp_parser_; |
| 219 ThreadUnsafeOneTimeEvent first_frame_received_; | 221 ThreadUnsafeOneTimeEvent first_frame_received_; |
| 220 }; | 222 }; |
| 221 | 223 |
| 222 } // namespace vcm | 224 } // namespace vcm |
| 223 } // namespace webrtc | 225 } // namespace webrtc |
| 224 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ | 226 #endif // WEBRTC_MODULES_VIDEO_CODING_VIDEO_CODING_IMPL_H_ |
| OLD | NEW |