| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 uint64_t picture_id_rpsi_ ACCESS_ON(&encoder_queue_); | 146 uint64_t picture_id_rpsi_ ACCESS_ON(&encoder_queue_); |
| 147 Clock* const clock_; | 147 Clock* const clock_; |
| 148 | 148 |
| 149 rtc::RaceChecker incoming_frame_race_checker_; | 149 rtc::RaceChecker incoming_frame_race_checker_; |
| 150 Atomic32 posted_frames_waiting_for_encode_; | 150 Atomic32 posted_frames_waiting_for_encode_; |
| 151 // Used to make sure incoming time stamp is increasing for every frame. | 151 // Used to make sure incoming time stamp is increasing for every frame. |
| 152 int64_t last_captured_timestamp_ GUARDED_BY(incoming_frame_race_checker_); | 152 int64_t last_captured_timestamp_ GUARDED_BY(incoming_frame_race_checker_); |
| 153 // Delta used for translating between NTP and internal timestamps. | 153 // Delta used for translating between NTP and internal timestamps. |
| 154 const int64_t delta_ntp_internal_ms_; | 154 const int64_t delta_ntp_internal_ms_; |
| 155 | 155 |
| 156 int64_t last_frame_log_ms_ GUARDED_BY(incoming_frame_race_checker_); |
| 157 int captured_frame_count_ ACCESS_ON(&encoder_queue_); |
| 158 int dropped_frame_count_ ACCESS_ON(&encoder_queue_); |
| 159 |
| 156 // All public methods are proxied to |encoder_queue_|. It must must be | 160 // All public methods are proxied to |encoder_queue_|. It must must be |
| 157 // destroyed first to make sure no tasks are run that use other members. | 161 // destroyed first to make sure no tasks are run that use other members. |
| 158 rtc::TaskQueue encoder_queue_; | 162 rtc::TaskQueue encoder_queue_; |
| 159 }; | 163 }; |
| 160 | 164 |
| 161 } // namespace webrtc | 165 } // namespace webrtc |
| 162 | 166 |
| 163 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ | 167 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ |
| OLD | NEW |