Expand description
Views the neuro-kitchen apps share, and what views share between them.
container: the dock every workspace’s views live in (tabs dragged into splits, the “Add view or container” dialog). Moved from kitchen-shell, which re-exports it.clock: one time cursor per workspace that every view follows and any view moves; playback, frame steps, and the playback keys ([playback]).sync: clocks aligned by sync pulses (drift and offset fitted, lost pulses tolerated).video: video frames by index with their timestamps (image sequences, MP4 with H.264 in Rust, anything else through ffmpeg as a process), dropped frames found, a frame cache.video_view: the video at the clock’s moment, an app’s overlays over it, frame and times under it, the playback keys over it.
A view moves here when a second app needs it, not before: dspk’s traces and lucem’s image planes are tuned to their data and stay in their apps, behind the same clock.
Re-exports§
pub use clock::Clock;pub use clock::ClockEvent;pub use container::AddViewDialog;pub use container::Arrangement;pub use container::DialogEvent;pub use container::ViewOption;pub use sync::Alignment;pub use video_view::VideoView;
Modules§
- clock
- One clock every view follows. A workspace holds one
Clock; the video, the traces, the raster, the keypoints all draw what is at its position, and any of them moves it (a click on the timeline, a frame step in the video). The position is in seconds of the reference clock (usually the ephys recording’s); each source maps its own time onto it with ancrate::sync::Alignment. - container
- One container for every workspace’s views (lumen’s planes, tables and plots; dsp-kitchen’s
traces and rasters): a dock whose views are tabs dragged into splits, the “Add view or
container” dialog (after Rerun’s: arrange every view, or add one), and the buttons in a view’s
tab. A workspace only lists its view kinds (
ViewOption) with their flags: whether each can be added now (and why not), which one a view shows. - sync
- Aligning clocks. A camera, an ephys probe and a behaviour rig each count time on their own oscillator: the same moment reads differently on each, and the difference drifts (tens of parts per million is common). Rigs share sync pulses: one TTL line recorded by every device. The times of the same pulses on two clocks give the map between them, a line:
- video
- Video, for research: every frame where it was, at the time it was taken. What matters is not
smooth playback but which frame is shown at a given moment of the recording, so frames
are addressed by index and carry their timestamp (
FrameTimes), dropped frames are found, and the time is mapped onto the reference clock (crate::sync::Alignment). - video_
view - The video view: the frame at the clock’s moment, an app’s overlays over it, and what a researcher needs under it (the frame number, the time on both clocks, dropped frames, how well the clocks are aligned).