Skip to content

Poster caption: name Dolby Vision for a file that carries it - #1412

Merged
GLinnik21 merged 7 commits into
plxnative:mainfrom
tiper:up/caption-dolby-vision
Nov 21, 2026
Merged

GLinnik21 merged 7 commits into
plxnative:mainfrom
tiper:up/caption-dolby-vision

Conversation

@tiper

@tiper tiper commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Depends on #1348.

#1348 names the dynamic range beside the resolution on the detail page and the Home hero ("Dolby Vision" or "HDR"). The poster caption's Video quality part still said "HDR" for a Dolby Vision title, as the review of #1348 noted.

This words that part through the same fmt::dynamic_range, so a Dolby Vision title reads "4K · Dolby Vision" under its poster, in step with its detail page and the hero.

  • CaptionFacts gains dolby_vision, filled from PmsMovie.dolby_vision (tile_facts::caption_facts) and from the Watchlist copy's ListingFacts.dolby_vision.
  • The Under posters sample poster keeps "4K · HDR" (its made-up facts are HDR10).
  • Test: video_and_age_rating_lines asserts the Dolby Vision wording.

The identity line said "4K" for an HDR or Dolby Vision film and nothing more: the poster caption's Video quality part was the only place the app worded the dynamic range. The detail page now draws one more keyline chip right after the resolution, "Dolby Vision" for a file that carries it and "HDR" for any other HDR video (the facts the page already holds, of the same default version the resolution chip describes). Home's hero draws "HDR" in the same place when its row says so; a listing row knows only that its video is HDR, so a Dolby Vision title reads "HDR" there, as it does under a poster.

Both go through the shared identity row, so the chip takes part in the text run's budget and elision like the others.

Signed-off-by: Tiago Pereira <[email protected]>
The hero read "HDR" for a Dolby Vision title because a listing row knew only that its video is HDR. The row now also carries whether that stream is Dolby Vision, along the lane the HDR fact already travels (ListingFacts, PmsMovie), and the hero words both through fmt::dynamic_range.

Signed-off-by: Tiago Pereira <[email protected]>
@tiper
tiper force-pushed the up/caption-dolby-vision branch from 3c6fd8a to 61951ab Compare November 16, 2026 10:05
The Video quality part of the caption under posters now words the
dynamic range through the same fmt::dynamic_range as the detail page
and the Home hero, so a Dolby Vision title reads "4K · Dolby Vision"
rather than "4K · HDR".

Signed-off-by: Tiago Pereira <[email protected]>
The detail page's HDR / Dolby Vision chip now reads route::detail_played_video's
range(), the same file the resolution chip describes, and names what this set
will present. The Home hero keeps the listing row's facts through
DynamicRange::carried.

