Expand description
Screen capture abstraction: frames, regions, rates, and the FrameSource trait.
Structs§
- Fake
Source - A scripted
FrameSourcefor tests and demos: yields its frames in order, then repeats the final frame forever. - Frame
- A single captured frame in BGRA8 layout, row-major, stride = width * 4.
- Frame
View - A borrowed rectangular view into a frame. Zero-copy; rows are slices of the frame.
- PxRect
- A resolved, pixel-space rectangle, guaranteed in-bounds by
Region::resolve. - Rate
- How often a watcher evaluates, or a source captures. Stored as a period.
Enums§
- Capture
Error - Region
- A watch region. Fractional (
Percent) regions survive resolution changes; validation happens atresolvetime against actual frame dimensions. - Target
- What to capture: a display by index, or a window matched by exact title.
Traits§
- Frame
Source - A source of frames. The session’s capture loop calls
capture_frameat the session’s capture rate; implementations should return the freshest frame available. Real backends (scap) arrive in a later milestone.