Skip to content

Precompute filmstrip frame diffs in visual metrics#2531

Merged
soulgalore merged 1 commit into
mainfrom
filmstrip-diffs
Jul 20, 2026
Merged

Precompute filmstrip frame diffs in visual metrics#2531
soulgalore merged 1 commit into
mainfrom
filmstrip-diffs

Conversation

@soulgalore

Copy link
Copy Markdown
Member

Report UIs cannot read frame pixels when a result is opened from file:// — the canvas is tainted and fetch is blocked — so an exact "what changed in this frame" view was impossible exactly where people debug local results. Visual metrics already walks every adjacent frame pair with Pillow in hand, so the diff belongs here.

With videoParams.filmstripDiff, write diff_.png next to each filmstrip frame — the frame dimmed with every changed pixel painted red, the same per-pixel threshold report UIs use at runtime so both paths show the same picture — and report the counts as a Frame Diffs metric. Off by default: it is one extra image per frame per run, stored wherever results are stored. PNG on purpose — mostly white plus sparse red compresses far below the frame JPEGs.

Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I469edacc66efa9386d20867d9d8cf08953337115

Report UIs cannot read frame pixels when a result is opened from
file:// — the canvas is tainted and fetch is blocked — so an exact
"what changed in this frame" view was impossible exactly where people
debug local results. Visual metrics already walks every adjacent
frame pair with Pillow in hand, so the diff belongs here.

With videoParams.filmstripDiff, write diff_<ms>.png next to each
filmstrip frame — the frame dimmed with every changed pixel painted
red, the same per-pixel threshold report UIs use at runtime so both
paths show the same picture — and report the counts as a Frame Diffs
metric. Off by default: it is one extra image per frame per run,
stored wherever results are stored. PNG on purpose — mostly white
plus sparse red compresses far below the frame JPEGs.

Co-authored-by: Claude Fable 5 noreply@anthropic.com
Change-Id: I469edacc66efa9386d20867d9d8cf08953337115
@soulgalore
soulgalore merged commit 7838727 into main Jul 20, 2026
16 checks passed
@soulgalore
soulgalore deleted the filmstrip-diffs branch July 20, 2026 05:44
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