Chromium Code Reviews| 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. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 int chopped_height_; | 149 int chopped_height_; |
| 150 | 150 |
| 151 // It's accessed only on IO thread. | 151 // It's accessed only on IO thread. |
| 152 bool frame_info_available_; | 152 bool frame_info_available_; |
| 153 | 153 |
| 154 VideoCaptureManager* video_capture_manager_; | 154 VideoCaptureManager* video_capture_manager_; |
| 155 | 155 |
| 156 bool device_in_use_; | 156 bool device_in_use_; |
| 157 VideoCaptureState state_; | 157 VideoCaptureState state_; |
| 158 | 158 |
| 159 // For NV21 we have to do color conversion into the intermediate buffer and | |
| 160 // from there the rotations. | |
| 161 scoped_ptr<uint8[]> i420_intermediate_buffer_; | |
|
bulach
2013/09/11 14:59:07
nit: shouldn't this be a scoped_array instead?
or
ncarter (slow)
2013/09/11 20:07:23
FWIW This looks fine to me. scoped_array doesn't e
| |
| 162 | |
| 159 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureController); | 163 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureController); |
| 160 }; | 164 }; |
| 161 | 165 |
| 162 } // namespace content | 166 } // namespace content |
| 163 | 167 |
| 164 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ | 168 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_H_ |
| OLD | NEW |