Skip to main content

Module persist

Module persist 

Source
Expand description

Project persistence — the .screenproj file format (ED.23 / M-EDIT).

An EditProject is “never cut the negative” all the way down: it holds only value types — segment ranges, zoom windows, framing config, a source reference — so saving a project is just serializing that decision list to JSON, and reopening it is parsing the JSON back. No media is copied; the .screenproj sits beside the recording and points at it. Because the whole model is serde, save↔load is a pure, lossless round-trip — proven here without touching the filesystem.

The file carries a SCHEMA_VERSION so a future format change can migrate rather than mis-parse.

Constants§

SCREENPROJ_EXTENSION
File extension for a saved editor project.

Functions§

from_screenproj
Parse a project from its .screenproj JSON.
to_screenproj
Serialize a project to its .screenproj JSON (pretty-printed so the file is human-readable + diff-friendly).