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 FIXED_RESOLUTION, | |
12 FIXED_ASPECT_RATIO, | |
13 ANY_WITHIN_LIMIT, | |
14 }; | |
15 | |
16 enum PowerLineFrequency { | |
17 FREQUENCY_DEFAULT, | |
18 FREQUENCY_50HZ, | |
19 FREQUENCY_60HZ | |
mcasas
2016/08/02 22:18:09
Same applies here: no need for FREQUENCY_
prefix
Ken Rockot(use gerrit already)
2016/08/02 22:46:25
Unfortunately "50HZ" isn't a valid symbol name eit
chfremer
2016/08/03 22:14:14
I am going with HZ_50, because I want to avoid usi
| |
20 }; | |
21 | |
22 struct VideoCaptureParams { | |
Ken Rockot(use gerrit already)
2016/08/02 22:46:25
There's little value in defining a struct here if
chfremer
2016/08/03 22:14:14
Good point. Initially I was planning to keep the i
| |
23 VideoCaptureFormat requested_format; | |
24 ResolutionChangePolicy resolution_change_policy; | |
25 PowerLineFrequency power_line_frequency; | |
26 }; | |
27 | |
28 interface VideoCaptureDevice { | |
29 AllocateAndStart(VideoCaptureParams requested_config, | |
Ken Rockot(use gerrit already)
2016/08/02 22:46:25
nit: Maybe "Allocate" is an unnecessary detail? Ju
chfremer
2016/08/03 22:14:14
Done.
| |
30 VideoCaptureDeviceClient client); | |
31 StopAndDeAllocate(); | |
Ken Rockot(use gerrit already)
2016/08/02 22:46:25
How about the impl just treats VideoCaptureDevice
chfremer
2016/08/03 22:14:14
Agreed, assuming that each VideoCaptureDevice inst
| |
32 }; | |
OLD | NEW |