Commit Graph
62 Commits
Author SHA1 Message Date
Geoffrey McRae b7e56244c1 [obs] hdr: correct logical and color cursor composition
Keep masked-color XOR operands on the untransformed logical path rather
than applying the color cursor shader. Preserve the white level delivered
with cursor updates instead of replacing it with frame SDR white during
format changes.

This keeps inverse-destination blending intact and ensures HDR cursor
brightness follows QueryHardwareCursor3.
2026-07-23 09:44:00 +10:00
Geoffrey McRae cd09c080b8 [obs] hdr: apply the complete HDR cursor transform
Keep transform-only cursor messages independent from visibility and use
the cursor-specific SDR white level reported by IddCx.

Apply the Windows XYZ matrix, scalar, and transfer-domain LUT before
compositing colour and masked-colour cursors into OBS scRGB. Preserve
premultiplied alpha and leave monochrome logical masks unchanged.
2026-07-23 09:44:00 +10:00
Geoffrey McRae 9e4de870fc [client] egl: fix messy white level default definition 2026-07-23 09:44:00 +10:00
Geoffrey McRae 116cafc806 [obs] fix DMABUF import attributes
Match the EGL client’s DRM formats, use implicit linear modifiers, and
reset cached imports safely across format changes and restarts. Fall
back to CPU upload if either DMA buffer cannot be imported.
2026-07-23 09:43:59 +10:00
Geoffrey McRae 5d6ef7d690 [obs] hdr: use BT.2020 gamut for PQ decoding
Mastering display primaries do not define the pixel encoding gamut.
2026-07-23 09:43:59 +10:00
Geoffrey McRae 845c612d0f [idd/client/obs] hdr: wire up the SdrWhiteLevel from the capture 2026-07-23 09:43:59 +10:00
Geoffrey McRae 9bcf1d4994 [obs] hdr: improve hdr cursor rendering 2026-07-23 09:43:59 +10:00
Geoffrey McRae 27faae1116 [obs] fix masked color and monochrome cursors 2026-07-23 09:43:59 +10:00
Geoffrey McRae f9a77048ab [obs] fix HDR support to properly convert from PQ 2026-07-23 09:43:59 +10:00
Geoffrey McRae 28973ac4b1 [obs] implement HDR support 2026-07-16 05:34:09 +10:00
Geoffrey McRae 11b3ac00a8 [client/obs] update LGMP to detect version missmatch since struct change 2026-07-15 17:25:52 +10:00
Geoffrey McRae 69f44a003d [all] refresh copyright 2026-05-31 15:13:57 +10:00
Geoffrey McRae e9b7bdfea1 Revert "[all] refresh copyright"
Corrupted IDD sources due to lack of UTF-8 with BOM support in the
script.
2026-05-31 15:10:44 +10:00
Geoffrey McRae 98602fb95e [all] refresh copyright 2026-05-31 15:03:37 +10:00
Geoffrey McRae d02d46283c [obs] dmabuf: fix repeated re-creation of dmabuf texture 2025-09-14 00:14:37 +10:00
Geoffrey McRae 27fe47cbe2 [obs] dmabuf: enable dmabuf by default 2025-03-06 14:39:51 +11:00
Geoffrey McRae aefbebff9c [obs] cosmetics: adhere to 80 column rule 2025-03-06 14:39:31 +11:00
Geoffrey McRae 551298ed5b [doc] all: update copyright year 2025-03-05 12:24:38 +11:00
Geoffrey McRae c169d4ab23 [obs] dmabuf: fix failure to display frames in both buffers 2025-02-14 19:24:36 +11:00
Geoffrey McRae 0990c59eff [obs] fix compilation for older versions of OBS 2024-03-18 17:42:40 +11:00
Geoffrey McRae fb1d96e147 [obs] tell OBS if we are operating in HDR 2024-03-18 17:35:25 +11:00
Geoffrey McRae 0b210a280d [all] update the copyright to 2024 2024-02-01 17:16:31 +11:00
Geoffrey McRae ad00aaacd0 [obs] fix non-dmabuf 24-bit imports
OBS `GS_RGBA` maps to the sRGB color space which breaks our mapping
kludge, as such we need to use the UNORM variants to avoid this
2024-01-27 02:14:05 +11:00
Geoffrey McRae 1b75ae0762 [obs] fix 24-bit import support with dmabuf 2024-01-27 00:44:38 +11:00
Geoffrey McRae 1f4395570c [obs] fix timeout when unsupported frame type is provided 2023-11-15 17:39:09 +11:00
Geoffrey McRae 2e515657dd [all] update/add license headers 2023-10-20 15:36:34 +11:00
Geoffrey McRae fa6f1abaac [obs] fix compatibility with updated LGMP build 2022-11-08 00:00:39 +11:00
esi 7e42e6cdce [obs] Fix function call causing crash on lgUpdate 2022-11-01 08:01:54 +11:00
esi 28cba2e2b3 [obs] Allow the client to auto-recover
Previously, if the client's subscription to the frame buffer became
invalid for any reason, the video feed in OBS would freeze until the
user goes in and changes any of the settings.  This commit allows the
plugin to automatically attempt to recover.
2022-08-09 15:17:58 +10:00
Daniel Cordero 4f3682fece Add a setting that hides the mouse cursor
Give OBS plugin users the option of hiding or showing the mouse cursor, since
Looking Glass renders it client-side.
2022-07-01 08:34:19 +10:00
matthewjmc 53c843d9dd [common] Update framebuffer metadata + references 2022-05-16 20:01:09 +10:00
Geoffrey McRae eae559b4c9 [client/obs] update to support downscaled frames coming from the host 2022-05-01 19:51:25 +10:00
Geoffrey McRae 297d0be2dc [obs] allow for the larger KVMFR header size now 2022-01-05 21:57:49 +11:00
Geoffrey McRae 952ebea2c5 [all] refresh copyright dates 2022-01-05 19:42:46 +11:00
Quantum c3f7327187 [obs] display DMABUF option but disable it on older OBS
This allows users to be aware that the option exists and they should upgrade.
2021-08-15 18:01:15 +10:00
Quantum dda927da18 [obs] implement dmabuf import support on OBS 27+ 2021-08-13 20:25:35 +10:00
Quantum 51b9cd4e5a [all] copyright: use unicode copyright sign ©
This is done for consistency with the license strings in appstrings.c.
2021-08-04 21:16:35 +10:00
Quantum 24d0aa0c18 [all] normalize copyright on all source files 2021-06-06 11:53:05 +10:00
arcnmx 6058a0e243 [obs] fix oob cursor writes 2021-06-01 14:37:45 +10:00
arcnmx 1462ab0cb4 [obs] fix cursor blending 2021-06-01 14:37:45 +10:00
arcnmx 186b0f1efd [obs] fix monochrome cursor crop 2021-06-01 14:37:45 +10:00
arcnmx 1a530da139 [obs] fix oob cursor writes
Allocate enough memory for the cursor data!
2021-05-23 12:28:35 +10:00
Geoffrey McRae b2961c7939 [all] added new format version field to frame header 2020-10-12 18:52:37 +11:00
Geoffrey McRae a78d9c2b90 [obs] added RGBA16F support 2020-10-11 20:42:09 +11:00
Geoffrey McRae 4f40ce4b40 [obs] added monochrome cursor support 2020-10-11 12:04:10 +11:00
Geoffrey McRae eb343ca82e [obs] added masked color cursor support 2020-10-11 01:07:20 +11:00
Geoffrey McRae e2f6621de9 [obs] added RGBA cursor support 2020-10-11 00:39:31 +11:00
Geoffrey McRae 0f2ecdf5f1 [obs] cosmetic 2020-08-09 12:31:56 +10:00
Geoffrey McRae 3511fb8d59 [obs] microsttuer fix, be sure to always grab the latest frame 2020-08-09 12:29:52 +10:00
Geoffrey McRae 94d383a8c1 [obs] remove useless advance operation 2020-05-22 22:51:41 +10:00