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 // VideoCaptureImpl represents a capture device in renderer process. It provides | 5 // VideoCaptureImpl represents a capture device in renderer process. It provides |
6 // interfaces for clients to Start/Stop capture. It also communicates to clients | 6 // interfaces for clients to Start/Stop capture. It also communicates to clients |
7 // when buffer is ready, state of capture device is changed. | 7 // when buffer is ready, state of capture device is changed. |
8 | 8 |
9 // VideoCaptureImpl is also a delegate of VideoCaptureMessageFilter which | 9 // VideoCaptureImpl is also a delegate of VideoCaptureMessageFilter which |
10 // relays operation of capture device to browser process and receives response | 10 // relays operation of capture device to browser process and receives response |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 // Pool of DIBs. The key is buffer_id. | 128 // Pool of DIBs. The key is buffer_id. |
129 typedef std::map<int, DIBBuffer*> CachedDIB; | 129 typedef std::map<int, DIBBuffer*> CachedDIB; |
130 CachedDIB cached_dibs_; | 130 CachedDIB cached_dibs_; |
131 | 131 |
132 ClientInfo clients_; | 132 ClientInfo clients_; |
133 | 133 |
134 ClientInfo clients_pending_on_filter_; | 134 ClientInfo clients_pending_on_filter_; |
135 ClientInfo clients_pending_on_restart_; | 135 ClientInfo clients_pending_on_restart_; |
136 | 136 |
137 media::VideoCaptureCapability::Format video_type_; | 137 media::VideoPixelFormat video_type_; |
138 | 138 |
139 // Member capture_format_ represents the video format requested by the client | 139 // Member capture_format_ represents the video format requested by the client |
140 // to this class via DoStartCaptureOnCaptureThread. | 140 // to this class via DoStartCaptureOnCaptureThread. |
141 media::VideoCaptureCapability capture_format_; | 141 media::VideoCaptureCapability capture_format_; |
142 | 142 |
143 // The device's video capture format sent from browser process side. | 143 // The device's video capture format sent from browser process side. |
144 media::VideoCaptureParams device_info_; | 144 media::VideoCaptureParams device_info_; |
145 bool device_info_available_; | 145 bool device_info_available_; |
146 | 146 |
147 bool suspended_; | 147 bool suspended_; |
148 VideoCaptureState state_; | 148 VideoCaptureState state_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 150 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
151 }; | 151 }; |
152 | 152 |
153 } // namespace content | 153 } // namespace content |
154 | 154 |
155 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 155 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
OLD | NEW |