1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! The live camera surface (spec 3.7 §8.2, X12): watching a stream and acting on it, on the
//! web home and the phone, built to the signed-off boards (`camera-*`, board choices C1–C15).
//!
//! | Part | What |
//! |---|---|
//! | [`CameraSource`] | The seam to a frame pipeline: each camera's [`CameraFacts`] — the stream's state, the frame governor's numbers, tracks, watch conditions, zones — and the acts a person may ask of it |
//! | [`Cameras`] | The hub every frame passes ([`Cameras::offer`]): a camera switched off or stopped has its frames dropped on the server, whatever arrives; the rest are held in memory only, the latest [`HELD_FRAMES`], never written |
//! | The view model ([`CameraView`], [`CamerasView`], ...) | What the screens show, in the boards' words, in the OpenAPI document of every `web` build |
//! | `PipelineCameras` (`vision-camera`) | Each camera on adk-vision's frame pipeline — source, frame governor, privacy, detector, tracker, watch conditions — reporting what the pipeline measured; a stream camera switched off stops capturing at its source; the web home's own camera through `SurfaceCameraSource` |
//! | `ScriptedCameras` (`web`) | A fixture-driven source with every board state, for the tests and the screenshots |
//! | `bridge` (`voice`) | A camera's frames fed to a realtime session under the voice screen's `FramePolicy` |
//!
//! # Rules
//!
//! - **Off sends nothing.** The voice screen's rule ([`voice::VisualInputs`](crate::voice)) holds
//! here: the hub drops every frame of a camera that is off, and switching off forgets the
//! frames held (board choice C7). A pipeline camera's source stops capturing, and a page that
//! sends this browser's camera stops it.
//! - **No frame is stored unless it is evidence on a card.** Raising a card keeps exactly the
//! frozen frame, through [`CameraSource::keep_frame`], everyone in it blurred first (board
//! choice C11, spec 3.7 V-I9); the card reaches the agent as the person's message naming the
//! evidence by digest and artifact (V-I15).
//! - **Authorised as the inbox is.** A camera belongs to its agent's session; only that
//! session's owner sees or acts on it (spec 3.3 §11 S-I8). Every act is recorded.
pub use MAX_SENT_FRAME_BYTES;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
/// The audit action of switching a camera on or off (spec 3.7 §8.2, board choice C2).
pub const SURFACE_AUDIT_CAMERA_SWITCH: &str = "surface.camera.switch";
/// The audit action of stopping a camera's stream.
pub const SURFACE_AUDIT_CAMERA_STOP: &str = "surface.camera.stop";
/// The audit action of trying a lost camera again.
pub const SURFACE_AUDIT_CAMERA_RETRY: &str = "surface.camera.retry";
/// The audit action of changing a zone (board choice C12).
pub const SURFACE_AUDIT_CAMERA_ZONE: &str = "surface.camera.zone";
/// The audit action of raising a card from a frame (board choice C11).
pub const SURFACE_AUDIT_CAMERA_CARD: &str = "surface.camera.card";