Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: webrtc/video/vie_encoder.h

Issue 2298213002: Add periodic logging of number of captured and dropped frames in VideoCaptureInput. (Closed)
Patch Set: rebase, move logging from video_capture_input.cc to vie_encoder.cc Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/video/vie_encoder.cc » ('j') | webrtc/video/vie_encoder.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 uint64_t picture_id_rpsi_ ACCESS_ON(&encoder_queue_); 144 uint64_t picture_id_rpsi_ ACCESS_ON(&encoder_queue_);
145 Clock* const clock_; 145 Clock* const clock_;
146 146
147 rtc::RaceChecker incoming_frame_race_checker_; 147 rtc::RaceChecker incoming_frame_race_checker_;
148 Atomic32 posted_frames_waiting_for_encode_; 148 Atomic32 posted_frames_waiting_for_encode_;
149 // Used to make sure incoming time stamp is increasing for every frame. 149 // Used to make sure incoming time stamp is increasing for every frame.
150 int64_t last_captured_timestamp_ GUARDED_BY(incoming_frame_race_checker_); 150 int64_t last_captured_timestamp_ GUARDED_BY(incoming_frame_race_checker_);
151 // Delta used for translating between NTP and internal timestamps. 151 // Delta used for translating between NTP and internal timestamps.
152 const int64_t delta_ntp_internal_ms_; 152 const int64_t delta_ntp_internal_ms_;
153 153
154 int64_t last_frame_log_ms_ GUARDED_BY(incoming_frame_race_checker_);
155 int captured_frame_count_ ACCESS_ON(&encoder_queue_);
156 int dropped_frame_count_ ACCESS_ON(&encoder_queue_);
157
154 // All public methods are proxied to |encoder_queue_|. It must must be 158 // All public methods are proxied to |encoder_queue_|. It must must be
155 // destroyed first to make sure no tasks are run that use other members. 159 // destroyed first to make sure no tasks are run that use other members.
156 rtc::TaskQueue encoder_queue_; 160 rtc::TaskQueue encoder_queue_;
157 }; 161 };
158 162
159 } // namespace webrtc 163 } // namespace webrtc
160 164
161 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_ 165 #endif // WEBRTC_VIDEO_VIE_ENCODER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/video/vie_encoder.cc » ('j') | webrtc/video/vie_encoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698