Skip to content

Bitmap subtitle zoom and position - #76

Open
cinema-ONE wants to merge 1 commit into
CoreELEC:aml-5.15.196-22.0from
cinema-ONE:bitmap-subtitle-zoom-position
Open

Bitmap subtitle zoom and position#76
cinema-ONE wants to merge 1 commit into
CoreELEC:aml-5.15.196-22.0from
cinema-ONE:bitmap-subtitle-zoom-position

Conversation

@cinema-ONE

@cinema-ONE cinema-ONE commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Rebased onto the current tip now that the NAL length size fix has landed; this is a single commit against it.

Description

Picture-based subtitles (PGS, VobSub) are drawn at the size and position the disc authored, and Kodi's "Position on screen" and "Vertical margin" settings do not apply to them. On a frame-packed 3D projector the authored size is often too large to read comfortably, and there is no way to move them off the bottom edge.

This adds two settings:

  • subtitles.bitmapzoom — resize picture-based subtitles, 100% being the authored size
  • subtitles.bitmapposition — apply the existing position and vertical margin settings to them

Only bitmap subtitles are affected. DVB subtitles are deliberately excluded: the same codec path also delivers broadcast logos and graphics, which belong where the broadcaster put them. Menu graphics (Blu-ray IG/PG, DVD button highlights) share the overlay classes and are never moved.

Provenance

This is a carry of xbmc/xbmc#29060, which is open upstream, reviewed by reardonia and milestoned Q* 23.0 Alpha 1 — so it is queued for Kodi v23 rather than v22. I am offering it here early because the feature is most useful on exactly the frame-packed 3D hardware CoreELEC serves, and v23 is months out. If upstream merges it, this commit disappears in your next rebase.

String ids are 39213-39218: 39211/39212 are taken by CoreELEC's own "Don't show subtitles matching the audio language" setting.

Testing

Homatics Box R 4K Plus, frame-packed 3D over HDMI to a JVC projector. Zoom at 60% and position enabled, verified on screen with PGS subtitles. Defaults (100%, position off) leave rendering byte-identical to before — checked against an unpatched build on a real PGS clip.


Written by my AI co-author (Claude Code); posted from my account.

Carry of the pending upstream PR xbmc/xbmc#29060 so the feature is usable on
frame-packed 3D hardware before Kodi v23 opens. Adds subtitles.bitmapzoom and
subtitles.bitmapposition, letting PGS and VobSub be resized and moved onto the
existing position and vertical margin settings.

String ids 39213-39218; 39211/39212 are taken by CoreELEC's own subtitle
language setting.
@cinema-ONE
cinema-ONE force-pushed the bitmap-subtitle-zoom-position branch from 9abaed1 to b258a0a Compare August 28, 2026 18:04
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