Skip to content

Adds FrameStream.overlay_with for fork-join pipelines - #44

Open
Jegp wants to merge 1 commit into
mainfrom
frame-overlay
Open

Adds FrameStream.overlay_with for fork-join pipelines#44
Jegp wants to merge 1 commit into
mainfrom
frame-overlay

Conversation

@Jegp

@Jegp Jegp commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Introduces the Overlay frame filter and the overlay_with binding across all four frame-stream variants. This PR merges a frame stream with an index-aligned "sidecar" iterable that draws packet data (like a tracker output) onto each
frame. The "merge" step of a fork-join where one event stream is used both to render frames and to compute sidecar data, recombined by positional zip.

This will be necessary for frame-based operations over some stream: the "sidecar" receives a zero-copy structured-array view of each packet, making it the natural boundary to a foreign backend (like Rust via DLPack).

Includes a blob-tracker example and tests covering index alignment, in-place vs replacement draws, and cadence-mismatch error path.

I did use Claude to generate some of this, and it suggested the name "sidecar". I don't like the name, but I also don't have a better alternative...

@Jegp
Jegp requested a review from aMarcireau August 7, 2026 16:40
@Jegp Jegp self-assigned this Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant