Repository navigation
libobs: image loader's WIC fallback behind graphics-ffmpeg-host.h, portable obs_bswap16 (#872) - #2125
Merged
Merged
Conversation
zackees
enabled auto-merge
October 24, 2026 10:14
6 of 7 tasks
6 of 7 tasks
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 #872 (slice 1 of 3:
graphics-ffmpeg.c.handlibobs-media.pch.h).graphics-ffmpeg-host.h:gs_image_host_fallback_load(), the second decoder for files FFmpeg can't load.graphics-ffmpeg-host-windows.c.h: the WIC/JPEG XR loader and its PQ→scRGB helpers, moved verbatim (onlywic_image_initrenamed and its unusedinfoparameter dropped).graphics-ffmpeg-host-posix.c.h: returns NULL, as before.obs_bswap16: one portable shift/or expression instead of_byteswap_ushort/__builtin_bswap16by compiler.wincodec.h+windowscodecs.libmove from the media PCH to the Windows host PCH. New groups registered inlibobs/build/source-sets.json(Windows set; macOS and Linux sets), so CMake,cmake/crossand the Rust builds that read the manifest pick them up. Public headers untouched.graphics-ffmpeg.c.h,libobs-media.pch.hremoved.RED: 4f1112c adds
test_graphics_ffmpeg_host(Tier 2: POSIX fallback loads nothing and leaves the outputs alone); fails to build.GREEN: next commits. Locally the new test and all
test_image_*pass; cross win-x64 + mac-arm64 compile. Local-only failures are the same set as on unrelated branches (deinterlace field order, native-core canvas/shutdown/audio,test_output_end_capture_thread_join).Tiers 1/3/4 n/a (C restructuring, no behavior change).