Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: device/video/video_capture_device.mojom

Issue 2155303002: Video Capture Mojo Component: Skeleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed mcasas' comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..e03cd4841e6e46f74ca6e309c3338bbe162f9742
--- /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 {
+ FIXED_RESOLUTION,
+ FIXED_ASPECT_RATIO,
+ ANY_WITHIN_LIMIT,
+};
+
+enum PowerLineFrequency {
+ FREQUENCY_DEFAULT,
+ FREQUENCY_50HZ,
+ 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
+};
+
+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
+ VideoCaptureFormat requested_format;
+ ResolutionChangePolicy resolution_change_policy;
+ PowerLineFrequency power_line_frequency;
+};
+
+interface VideoCaptureDevice {
+ 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.
+ VideoCaptureDeviceClient client);
+ 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
+};

Powered by Google App Engine
This is Rietveld 408576698