OLD | NEW |
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 Loading... |
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 UNINITIALIZED = 1; // Media analytics working on loading configuration. | 34 TIMEOUT = 1; // Unable to reach media analysis process. |
35 STARTED = 2; // Analysis process running but not recieving frames. | 35 UNINITIALIZED = 2; // Media analytics working on loading configuration. |
36 RUNNING = 3; // Analysis process running and injesting frames. | 36 STARTED = 3; // Analysis process running but not recieving frames. |
37 SUSPENDED = 4; // Media analytics process waiting to be started. | 37 RUNNING = 4; // Analysis process running and injesting frames. |
| 38 SUSPENDED = 5; // Media analytics process waiting to be started. |
38 } | 39 } |
39 | 40 |
40 // Note: RUNNING and SUSPENDED are the only two states which should be sent to | 41 // Note: RUNNING and SUSPENDED are the only two states which should be sent to |
41 // SetState. | 42 // SetState. |
42 optional Status status = 1; | 43 optional Status status = 1; |
43 | 44 |
44 // Device context so that the media analytics process can better select the | 45 // Device context so that the media analytics process can better select the |
45 // right video device to open. | 46 // right video device to open. |
46 optional string device_context = 2; | 47 optional string device_context = 2; |
47 } | 48 } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 113 } |
113 | 114 |
114 message Point { | 115 message Point { |
115 // x represents the horizontal distance from the top left corner of the image | 116 // x represents the horizontal distance from the top left corner of the image |
116 // to the point. | 117 // to the point. |
117 optional float x = 1; | 118 optional float x = 1; |
118 // y represents the vertical distance from the top left corner of the image to | 119 // y represents the vertical distance from the top left corner of the image to |
119 // the point. | 120 // the point. |
120 optional float y = 2; | 121 optional float y = 2; |
121 } | 122 } |
OLD | NEW |