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