| 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 |
| 11 #include "webrtc/video/video_capture_input.h" | 11 #include "webrtc/video/video_capture_input.h" |
| 12 | 12 |
| 13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
| 14 #include "webrtc/base/logging.h" | 14 #include "webrtc/base/logging.h" |
| 15 #include "webrtc/base/trace_event.h" | 15 #include "webrtc/base/trace_event.h" |
| 16 #include "webrtc/modules/include/module_common_types.h" | 16 #include "webrtc/modules/include/module_common_types.h" |
| 17 #include "webrtc/modules/utility/include/process_thread.h" | 17 #include "webrtc/modules/utility/include/process_thread.h" |
| 18 #include "webrtc/modules/video_capture/video_capture_factory.h" | 18 #include "webrtc/modules/video_capture/video_capture_factory.h" |
| 19 #include "webrtc/modules/video_processing/include/video_processing.h" | 19 #include "webrtc/modules/video_processing/include/video_processing.h" |
| 20 #include "webrtc/modules/video_render/video_render_defines.h" | 20 #include "webrtc/modules/video_render/video_render_defines.h" |
| 21 #include "webrtc/system_wrappers/include/clock.h" | 21 #include "webrtc/system_wrappers/include/clock.h" |
| 22 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 22 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
| 23 #include "webrtc/system_wrappers/include/event_wrapper.h" | 23 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 24 #include "webrtc/system_wrappers/include/tick_util.h" | 24 #include "webrtc/system_wrappers/include/tick_util.h" |
| 25 #include "webrtc/video/overuse_frame_detector.h" | |
| 26 #include "webrtc/video/send_statistics_proxy.h" | 25 #include "webrtc/video/send_statistics_proxy.h" |
| 27 #include "webrtc/video/vie_encoder.h" | 26 #include "webrtc/video_engine/overuse_frame_detector.h" |
| 27 #include "webrtc/video_engine/vie_encoder.h" |
| 28 | 28 |
| 29 namespace webrtc { | 29 namespace webrtc { |
| 30 | 30 |
| 31 namespace internal { | 31 namespace internal { |
| 32 VideoCaptureInput::VideoCaptureInput( | 32 VideoCaptureInput::VideoCaptureInput( |
| 33 ProcessThread* module_process_thread, | 33 ProcessThread* module_process_thread, |
| 34 VideoCaptureCallback* frame_callback, | 34 VideoCaptureCallback* frame_callback, |
| 35 VideoRenderer* local_renderer, | 35 VideoRenderer* local_renderer, |
| 36 SendStatisticsProxy* stats_proxy, | 36 SendStatisticsProxy* stats_proxy, |
| 37 CpuOveruseObserver* overuse_observer, | 37 CpuOveruseObserver* overuse_observer, |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 // We're done! | 159 // We're done! |
| 160 if (capture_time != -1) { | 160 if (capture_time != -1) { |
| 161 overuse_detector_->FrameSent(capture_time); | 161 overuse_detector_->FrameSent(capture_time); |
| 162 } | 162 } |
| 163 return true; | 163 return true; |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace internal | 166 } // namespace internal |
| 167 } // namespace webrtc | 167 } // namespace webrtc |
| OLD | NEW |