OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // VideoCaptureController is the glue between VideoCaptureHost, | 5 // VideoCaptureController is the glue between VideoCaptureHost, |
6 // VideoCaptureManager and VideoCaptureDevice. | 6 // VideoCaptureManager and VideoCaptureDevice. |
7 // It provides functions for VideoCaptureHost to start a VideoCaptureDevice and | 7 // It provides functions for VideoCaptureHost to start a VideoCaptureDevice and |
8 // is responsible for keeping track of shared DIBs and filling them with I420 | 8 // is responsible for keeping track of shared DIBs and filling them with I420 |
9 // video frames for IPC communication between VideoCaptureHost and | 9 // video frames for IPC communication between VideoCaptureHost and |
10 // VideoCaptureMessageFilter. | 10 // VideoCaptureMessageFilter. |
11 // It implements media::VideoCaptureDevice::EventHandler to get video frames | 11 // It implements media::VideoCaptureDevice::EventHandler to get video frames |
12 // from a VideoCaptureDevice object and do color conversion straight into the | 12 // from a VideoCaptureDevice object and do color conversion straight into the |
13 // shared DIBs to avoid a memory copy. | 13 // shared DIBs to avoid a memory copy. |
14 // It serves multiple VideoCaptureControllerEventHandlers. | 14 // It serves multiple VideoCaptureControllerEventHandlers. |
15 | 15 |
16 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 16 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
17 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 17 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
18 | 18 |
19 #include <list> | 19 #include <list> |
20 #include <map> | 20 #include <map> |
21 | 21 |
22 #include "base/compiler_specific.h" | 22 #include "base/compiler_specific.h" |
23 #include "base/memory/ref_counted.h" | 23 #include "base/memory/ref_counted.h" |
24 #include "base/process.h" | 24 #include "base/process.h" |
25 #include "base/synchronization/lock.h" | 25 #include "base/synchronization/lock.h" |
26 #include "base/task.h" | |
27 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 26 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
28 #include "content/common/media/video_capture.h" | 27 #include "content/common/media/video_capture.h" |
29 #include "media/video/capture/video_capture.h" | 28 #include "media/video/capture/video_capture.h" |
30 #include "media/video/capture/video_capture_device.h" | 29 #include "media/video/capture/video_capture_device.h" |
31 #include "media/video/capture/video_capture_types.h" | 30 #include "media/video/capture/video_capture_types.h" |
32 | 31 |
33 namespace media_stream { | 32 namespace media_stream { |
34 class VideoCaptureManager; | 33 class VideoCaptureManager; |
35 } // namespace media_stream | 34 } // namespace media_stream |
36 | 35 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 130 |
132 media_stream::VideoCaptureManager* video_capture_manager_; | 131 media_stream::VideoCaptureManager* video_capture_manager_; |
133 | 132 |
134 bool device_in_use_; | 133 bool device_in_use_; |
135 video_capture::State state_; | 134 video_capture::State state_; |
136 | 135 |
137 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureController); | 136 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureController); |
138 }; | 137 }; |
139 | 138 |
140 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 139 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
OLD | NEW |