Signed-off-by: Tiago Pereira <[email protected]>
fmt::dynamic_range now takes a DynamicRange (plxnative#1457); the caption names what the
listing row's file carries.

Signed-off-by: Tiago Pereira <[email protected]>
@tiper tiper changed the title Poster caption: a Dolby Vision title says so, as its detail page does Poster caption: name Dolby Vision for a file that carries it Nov 19, 2026

@GLinnik21 GLinnik21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@GLinnik21
GLinnik21 merged commit 707368d into plxnative:main Nov 21, 2026
16 checks passed
@tiper
tiper deleted the up/caption-dolby-vision branch November 21, 2026 19:21
tiper added a commit to tiper/fin-native that referenced this pull request Nov 23, 2026
…s declared

A remux can drop the container's Dolby Vision configuration record and
keep the RPUs in the bitstream. The server then reports no Dolby Vision,
the Load declares no DolbyHdrInfo node and the panel shows the base
layer while every RPU is still fed.

For an HEVC stream with no record, the demuxer now reads its first
packets (ff::RpuOnlyScan) and reports, once per open, what the first
RPU says (FeedRaw::rpu_dovi): Profile 5, or Profile 8 over a PQ or HLG
base layer. An RPU that maps an enhancement layer, an enhancement-layer
NAL and an RPU that does not parse report nothing; a Profile 8 over any
other transfer is logged as refused. Once the Load has returned, the
pump has the route declare it (route::declare_rpu_dovi: the decision
the record would have frozen, so Dolby Vision Off, a set without
confirmed support and a re-encode change nothing) and reloads once with
the node. The installed route, the file's own declaration and the
stored Auto Original candidate all follow, and a later withdrawal is
not undone.

The base layer's transfer is the container's, or, where the container
states none (a Matroska remux with no Colour element reports trc=2),
the first SPS's VUI transfer_characteristics (ff::stream_transfer).

Measured on an LG C1 (webOS 6.5.3), stable build, on an MKV with Profile
8 RPUs, no record, trc=2 in the container and PQ in the SPS:
- before: Load dv=present:0, dynamicRange=hdr, pictureMode=hdrCinemaBright
- after: "the SPS says trc=16", "Dolby Vision P8 bl_compat=1 in the
  RPUs", "dv: reload at 323.291s with DolbyHdrInfo", Load
  dv=present:1 P8/1, dynamicRange=dolbyHdr,
  pictureMode=dolbyHdrCinemaBright; no withdrawal after the reload.
Not measured: a Profile 5 or HLG Profile 8 stream with no record, and
the 49SM9000 dev set.

Not remembered: the finding lives for the play that made it. The
server's metadata still reports no Dolby Vision for such a file, so the
detail and Home hero range chip (plxnative#1348) and the poster caption (plxnative#1412)
read HDR while the set plays Dolby Vision, and each play declares it
again with one reload.

Signed-off-by: Tiago Pereira <[email protected]>
GLinnik21 pushed a commit that referenced this pull request Nov 23, 2026
…s declared (#1472)

* Playback: Dolby Vision found in the RPUs of a stream with no record is declared

A remux can drop the container's Dolby Vision configuration record and
keep the RPUs in the bitstream. The server then reports no Dolby Vision,
the Load declares no DolbyHdrInfo node and the panel shows the base
layer while every RPU is still fed.

For an HEVC stream with no record, the demuxer now reads its first
packets (ff::RpuOnlyScan) and reports, once per open, what the first
RPU says (FeedRaw::rpu_dovi): Profile 5, or Profile 8 over a PQ or HLG
base layer. An RPU that maps an enhancement layer, an enhancement-layer
NAL and an RPU that does not parse report nothing; a Profile 8 over any
other transfer is logged as refused. Once the Load has returned, the
pump has the route declare it (route::declare_rpu_dovi: the decision
the record would have frozen, so Dolby Vision Off, a set without
confirmed support and a re-encode change nothing) and reloads once with
the node. The installed route, the file's own declaration and the
stored Auto Original candidate all follow, and a later withdrawal is
not undone.

The base layer's transfer is the container's, or, where the container
states none (a Matroska remux with no Colour element reports trc=2),
the first SPS's VUI transfer_characteristics (ff::stream_transfer).

Measured on an LG C1 (webOS 6.5.3), stable build, on an MKV with Profile
8 RPUs, no record, trc=2 in the container and PQ in the SPS:
- before: Load dv=present:0, dynamicRange=hdr, pictureMode=hdrCinemaBright
- after: "the SPS says trc=16", "Dolby Vision P8 bl_compat=1 in the
  RPUs", "dv: reload at 323.291s with DolbyHdrInfo", Load
  dv=present:1 P8/1, dynamicRange=dolbyHdr,
  pictureMode=dolbyHdrCinemaBright; no withdrawal after the reload.
Not measured: a Profile 5 or HLG Profile 8 stream with no record, and
the 49SM9000 dev set.

Not remembered: the finding lives for the play that made it. The
server's metadata still reports no Dolby Vision for such a file, so the
detail and Home hero range chip (#1348) and the poster caption (#1412)
read HDR while the set plays Dolby Vision, and each play declares it
again with one reload.

Signed-off-by: Tiago Pereira <[email protected]>

* Playback: the RPU declaration is direct play only, with the setting frozen at the resolve

A play's RPU declaration is now one per-play state (RpuDv), set at the
resolve and kept outside the route projection: Open with the Dolby
Vision setting the resolve read, for a file with no record; Declared;
Closed after a decline, a withdrawal, or for a file with a record. A
rollback cannot re-open it, and turning Dolby Vision on mid-play no
longer declares.

Only a direct play declares: a server remux's start.mkv begins at its
offset, so the reload's seek would land wrong. A report on a transcoding
route leaves the play open. The pump also waits for an Original trial to
be confirmed, as the plain seek does. A Profile 5 declaration forbids a
video copy from then on, so a later re-encode never hands the set its
base layer undeclared.

The SPS walk refuses a log2_max_pic_order_cnt_lsb_minus4 past H.265's
limit of 12 instead of overflowing on a corrupt SPS.

Signed-off-by: Tiago Pereira <[email protected]>

* Playback: a Profile 5 source forbids a video copy on every rebuild

The copy restriction lived only on the route's contract, which an Original
recovery resets, so an audio conversion after a return to Original asked the
server for directStream=1. Read it from the file's own Dolby Vision record
as well, which the RPU declaration already adopts.

* Playback: say what the Profile 5 copy rule does for an inferred record

The file's Dolby Vision fields are set at the resolve and rewritten by the
RPU declaration, not frozen. An inferred Profile 5 refused a copy still has
no correct server route: the server has no record, so it encodes the base
layer.

* Playback: one reader for the video-copy rule

The Original remux shape, the burn check and the failed-open ladder read
the rule through is_no_video_copy, so the candidate's own Profile 5 term
goes: the candidate's record is the file's. The enhancement fixture plants
the file's record beside the candidate's, as a resolve does.

---------

Signed-off-by: Tiago Pereira <[email protected]>
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.

2 participants