// d3d12umddi.h
typedef struct D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020 {
BOOL Enable;
FLOAT Lower;
FLOAT Upper;
} D3D12DDI_VIDEO_PROCESS_LUMA_KEY_0020;
View the official Windows Driver Kit DDI referenceNo description available.
Specifies values for luma keying.
EnableWhether luma keying is enabled.
LowerThe lower bound for the luma key. The valid range is [0 ... 1]. If the Enable member is false, this value is ignored.
UpperThe 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:
Note that the value is clamped to the range [0 ... 1] before multiplying by 255.