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 device.mojom; | |
6 | |
7 import "device/video/video_capture_device_client.mojom"; | |
8 import "device/video/video_capture_format.mojom"; | |
9 | |
10 enum ResolutionChangePolicy { | |
11 RESOLUTION_POLICY_FIXED_RESOLUTION, | |
12 RESOLUTION_POLICY_FIXED_ASPECT_RATIO, | |
mcasas
2016/08/02 18:59:32
Mojo will generate enum class for VideoPixelStorag
chfremer
2016/08/02 20:30:25
Done.
| |
13 RESOLUTION_POLICY_ANY_WITHIN_LIMIT, | |
14 }; | |
15 | |
16 enum PowerLineFrequency { | |
17 FREQUENCY_DEFAULT, | |
18 FREQUENCY_50HZ, | |
19 FREQUENCY_60HZ | |
20 }; | |
21 | |
22 struct VideoCaptureParams { | |
23 VideoCaptureFormat requested_format; | |
24 ResolutionChangePolicy resolution_change_policy; | |
25 PowerLineFrequency power_line_frequency; | |
26 }; | |
27 | |
28 interface VideoCaptureDevice { | |
29 AllocateAndStart(VideoCaptureParams requested_config, | |
30 VideoCaptureDeviceClient client); | |
31 StopAndDeAllocate(); | |
32 }; | |
OLD | NEW |