UID | title | description | old-location | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | tech.root | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NS:d3d12umddi.D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020 |
D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020 (d3d12umddi.h) |
Specifies values for luma keying. |
display\d3d12ddi_video_process_luma_key.htm |
04/16/2018 |
|
D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020, D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020 structure [Display Devices], d3d12umddi/D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020, display.d3d12ddi_video_process_luma_key |
d3d12umddi.h |
D3d12umddi.h |
Windows |
Windows |
display |
D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020 |
|
|
|
|
|
Specifies values for luma keying.
Whether luma keying is enabled.
The lower bound for the luma key. The valid range is [0 ... 1]. If the Enable member is false, this value is ignored.
The upper bound for the luma key. The valid range is [0 ... 1]. If the Enable member is false, this value is ignored.
The values of Lower and Upper are the lower and upper bounds of the luma key. For a format that has n bits per channel, these values are converted to luma values as follows:
value = f * ((1 << n) - 1)
Any pixel whose luma value falls within the upper and lower bounds, inclusive, is treated as transparent. For example, if the pixel format uses 8-bit luma, the upper bound is calculated as follows:
BYTE Y = BYTE(max (min (1.0, Upper), 0.0) * 255.0)
Note that the value is clamped to the range [0 ... 1] before multiplying by 255.