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 import "services/video_capture/public/interfaces/video_capture_format.mojom"; | 7 import "media/capture/mojo/video_capture_types.mojom"; |
8 import "services/video_capture/public/interfaces/video_frame_receiver.mojom"; | 8 import "services/video_capture/public/interfaces/video_frame_receiver.mojom"; |
9 | 9 |
10 enum ResolutionChangePolicy { | |
11 FIXED_RESOLUTION, | |
12 FIXED_ASPECT_RATIO, | |
13 ANY_WITHIN_LIMIT, | |
14 }; | |
15 | |
16 enum PowerLineFrequency { | |
17 DEFAULT, | |
18 HZ_50, | |
19 HZ_60 | |
20 }; | |
21 | |
22 // Represents access to a video capture device available on the machine. | 10 // Represents access to a video capture device available on the machine. |
23 // Note: Instead of offering an explicit Stop() method, the device | 11 // Note: Instead of offering an explicit Stop() method, the device |
24 // is stopped automatically when the corresponding message pipe is closed. | 12 // is stopped automatically when the corresponding message pipe is closed. |
25 interface VideoCaptureDeviceProxy { | 13 interface VideoCaptureDeviceProxy { |
26 Start(VideoCaptureFormat requested_format, | 14 Start(media.mojom.VideoCaptureFormat requested_format, |
27 ResolutionChangePolicy resolution_change_policy, | 15 media.mojom.ResolutionChangePolicy resolution_change_policy, |
28 PowerLineFrequency power_line_frequency, | 16 media.mojom.PowerLineFrequency power_line_frequency, |
29 VideoFrameReceiver receiver); | 17 VideoFrameReceiver receiver); |
30 }; | 18 }; |
OLD | NEW |