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

Unified 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: perkj@'s nits Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/video_capture_device.h
diff --git a/media/video/capture/video_capture_device.h b/media/video/capture/video_capture_device.h
index d00714dafb3b39f98605bd4bb233cb297e89d732..c10a3aefca076ae9fa9da255b928ea44e86567e5 100644
--- a/media/video/capture/video_capture_device.h
+++ b/media/video/capture/video_capture_device.h
@@ -190,6 +190,13 @@ class MEDIA_EXPORT VideoCaptureDevice {
// Gets the names of all video capture devices connected to this computer.
static void GetDeviceNames(Names* device_names);
+ // Gets the capabilities of a particular device attached to the system. This
+ // method should be called before allocating or starting a device. In case
+ // format enumeration is not supported, or there was a problem, the formats
+ // array will be empty.
+ static void GetDeviceSupportedFormats(const Name& device,
+ VideoCaptureCapabilities* formats);
+
// Prepare the camera for use. After this function has been called no other
// applications can use the camera. On completion Client::OnFrameInfo()
// is called informing of the resulting resolution and frame rate.
« no previous file with comments | « media/video/capture/mac/video_capture_device_mac.mm ('k') | media/video/capture/video_capture_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698