mac-capture: Add toggle to enable higher quality SCK transparency #12945
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.
Description
Adds a toggle that allows macOS Screen Capture sources to use the BGRA pixel format, enabling higher quality transparency, since the default format,

l10r, only includes 2 bits to represent the alpha channel, leading to poor alpha composite quality. New toggle visible below:Motivation and Context
macOS Screen Captures have had inferior alpha compositing since the introduction of the source because of l10r's low resolution transparency. For example:
l10r:BGRA:


BGRA will feature less color accuracy given the two fewer bits per channel for RGB. This mostly takes the form of increased banding within gradients that make full use of the 10-bit color range, often encountered with macOS's use of the P3 color space on most Apple displays.
Higher resolution alpha, however, enables various creative usecases with the ability to cleanly composite application and window captures with correct shadows and transparency in front of arbitrary backgrounds created in OBS.
How Has This Been Tested?
Tested on Apple Silicon, macOS 15.7.1.
Types of changes
Checklist: