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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 #include "base/compiler_specific.h" | 52 #include "base/compiler_specific.h" |
53 #include "base/memory/ref_counted.h" | 53 #include "base/memory/ref_counted.h" |
54 #include "base/memory/scoped_ptr.h" | 54 #include "base/memory/scoped_ptr.h" |
55 #include "base/memory/weak_ptr.h" | 55 #include "base/memory/weak_ptr.h" |
56 #include "base/process/process.h" | 56 #include "base/process/process.h" |
57 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" | 57 #include "content/browser/renderer_host/media/video_capture_buffer_pool.h" |
58 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" | 58 #include "content/browser/renderer_host/media/video_capture_controller_event_han
dler.h" |
59 #include "content/common/content_export.h" | 59 #include "content/common/content_export.h" |
60 #include "content/common/media/video_capture.h" | 60 #include "content/common/media/video_capture.h" |
| 61 #include "media/base/video_capture_types.h" |
61 #include "media/video/capture/video_capture_device.h" | 62 #include "media/video/capture/video_capture_device.h" |
62 #include "media/video/capture/video_capture_types.h" | |
63 | 63 |
64 namespace content { | 64 namespace content { |
65 class VideoCaptureBufferPool; | 65 class VideoCaptureBufferPool; |
66 | 66 |
67 class CONTENT_EXPORT VideoCaptureController { | 67 class CONTENT_EXPORT VideoCaptureController { |
68 public: | 68 public: |
69 // |max_buffers| is the maximum number of video frame buffers in-flight at any | 69 // |max_buffers| is the maximum number of video frame buffers in-flight at any |
70 // one time. This value should be based on the logical capacity of the | 70 // one time. This value should be based on the logical capacity of the |
71 // capture pipeline, and not on hardware performance. For example, tab | 71 // capture pipeline, and not on hardware performance. For example, tab |
72 // capture requires more buffers than webcam capture because the pipeline is | 72 // capture requires more buffers than webcam capture because the pipeline is |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 media::VideoCaptureFormat video_capture_format_; | 165 media::VideoCaptureFormat video_capture_format_; |
166 | 166 |
167 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; | 167 base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); | 169 DISALLOW_COPY_AND_ASSIGN(VideoCaptureController); |
170 }; | 170 }; |
171 | 171 |
172 } // namespace content | 172 } // namespace content |
173 | 173 |
174 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 174 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
OLD | NEW |