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

Unified Diff: mojo/services/camera/public/interfaces/camera.mojom

Issue 1375733004: -Add a mojo service to get video frames from the camera through an android service (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: merge. Created 5 years, 2 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: mojo/services/camera/public/interfaces/camera.mojom
diff --git a/mojo/services/camera_roll/public/interfaces/camera_roll.mojom b/mojo/services/camera/public/interfaces/camera.mojom
similarity index 83%
rename from mojo/services/camera_roll/public/interfaces/camera_roll.mojom
rename to mojo/services/camera/public/interfaces/camera.mojom
index 850da78f654a6594868e806bd4a30e7f7a782684..b7cc5cb7184b568bf79d49077baf861a2ca164c5 100644
--- a/mojo/services/camera_roll/public/interfaces/camera_roll.mojom
+++ b/mojo/services/camera/public/interfaces/camera.mojom
@@ -28,3 +28,10 @@ interface CameraRollService {
// if such an index is out-of-bounds.
GetPhoto(uint32 index) => (Photo? photo);
};
+
+// |CameraService| provides access to the device's camera video stream.
+interface CameraService {
+ // Returns the most recent frame captured by the device's camera
+ // in preview mode.
+ GetLatestFrame() => (handle<data_pipe_consumer>? content);
+};
« no previous file with comments | « mojo/services/camera/public/interfaces/BUILD.gn ('k') | mojo/services/camera_roll/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698