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

Side by Side Diff: chromeos/dbus/proto/media_perception.proto

Issue 2858353002: MediaPerceptionPrivate API impl and testing. (Closed)
Patch Set: Added media_perception_proto as direct dependency of test targets. Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 syntax = "proto2"; 1 syntax = "proto2";
2 2
3 option optimize_for = LITE_RUNTIME; 3 option optimize_for = LITE_RUNTIME;
4 4
5 package mri; 5 package mri;
6 6
7 // The output of the media analytics process. Implicitly tied to the 7 // The output of the media analytics process. Implicitly tied to the
8 // MediaPerception dictionary defined in Chromium source at 8 // MediaPerception dictionary defined in Chromium source at
9 // src/extensions/common/api/media_perception_private.idl for the 9 // src/extensions/common/api/media_perception_private.idl for the
10 // Chromium mediaPerceptionPrivate API. This .proto needs to be compatible 10 // Chromium mediaPerceptionPrivate API. This .proto needs to be compatible
(...skipping 13 matching lines...) Expand all
24 24
25 // Used to transmit a history of image frames and their associated annotations. 25 // Used to transmit a history of image frames and their associated annotations.
26 // This is accumulated over time by the graph runner. 26 // This is accumulated over time by the graph runner.
27 message Diagnostics { 27 message Diagnostics {
28 repeated PerceptionSample perception_sample = 1; 28 repeated PerceptionSample perception_sample = 1;
29 } 29 }
30 30
31 message State { 31 message State {
32 enum Status { 32 enum Status {
33 STATUS_UNSPECIFIED = 0; // Unused required default value for Proto enums. 33 STATUS_UNSPECIFIED = 0; // Unused required default value for Proto enums.
34 TIMEOUT = 1; // Unable to reach media analysis process. 34 UNINITIALIZED = 1; // Media analytics working on loading configuration.
35 UNINITIALIZED = 2; // Media analytics working on loading configuration. 35 STARTED = 2; // Analysis process running but not recieving frames.
36 STARTED = 3; // Analysis process running but not recieving frames. 36 RUNNING = 3; // Analysis process running and injesting frames.
37 RUNNING = 4; // Analysis process running and injesting frames. 37 SUSPENDED = 4; // Media analytics process waiting to be started.
38 SUSPENDED = 5; // Media analytics process waiting to be started.
39 } 38 }
40 39
41 // Note: RUNNING and SUSPENDED are the only two states which should be sent to 40 // Note: RUNNING and SUSPENDED are the only two states which should be sent to
42 // SetState. 41 // SetState.
43 optional Status status = 1; 42 optional Status status = 1;
44 43
45 // Device context so that the media analytics process can better select the 44 // Device context so that the media analytics process can better select the
46 // right video device to open. 45 // right video device to open.
47 optional string device_context = 2; 46 optional string device_context = 2;
48 } 47 }
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 112 }
114 113
115 message Point { 114 message Point {
116 // x represents the horizontal distance from the top left corner of the image 115 // x represents the horizontal distance from the top left corner of the image
117 // to the point. 116 // to the point.
118 optional float x = 1; 117 optional float x = 1;
119 // y represents the vertical distance from the top left corner of the image to 118 // y represents the vertical distance from the top left corner of the image to
120 // the point. 119 // the point.
121 optional float y = 2; 120 optional float y = 2;
122 } 121 }
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_thread_manager.cc ('k') | extensions/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698