| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/process.h" |
| 25 #include "base/synchronization/lock.h" | 25 #include "base/synchronization/lock.h" |
| 26 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" | 26 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" |
| 27 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 27 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
| 28 #include "content/common/content_export.h" | 28 #include "content/common/content_export.h" |
| 29 #include "content/common/media/video_capture.h" | 29 #include "content/common/media/video_capture.h" |
| 30 #include "media/video/capture/video_capture.h" | 30 #include "media/video/capture/video_capture.h" |
| 31 #include "media/video/capture/video_capture_device.h" | 31 #include "media/video/capture/video_capture_device.h" |
| 32 #include "media/video/capture/video_capture_types.h" | 32 #include "media/video/capture/video_capture_types.h" |
| 33 | 33 |
| 34 namespace content { | 34 namespace content { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 bool device_in_use_; | 156 bool device_in_use_; |
| 157 VideoCaptureState state_; | 157 VideoCaptureState state_; |
| 158 | 158 |
| 159 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureController); | 159 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureController); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // namespace content | 162 } // namespace content |
| 163 | 163 |
| 164 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 164 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
| OLD | NEW |