upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/xma2_decoder.cpp
diff options
context:
space:
mode:
authorMoonEyes <14891700+MoonEyes@users.noreply.github.com>2026-11-27 11:37:20 +0100
committerMoonEyes <14891700+MoonEyes@users.noreply.github.com>2026-11-27 11:37:20 +0100
commit144f799e10d3578d429dd3ca1760b2a789fc2cf5 (patch)
tree643896c595f0fcc3b017cd20c94cab2c0c5c7e03 /runtime/src/xma2_decoder.cpp
parent50ce8f51a980e4a7ef1f718ebc9095eca706c07d (diff)
tools: picture_metrics.py and the PICTURE block (TOOLS-PICTURE-REPORT)
From a PNG or PPM frame on the user's disk, numbers only: luma statistics, the dark share of a 4x4 grid of regions, a lattice detector (tile, period, phase, diagonal, corner), a block-grid detector (block size and share of blocks cut off), a per-8x8 diff against a second frame and a defect class. LATTICE, BLACK-NEAR, BLOCKS, FLASH and OK are measured; CHAR-BLACK, CHAR-MISSING, 2D-MISSING, STRAY-GEO and SMEAR need scene knowledge and are only given by a human (--class, with --region for numbers). Standard library: PNG read with zlib and struct (8-bit grey/RGB/RGBA, not interlaced, five filters), binary PPM/PGM; the rest is refused. No pixels or paths in the output; no file written. docs/agent_collaboration.md gets the PICTURE block next to RUN, with an example from a synthetic frame; the docs index line names it. Tests: tests/test_picture_metrics.py draws synthetic frames and checks the drawn parameters come back (20 tests). AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/xma2_decoder.cpp')
0 files changed, 0 insertions, 0 deletions