Skip to content

Bitmap subtitle zoom and position - #76

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

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.

@cinema-ONE
cinema-ONE force-pushed the bitmap-subtitle-zoom-position branch from 9abaed1 to b258a0a Compare August 28, 2026 18:04
@cinema-ONE
cinema-ONE force-pushed the bitmap-subtitle-zoom-position branch 2 times, most recently from d2f4bae to 1c7ec1e Compare August 30, 2026 13:11
@cinema-ONE
cinema-ONE force-pushed the bitmap-subtitle-zoom-position branch from 1c7ec1e to 1448a9b Compare August 31, 2026 13:52
@cinema-ONE
cinema-ONE force-pushed the bitmap-subtitle-zoom-position branch from 1448a9b to c8ca859 Compare September 1, 2026 06:03
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 c8ca859 to 5929f2f Compare September 1, 2026 08:55
@cinema-ONE

Copy link
Copy Markdown
Contributor Author

Closing this myself - it is not worth your maintenance.

This is an early carry of xbmc/xbmc#29060, which is milestoned for Kodi v23, so CoreELEC
would be carrying +556 lines across every rebase for something that arrives upstream on
its own. That is exactly the cost you raised on #77, and I think you were right about it.

The branch stays at cinema-ONE/xbmc-coreelec:bitmap-subtitle-zoom-position if it is ever
wanted before v23 lands. Nothing here is abandoned - it is just in the wrong place.

@cinema-ONE cinema-ONE closed this Sep 2, 2026
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