Chromium Code Reviews| Index: device/video/video_capture_device.mojom |
| diff --git a/device/video/video_capture_device.mojom b/device/video/video_capture_device.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..82db4a63f78042c464708accad89076c6ac3f2f9 |
| --- /dev/null |
| +++ b/device/video/video_capture_device.mojom |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +module device.mojom; |
| + |
| +import "device/video/video_capture_device_client.mojom"; |
| +import "device/video/video_capture_format.mojom"; |
| + |
| +enum ResolutionChangePolicy { |
| + RESOLUTION_POLICY_FIXED_RESOLUTION, |
| + 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.
|
| + RESOLUTION_POLICY_ANY_WITHIN_LIMIT, |
| +}; |
| + |
| +enum PowerLineFrequency { |
| + FREQUENCY_DEFAULT, |
| + FREQUENCY_50HZ, |
| + FREQUENCY_60HZ |
| +}; |
| + |
| +struct VideoCaptureParams { |
| + VideoCaptureFormat requested_format; |
| + ResolutionChangePolicy resolution_change_policy; |
| + PowerLineFrequency power_line_frequency; |
| +}; |
| + |
| +interface VideoCaptureDevice { |
| + AllocateAndStart(VideoCaptureParams requested_config, |
| + VideoCaptureDeviceClient client); |
| + StopAndDeAllocate(); |
| +}; |