| 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 a VideoCaptureDevice and all | 5 // VideoCaptureController is the glue between a VideoCaptureDevice and all |
| 6 // VideoCaptureHosts that have connected to it. A controller exists on behalf of | 6 // VideoCaptureHosts that have connected to it. A controller exists on behalf of |
| 7 // one (and only one) VideoCaptureDevice; both are owned by the | 7 // one (and only one) VideoCaptureDevice; both are owned by the |
| 8 // VideoCaptureManager. | 8 // VideoCaptureManager. |
| 9 // | 9 // |
| 10 // The VideoCaptureController is responsible for: | 10 // The VideoCaptureController is responsible for: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include <memory> | 44 #include <memory> |
| 45 | 45 |
| 46 #include "base/compiler_specific.h" | 46 #include "base/compiler_specific.h" |
| 47 #include "base/macros.h" | 47 #include "base/macros.h" |
| 48 #include "base/memory/ref_counted.h" | 48 #include "base/memory/ref_counted.h" |
| 49 #include "base/memory/weak_ptr.h" | 49 #include "base/memory/weak_ptr.h" |
| 50 #include "base/process/process.h" | 50 #include "base/process/process.h" |
| 51 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 51 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
| 52 #include "content/common/content_export.h" | 52 #include "content/common/content_export.h" |
| 53 #include "content/common/media/video_capture.h" | 53 #include "content/common/media/video_capture.h" |
| 54 #include "device/capture/video/video_capture_device.h" |
| 54 #include "media/base/video_capture_types.h" | 55 #include "media/base/video_capture_types.h" |
| 55 #include "media/capture/video/video_capture_device.h" | |
| 56 | 56 |
| 57 namespace content { | 57 namespace content { |
| 58 class VideoCaptureBufferPool; | 58 class VideoCaptureBufferPool; |
| 59 | 59 |
| 60 class CONTENT_EXPORT VideoCaptureController { | 60 class CONTENT_EXPORT VideoCaptureController { |
| 61 public: | 61 public: |
| 62 // |max_buffers| is the maximum number of video frame buffers in-flight at any | 62 // |max_buffers| is the maximum number of video frame buffers in-flight at any |
| 63 // one time. This value should be based on the logical capacity of the | 63 // one time. This value should be based on the logical capacity of the |
| 64 // capture pipeline, and not on hardware performance. For example, tab | 64 // capture pipeline, and not on hardware performance. For example, tab |
| 65 // capture requires more buffers than webcam capture because the pipeline is | 65 // capture requires more buffers than webcam capture because the pipeline is |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 media::VideoCaptureFormat video_capture_format_; | 167 media::VideoCaptureFormat video_capture_format_; |
| 168 | 168 |
| 169 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 169 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
| 170 | 170 |
| 171 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 171 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace content | 174 } // namespace content |
| 175 | 175 |
| 176 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 176 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
| OLD | NEW |