| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module video_capture.mojom; | |
| 6 | |
| 7 enum VideoCaptureApi { | |
| 8 LINUX_V4L2_SINGLE_PLANE, | |
| 9 WIN_MEDIA_FOUNDATION, | |
| 10 WIN_DIRECT_SHOW, | |
| 11 MACOSX_AVFOUNDATION, | |
| 12 MACOSX_DECKLINK, | |
| 13 ANDROID_API1, | |
| 14 ANDROID_API2_LEGACY, | |
| 15 ANDROID_API2_FULL, | |
| 16 ANDROID_API2_LIMITED, | |
| 17 ANDROID_TANGO, | |
| 18 UNKNOWN | |
| 19 }; | |
| 20 | |
| 21 enum VideoCaptureTransportType { | |
| 22 // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB. | |
| 23 MACOSX_USB_OR_BUILT_IN, | |
| 24 OTHER_TRANSPORT | |
| 25 }; | |
| 26 | |
| 27 struct VideoCaptureDeviceDescriptor { | |
| 28 string display_name; | |
| 29 string device_id; | |
| 30 string model_id; | |
| 31 VideoCaptureApi capture_api; | |
| 32 VideoCaptureTransportType transport_type; | |
| 33 }; | |
| OLD | NEW |