| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 module video_capture.mojom; | 5 module video_capture.mojom; |
| 6 | 6 |
| 7 enum VideoCaptureApi { | 7 enum VideoCaptureApi { |
| 8 LINUX_V4L2_SINGLE_PLANE, | 8 LINUX_V4L2_SINGLE_PLANE, |
| 9 WIN_MEDIA_FOUNDATION, | 9 WIN_MEDIA_FOUNDATION, |
| 10 WIN_DIRECT_SHOW, | 10 WIN_DIRECT_SHOW, |
| 11 MACOSX_AVFOUNDATION, | 11 MACOSX_AVFOUNDATION, |
| 12 MACOSX_DECKLINK, | 12 MACOSX_DECKLINK, |
| 13 ANDROID_API1, | 13 ANDROID_API1, |
| 14 ANDROID_API2_LEGACY, | 14 ANDROID_API2_LEGACY, |
| 15 ANDROID_API2_FULL, | 15 ANDROID_API2_FULL, |
| 16 ANDROID_API2_LIMITED, | 16 ANDROID_API2_LIMITED, |
| 17 ANDROID_TANGO, | 17 ANDROID_TANGO, |
| 18 UNKNOWN | 18 UNKNOWN |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 enum VideoCaptureTransportType { | 21 enum VideoCaptureTransportType { |
| 22 // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB. | 22 // For MACOSX_AVFOUNDATION Api, identifies devices that are built-in or USB. |
| 23 MACOSX_USB_OR_BUILT_IN, | 23 MACOSX_USB_OR_BUILT_IN, |
| 24 OTHER_TRANSPORT | 24 OTHER_TRANSPORT |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 struct VideoCaptureDeviceDescriptor { | 27 struct DeviceDescriptor { |
| 28 string display_name; | 28 string display_name; |
| 29 string device_id; | 29 string device_id; |
| 30 string model_id; | 30 string model_id; |
| 31 VideoCaptureApi capture_api; | 31 VideoCaptureApi capture_api; |
| 32 VideoCaptureTransportType transport_type; | 32 VideoCaptureTransportType transport_type; |
| 33 }; | 33 }; |
| OLD | NEW |