forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/ec-pgs/src/lib.rsClear filter

2026-10-23

Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23)

On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local
repository with all of its history. This commit restores the working tree
from the newest surviving copy, the host-c server lane mirror. That mirror
matches local main as of the testcut Phase 2 reports, including the tool
cache, the nextest fast profile and changed-crates.sh. The history before
this commit was not recovered.

2026-08-21

2026-08-14

feat(image): WebP decoding, VP8 key frames and VP8LAhmet Kaan Gümüş · 22ac6ab
feat(image): WebP decoding, VP8 key frames and VP8L

The RIFF container, both bitstreams, and the separate alpha plane an
extended file carries.

VP8 (RFC 6386) is a complete key frame decoder: boolean entropy decoder,
segmentation, per-partition token decoding with the neighbour contexts,
the WHT and DCT inversions bit-exactly as specified, all sixteen intra
prediction modes including the six diagonal subblock ones, and both loop
filters with their per-macroblock strength derivation. The probability and
quantizer tables are generated from the RFC text rather than retyped —
two thousand values transcribed by hand is a defect waiting to be found
several macroblocks into a picture.

VP8L is the lossless bitstream: canonical prefix codes with meta prefix
groups, the colour cache, LZ77 over the two-dimensional distance map, and
all four transforms applied in the reverse of the order they were read.
The colour cache size is read *before* the meta prefix codes; the other
order parses plausibly and then fails on the first real file.

Alpha arrives either raw or as a headerless lossless stream in the green
channel, then unfiltered by the method its chunk declares. Animation is
refused by name: a still decoder that quietly returns frame one makes
"this plays" and "this decoded" indistinguishable to its caller.
feat(subs): SRT/WebVTT/ASS parsing, PGS bitmaps, oxideav shimsAhmet Kaan Gümüş · 1f445c1
feat(subs): SRT/WebVTT/ASS parsing, PGS bitmaps, oxideav shims

ec-subs carries the cue IR the family answers with (time range plus
styled runs, positioning beside them) and the SubRip and WebVTT parsers
over it; ec-ass reads ASS/SSA into the same IR, override tags included;
ec-pgs decodes Blu-ray display sets to straight RGBA canvases.

Tolerance is the point on the text side: BOM (UTF-8 and UTF-16), CRLF and
lone CR, invalid UTF-8, missing or wrong indices, dotted fractions,
trailing SubRip coordinates, overlapping and backwards cues all parse; a
block that cannot be read is skipped and counted, and only a document
with no timing line at all is refused. The PGS decoder holds an epoch
across display sets, keeps a partial segment until the rest arrives and
drops a torn set rather than the track.

shims/oxideav-{core,subtitle,ass,sub-image} carry the incumbent package
names and versions and cover exactly the surface the replica consumes, so
the swap is a [patch.crates-io] line. The replica's own call shapes are
transcribed as a test, which is what proves the swap rather than the
crates' own suites.

Checks: 34 tests green (unit plus real streams extracted from the library
by scripts/gen-subtitle-fixtures.sh); the first painted display set of a
1080p PGS track agrees with ffmpeg's own render of the same set — same
bounding box within two pixels, every reference ink pixel painted,
colours within 1/255.