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 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 9 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
10 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 10 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 typedef std::map<int /* buffer_id */, DIBBuffer*> CachedDIB; | 91 typedef std::map<int /* buffer_id */, DIBBuffer*> CachedDIB; |
92 CachedDIB cached_dibs_; | 92 CachedDIB cached_dibs_; |
93 | 93 |
94 typedef std::map<media::VideoCapture::EventHandler*, | 94 typedef std::map<media::VideoCapture::EventHandler*, |
95 media::VideoCaptureCapability> ClientInfo; | 95 media::VideoCaptureCapability> ClientInfo; |
96 ClientInfo clients_; | 96 ClientInfo clients_; |
97 | 97 |
98 ClientInfo clients_pending_on_filter_; | 98 ClientInfo clients_pending_on_filter_; |
99 ClientInfo clients_pending_on_restart_; | 99 ClientInfo clients_pending_on_restart_; |
100 | 100 |
101 media::VideoFrame::Format video_type_; | 101 media::VideoCaptureCapability::Format video_type_; |
102 | 102 |
103 // The parameter is being used in current capture session. A capture session | 103 // The parameter is being used in current capture session. A capture session |
104 // starts with StartCapture and ends with StopCapture. | 104 // starts with StartCapture and ends with StopCapture. |
105 media::VideoCaptureParams current_params_; | 105 media::VideoCaptureParams current_params_; |
106 | 106 |
107 // The information about the device sent from browser process side. | 107 // The information about the device sent from browser process side. |
108 media::VideoCaptureParams device_info_; | 108 media::VideoCaptureParams device_info_; |
109 bool device_info_available_; | 109 bool device_info_available_; |
110 | 110 |
111 video_capture::State state_; | 111 video_capture::State state_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); | 113 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); |
114 }; | 114 }; |
115 | 115 |
116 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ | 116 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ |
OLD | NEW |