Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

mojo-imkit v0.10.0

Latest

Choose a tag to compare

@amarbarosys amarbarosys released this 10 Nov 09:18
· 10 commits to main since this release

mojo-imkit v0.10.0

Released: 2026-11-10 · Commit: tag v0.10.0 · Previous: v0.9.0

What it does

An immediate-mode GUI for Mojo apps, drawn by one GPU compose kernel over the app frame. System SDL3 presents the window and FreeType builds the glyph atlas.

Highlights

  • AVIF stills decode in pure Mojo: image_decode and pack now take PNG, JPEG, WebP and AVIF.
  • The decoded YUV planes equal dav1d / avifdec sample for sample on 32 fixtures: 8, 10 and 12 bit, 4:2:0, 4:2:2, 4:4:4 and
    monochrome, alpha, superres, film grain, intra block copy, palette, all intra tools and all three loop filters.
  • avif_decode(bytes) returns RGBA in the same layout as the other decoders.

Changes

Added

  • imkit.avifrgb.avif_decode: AVIF to 8-bit RGBA (matrix and range from the file, bilinear chroma, alpha item).
  • AV1 intra decoder modules: av1obu (OBU headers), av1sym (symbol decoder), av1tab (every spec table, generated from the
    spec text by tools/av1_tables.mojo), av1tile / av1coef (tile syntax), av1recon, av1ipred, av1intrabc, av1lf,
    av1cdef, av1lr, av1grain, av1dec.decode_frame (YUV planes); avifseq.avis_info (image sequence timing).
  • CI runs the AVIF gates on the runner; 32 AVIF / OBU fixtures committed (232 KB, our own encodes).

Changed

  • image_decode picks AVIF by its ISO BMFF ftyp box.

Verified

