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 // VideoCaptureDevice is the abstract base class for realizing video capture | 5 // VideoCaptureDevice is the abstract base class for realizing video capture |
6 // device support in Chromium. It provides the interface for OS dependent | 6 // device support in Chromium. It provides the interface for OS dependent |
7 // implementations. | 7 // implementations. |
8 // The class is created and functions are invoked on a thread owned by | 8 // The class is created and functions are invoked on a thread owned by |
9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS | 9 // VideoCaptureManager. Capturing is done on other threads, depending on the OS |
10 // specific implementation. | 10 // specific implementation. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 virtual void Stop() = 0; | 214 virtual void Stop() = 0; |
215 | 215 |
216 // Deallocates the camera. This means other applications can use it. After | 216 // Deallocates the camera. This means other applications can use it. After |
217 // this function has been called the capture device is reset to the state it | 217 // this function has been called the capture device is reset to the state it |
218 // was when created. After DeAllocate() is called, the VideoCaptureDevice is | 218 // was when created. After DeAllocate() is called, the VideoCaptureDevice is |
219 // not permitted to make any additional calls to its EventHandler. | 219 // not permitted to make any additional calls to its EventHandler. |
220 virtual void DeAllocate() = 0; | 220 virtual void DeAllocate() = 0; |
221 | 221 |
222 // Get the name of the capture device. | 222 // Get the name of the capture device. |
223 virtual const Name& device_name() = 0; | 223 virtual const Name& device_name() = 0; |
224 | |
225 // Gets the supported video capture formats, if operation is supported by the | |
226 // driver, for a particular video capture device identified by device_name. | |
scherkus (not reviewing)
2013/09/11 17:30:46
does this method need to be part of this interface
| |
227 virtual void GetDeviceSupportedFormats( | |
228 const std::string& device_name, | |
229 VideoCaptureFormats* capture_formats) = 0; | |
224 }; | 230 }; |
225 | 231 |
226 } // namespace media | 232 } // namespace media |
227 | 233 |
228 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ | 234 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_H_ |
OLD | NEW |