pub fn compose_project_frame(
preview: &mut EditorPreview,
stream: &mut EditorVideoStream,
project: &EditProject,
frame: u64,
) -> Option<ComposedFrame>Expand description
Compose project frame frame into a ComposedFrame — the single
per-frame compose shared by the deferred export generator and the live
editor preview (AUT-510), so what you scrub is what you ship.
Maps the project frame to its source frame (trim / split / speed via
[EditProject::source_time]), decodes it from stream, then applies the
cinematic framing: the zoom punch-in ([active_zoom_at], ED.16), the crop /
aspect reframe (ED.15), and — when the project carries a cursor track — the
cursor overlay + click ripples (cursor_for_frame + ripples_at, ED.19).
Returns None past the end of the timeline or on a decode miss.