Module video

Module video 

Source
Expand description

The frame/line clock and the picture capture (video.py).

Timeline is the VCE’s sync generator: it owns the line and frame counters on the board’s one master-clock timeline and decides 262 or 263 lines per frame (C3). Capture turns each line into a row of 9-bit palette values (-------GGGRRRBBB), looking the VDC’s pixel indices up in the colour table as it stood at each dot, so a mid-line palette write splits the line exactly where the CPU wrote it: that is what Covell’s CPU test draws.

Compare pictures at the 9-bit values, never at RGB (docs/vce.md).

Differences forced by Rust: the Timeline and the Capture are handed the VCE where they need it (the reference holds a reference); the pixel path is the board’s field, which mixes the VDC rows and hands finish_line the result; a finished frame is moved into last_frame (the reference aliases the row list, which it never touches again).

Structs§

Capture
Frame
The 242 active lines of a frame: rows[i] is the 9-bit palette values of line 14 + i.
Timeline