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/video_capture/video_capture_factory.h" | 17 #include "webrtc/modules/video_capture/video_capture_factory.h" |
18 #include "webrtc/modules/video_processing/include/video_processing.h" | 18 #include "webrtc/modules/video_processing/include/video_processing.h" |
19 #include "webrtc/modules/video_render/video_render_defines.h" | |
20 #include "webrtc/video/overuse_frame_detector.h" | 19 #include "webrtc/video/overuse_frame_detector.h" |
21 #include "webrtc/video/send_statistics_proxy.h" | 20 #include "webrtc/video/send_statistics_proxy.h" |
22 #include "webrtc/video/vie_encoder.h" | 21 #include "webrtc/video/vie_encoder.h" |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 | 24 |
26 namespace internal { | 25 namespace internal { |
27 VideoCaptureInput::VideoCaptureInput( | 26 VideoCaptureInput::VideoCaptureInput( |
28 rtc::Event* capture_event, | 27 rtc::Event* capture_event, |
29 rtc::VideoSinkInterface<VideoFrame>* local_renderer, | 28 rtc::VideoSinkInterface<VideoFrame>* local_renderer, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 if (!captured_frame_) | 100 if (!captured_frame_) |
102 return false; | 101 return false; |
103 | 102 |
104 *video_frame = *captured_frame_; | 103 *video_frame = *captured_frame_; |
105 captured_frame_.reset(); | 104 captured_frame_.reset(); |
106 return true; | 105 return true; |
107 } | 106 } |
108 | 107 |
109 } // namespace internal | 108 } // namespace internal |
110 } // namespace webrtc | 109 } // namespace webrtc |
OLD | NEW |