mirror of
https://github.com/games-on-whales/wolf.git
synced 2026-10-15 13:02:03 +00:00
[PR #469] fix(hdr): complete end-to-end HDR transport #484
Labels
No labels
🧠 1 - 🤖 999
AMD
bug
bug
cannot reproduce
documentation
duplicate
easy
enhancement
enhancement
enhancement
fixed?
fixed?
good first issue
hard
help wanted
Intel
invalid
LXC
medium
moonlight-protocol
Multi GPU
nixos
not a bug
nvidia
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolf#484
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/wolf/pull/469
Author: @elibosley
Created: 7/31/2026
Status: 🔄 Open
Base:
feat/vulkan-image← Head:codex/hdr-vulkan-transport📝 Commits (1)
886ef7efix(hdr): stabilize Vulkan HDR transport📊 Changes
18 files changed (+246 additions, -103 deletions)
View changed files
📝
src/moonlight-protocol/moonlight.cpp(+4 -1)📝
src/moonlight-protocol/moonlight/control.hpp(+7 -1)📝
src/moonlight-server/control/control.cpp(+24 -15)📝
src/moonlight-server/events/events.hpp(+2 -13)📝
src/moonlight-server/rest/endpoints.hpp(+2 -2)📝
src/moonlight-server/rtsp/commands.hpp(+22 -2)📝
src/moonlight-server/sessions/lobbies.cpp(+1 -0)📝
src/moonlight-server/sessions/moonlight.cpp(+1 -0)📝
src/moonlight-server/state/config.hpp(+19 -1)📝
src/moonlight-server/state/configTOML.cpp(+16 -5)📝
src/moonlight-server/state/data-structures.hpp(+3 -4)📝
src/moonlight-server/state/serialised_config.hpp(+2 -1)📝
src/moonlight-server/streaming/streaming.cpp(+44 -50)📝
src/moonlight-server/streaming/streaming.hpp(+6 -2)📝
tests/assets/config.test.toml(+1 -0)📝
tests/testControl.cpp(+13 -1)📝
tests/testMoonlight.cpp(+62 -0)📝
tests/testRTSP.cpp(+17 -5)📄 Description
Summary
This completes Wolf's end-to-end HDR transport path: capability advertisement, Moonlight negotiation, control-channel activation, producer configuration, 10-bit encoder selection, and per-frame color handling.
Root cause
Wolf previously mixed the connection-level HDR transport contract with the producer's frame-level SDR/PQ state. That allowed producer transitions to toggle Moonlight HDR mode after connection, while clients requesting HDR through
dynamicRangeMode=1could retain a stale SDRencoderCscMode. AV1 Main10 was also omitted from host capability advertisement, and hardware HDR capability was not constrained by the applications currently exposed to Moonlight.Fix
dynamicRangeModeas the authoritative HDR request and normalize HDR sessions to BT.2020/PQ.support_hdrconfiguration and advertise host HDR only when both the encoder and a currently exposed application support it.Result
HDR-capable applications negotiate stable HEVC Main10 or AV1 Main10 BT.2020/PQ streams. SDR-only applications are not advertised as HDR-capable, while SDR frames presented during an HDR session are converted by the media pipeline without changing the negotiated transport.
Validation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.