Repository navigation
frontend: HDR screenshots through the platform facade (#883) - #1984
Merged
Merged
Conversation
zackees
force-pushed
the
infra/883-screenshot
branch
from
October 23, 2026 22:06
7950238 to
4f2ef89
Compare
RED: ScreenshotObj and its precompiled header still hold the Windows JXR writer and the HDR color space choice under _WIN32.
ScreenshotColorSpace() and SaveHdrScreenshot() (platform.hpp) replace the _WIN32 blocks in ScreenshotObj. platform-windows keeps scRGB for GS_CS_709_EXTENDED and writes JXR through WIC as before (SaveJxrImage and SaveJxr moved unchanged, with the WIC includes, into its precompiled header); macOS and X11 render sRGB and have no HDR writer. ScreenshotObj and its precompiled header leave the ratchet baseline.
zackees
force-pushed
the
infra/883-screenshot
branch
from
October 23, 2026 22:12
4f2ef89 to
d26995b
Compare
zackees
enabled auto-merge
October 23, 2026 22:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #883 (step 5a: the 3
ScreenshotObjconditionals and its precompiled header's 1). Stacked on #1980; review only the last two commits.ScreenshotColorSpace(source): Windows returns the source's space, withGS_CS_709_EXTENDED→GS_CS_709_SCRGBfor JXR. macOS and X11 returnGS_CS_SRGB(tonemap to SDR), as before.SaveHdrScreenshot(path, pixels, cx, cy): on Windows, the UTF-8 → wide path plusSaveJxr.SaveJxrImageandSaveJxrare moved unchanged intoplatform-windows.cpp.hpp. macOS and X11 return false, and the caller releases the reserved file exactly as the old#elsedid.#pragma comment(lib, "windowscodecs.lib")move fromfrontend-utility-screenshotobj.pch.hpp(no host conditional left) tofrontend-windows-platform.pch.hpp, after<windows.h>.BUILD.md: this changes precompiled headers, so a full Windows and macOS build has to pass before merge. I dispatched
ci.ymloninfra/883-screenshot; Run https://github.com/obs-rust/obs-studio/actions/runs/40027816147 (pre-rebase commits; the rebase onto #1977/#1980 changed none of this PR's files): Windows x64, Windows arm64, macOS arm64 and macOS x86_64 app builds passed. Ubuntu failed in setup with asetup_ubuntuparse error from #1948, before compiling; that is fixed in #1988. Flatpak failed linkingobs-browser.so, a file this PR doesn't touch. #1984's own Qt Frontend Linux lane compiled the frontend with this change.test_hdr_screenshots_go_through_the_facade. Locally:FAILED (failures=1)../lintok, includingtest_build_groups.Left in #883 after this:
output-filename-reserve.c.h(1, plus 2 in its PCH). Movingcreate_exclusiveto host files means adding a source totest/cmocka/tests.d/test_output_filename_reserve.cmake, so I'm asking about that on the issue first.Tiers 1-4 don't apply. Not user-visible.