Commits
Commits on
5a2f5efe3a0771ac7ca43d57bdf63c19a7b75ff6Filtered to crates/ec-subs/src/webvtt.rsClear filter2026-08-14
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.