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

Unified Diff: services/video_capture/public/interfaces/video_capture_device_descriptor.mojom

Issue 2457003002: [Mojo Video Capture] Simplify API and some cleanups (Closed)
Patch Set: Created 4 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: services/video_capture/public/interfaces/video_capture_device_descriptor.mojom
diff --git a/services/video_capture/public/interfaces/video_capture_device_descriptor.mojom b/services/video_capture/public/interfaces/video_capture_device_descriptor.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..f27c70ef03fae899844b494762ed2ae2415bf61b
--- /dev/null
+++ b/services/video_capture/public/interfaces/video_capture_device_descriptor.mojom
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module video_capture.mojom;
+
+enum VideoCaptureApi {
+ LINUX_V4L2_SINGLE_PLANE,
+ WIN_MEDIA_FOUNDATION,
+ WIN_DIRECT_SHOW,
+ MACOSX_AVFOUNDATION,
+ MACOSX_DECKLINK,
+ ANDROID_API1,
+ ANDROID_API2_LEGACY,
+ ANDROID_API2_FULL,
+ ANDROID_API2_LIMITED,
+ ANDROID_TANGO,
+ UNKNOWN
+};
+
+enum VideoCaptureTransportType {
+ // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB.
+ MACOSX_USB_OR_BUILT_IN,
+ OTHER_TRANSPORT
+};
+
+struct VideoCaptureDeviceDescriptor {
+ string display_name;
+ string device_id;
+ string model_id;
+ VideoCaptureApi capture_api;
+ VideoCaptureTransportType transport_type;
+};

Powered by Google App Engine
This is Rietveld 408576698