Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: media/video/capture/video_capture_device.h

Issue 24079003: Add VideoCaptureDevice::GetDeviceSupportedFormats to interface + implementation for Linux and Fake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/video/capture/mac/video_capture_device_mac.mm ('k') | media/video/capture/video_capture_device_dummy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698