Skip to content

feat(subtitle): VobSub and DVB decoders, .idx/.sub and .sup readers - #27

Merged
gravity-zero merged 15 commits into
masterfrom
feat/vobsub-dvb-decoders
Nov 17, 2026
Merged

gravity-zero merged 15 commits into
masterfrom
feat/vobsub-dvb-decoders

Conversation

@gravity-zero

Copy link
Copy Markdown
Owner

Bitmap subtitle decoders for DVD rips and broadcast captures, and readers for the bitmap subtitles that sit beside a video. Everything is in mkv/subtitle, additive only.

  • feat(subtitle): VobSubDecoder and DVBSubDecoder, returning the PGS decoder's display sets (BitmapDisplaySet is the type PGSDisplaySet names)
  • feat(subtitle): ParseVobSubIndex + VobSubIndex.ForEachUnit for a VobSub .idx/.sub pair, ForEachSUPDisplaySet for a PGS .sup
  • PGSDisplaySet gains Delay, Duration (VobSub start and stop commands) and Timeout (a DVB page's time-out)
  • fix(subtitle): two rounds of review of the branch, each finding first reproduced by a test (a DVB region read once per display set, a whole VobSub unit never completing an incomplete one, Continues to date a unit by its first block, junk and unknown pixel data tolerated, the sets ahead of an error returned with it)

Tests: synthetic wire-format tests, fuzz targets for each decoder and reader, and real samples (a DVD's VobSub, a broadcast's DVB subtitles, a .idx/.sub pair, a .sup) whose pictures are compared pixel by pixel with golden renderings.

Local: gate exit 0 on da90230, make preflight RELEASE=v0.67.0 exit 0 on c566d15. gorelease against v0.66.2: compatible changes only, v0.67.0.

…eeps the sets ahead of an error, passes over junk and gives the page's time-out
… a stop at the start shows nothing, Pending tells a unit waits for its rest
…a block starts a unit, where Pending dated a unit that dropped the one before by the dropped block
…nd the library example reads each decoder with its own calls
@gravity-zero
gravity-zero merged commit 873f8c0 into master Nov 17, 2026
13 checks passed
@gravity-zero
gravity-zero deleted the feat/vobsub-dvb-decoders branch November 18, 2026 09:22
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