Check Result
scripts/ci.sh (local, merged main) PASS, AVIF step included
tests/avif_yuv_test.sh PASS: YUV planes equal avifdec / dav1d on every fixture
tests/avif_yuv_mutants.sh 15 of 18 mutants killed; 3 reached by no fixture (MV clamp border, sgr xqd clip, CFL MaxLumaW)
tests/av1tile_test.sh PASS 40 tiles (each tile's symbol decoder ends exactly at its end), 18/18 mutants
tests/avif_rgba_test.sh PASS 26 files: exact for 4:4:4 / mono / lossless / identity, within 2 levels at 8 bit, 3 at 10-12 bit; 8/8 mutants
tests/av1sym_test.sh, avif_obu.sh, avif_container.sh, avif_seq_test.sh PASS (10/10, -, -, 6/6 mutants)
CI on GitHub (Ubuntu runner) UNVERIFIED until the push: the runner's avifdec / dav1d versions make the references

Known limits

  • Inter frames are not decoded: an animated AVIF's first frame decodes, later frames raise; avis_info reads its timing.
  • RGBA is not bit-exact with avifdec for subsampled or high bit depth files (float conversion vs libyuv fixed point).
  • Speed is untuned: 1280x720 4:4:4 in 0.12 s, 56 MB peak RSS (one run).

Upgrade / run

None: same build line. AVIF CI needs libavif-bin, dav1d and ffmpeg on the runner (the workflow installs them).

Commits

  • a7b256f docs: AVIF in the README, the API reference and the shipped skill
  • e8d8a84 fix(avif): avif_decode refuses more than 64 M pixels before decoding
  • 9ce33dd feat(avif): avif_decode to 8-bit RGBA, and image_decode takes AVIF
  • e1291c1 ci: AVIF gates on the runner, fixtures committed
  • a9889a8 docs(avif): report 4:2:2, superres and coverage follow-up
  • de98349 test(avif): superres, 4:2:2 and delta_lf fixtures in the gates; a missing reference fails the mutant run
  • 7896cf2 feat(avif): superres decode (upscaling 7.16, LR on the upscaled frame), pixel-exact
  • af49aec feat(avif): 4:2:2 decode, pixel-exact on 8 and 10 bit fixtures
  • 1fe1aeb docs(avif): lane A report with gates, coverage, gaps and bytes
  • ad2f437 docs(rules): lane A mistakes that cost a round
  • 8e36a60 test(avif): pixel gate proves itself: 11 mutants killed, 3 no fixture reaches (listed), screen.avif added (2005 intrabc blocks)
  • 6084aaa feat(avif): stage 8, image sequence timing and sample table equal to avifdec --info
  • 16cc910 test(avif): pixel gate covers alpha plane, real 4:2:0, 10/12 bit, 128 superblocks, LR, odd size, reduced tx set
  • e165fdf docs(avif): lane B report (recon and intra prediction)
  • 60a66c1 docs(rules): lane B recon and intra mistakes
  • 6ee6eaa feat(avif): av1ipred intra, palette and chroma-from-luma prediction (7.11), gated
  • 9aafb2d test(avif): stage 4 gate proves itself: 18 mutants of av1coef/av1tile/av1state/CDF tables all fail it
  • 3360ae1 docs(avif): lane C report
  • 8c9e6a4 docs(rules): lane C mistakes that cost a round
  • ef0f992 feat(avif): film grain params parser (5.9.30) and synthesis (7.18.3)
  • 9240874 feat(avif): stage 4 tile parse rewritten against the spec: residual, intrabc MV stack, LR units, palette, var-tx
  • 576454f feat(avif): AV1 loop restoration (spec 7.17) with oracle-pinned checks
  • c576adf feat(avif): av1recon dequant and inverse transforms (7.12, 7.13), gated
  • 89e4f64 feat(avif): AV1 CDEF (spec 7.15) with oracle-pinned checks
  • 1df50b6 docs(rules): lane worktrees get skills linked and loaded before work
  • 788887d feat(avif): AV1 deblocking loop filter (spec 7.14) with hand-computed checks
  • 1330708 test(bench): scripts/bench.sh runs uibench 3 times
  • 30ba81c test(avif): decode-to-planes gate against avifdec / dav1d y4m, written before the decoder
  • 63ece0d feat(avif): av1frame planes shared by reconstruction, filters and output
  • d301a5f feat(avif): generate the spec's numeric tables for reconstruction and filters
  • a3b74ae feat(avif): keep LoopRestorationSize and the remapped FrameRestorationType
  • b46736b feat(avif): generate the 32 coefficient scan tables too; av1cdf -> av1tab
  • 4cbc21d test(avif): stage 4 tile-parse gate, written before the draft
  • bdbc866 feat(avif): default CDF tables from the AV1 spec, generated in the decoder's stored form
  • 35fb312 fix(avif): six stage 2 header parse bugs, gate covers what the tile parser reads
  • 75976fc docs(avif): lane status report, stages 1 to 3
  • d53ecdf test(avif): stage 3 symbol decoder round-trip gate with mutants
  • 73fc046 feat(avif): stage 2, AV1 OBU headers (DeepSeek draft, fixed by hand)
  • 4457c96 test(avif): stage 2 OBU header gate against ffmpeg trace_headers
  • 34e803a feat(avif): stage 1, HEIF container parser (DeepSeek draft, fixed by hand)
  • e576df0 test(webp): commit the two filtered-alpha fixtures; libwebp versions pick filters differently
  • 52959d7 test(webp): deterministic alpha-filter fixtures (ramps, not seeded plasma)
  • f612cef ci: run style, jpeg and webp suites; workflow installs imagemagick and libwebp7 (test oracles)
  • 2072717 release: v0.9.0, JPEG and WebP decoders, 30 styles with assets, new widgets, contrast gate
  • b995b3b docs(readme): amarbaro and built-in shots, eight generated styles, WebP and styles modules
  • e412c05 feat(assets): amarbaro style background and icons (style-assets PASS, 30 styles)
  • d8436c9 docs(api): new widgets, amarbaro and generated themes, contrast, WebP
  • 78fa013 feat: amarbaro themes, heading/caption/badge/kv/separator, 6 font sizes, visible controls
  • 21df275 test(avif): stage 1 container gate against avifdec --info
  • 915d7c0 docs(reports): webp lane report with fixture numbers, mutants and memory
  • ee072cc docs(rules): webp lane mistakes
  • c534c5a feat(webp): lossy VP8 key frames and the ALPH chunk, bit exact against libwebp
  • 45b7228 docs(jpeg): api, README row, rules, lane report
  • 961c027 test(jpeg): bit-exact bar and a fuzz run
  • 2649441 feat(assets): image_decode picks JPEG or PNG by signature, pack uses it
  • 7db7c88 perf(jpeg): baseline blocks are transformed as they are decoded
  • 7603983 feat(jpeg): pure Mojo baseline and progressive JPEG decoder
  • a91728d feat(webp): pure Mojo VP8L lossless decoder with libwebp-oracle fixtures
  • 80179f5 fix(gallery): preset buttons share the row equally
  • 24367b7 fix(gallery): style button on its own row inside the panel
  • c8c8a90 feat(assets): 29 style backgrounds and 232 icons
  • 4307fb4 feat(assets): style-assets.sh packs per-style backgrounds and icon atlases
  • ad63dd5 feat(styles): 29 theme presets measured from ComfyUI style swatches
  • e263d25 docs(rules): gpu-wait jobs get PATH and HOME passed explicitly
  • 5b978b9 docs(plans): 28 style themes and assets from the ComfyUI stock styles
  • 26be1ab docs(readme): gallery screenshots in the three presets
  • 5a4432b chore(gallery): submit the render as a shared 2 GB GPU job
  • 495cf83 fix(ci): resolve the CJK fallback font per distro
  • ca2e844 docs(rules): bump pyproject version with every release