// d3dkmdt.h
typedef union _D3DKMDT_WIRE_FORMAT_AND_PREFERENCE {
struct {
D3DKMDT_MODE_PREFERENCE Preference : 2;
UINT Rgb : 6;
UINT YCbCr444 : 6;
UINT YCbCr422 : 6;
UINT YCbCr420 : 6;
UINT Intensity : 6;
};
UINT Value;
} D3DKMDT_WIRE_FORMAT_AND_PREFERENCE, *PD3DKMDT_WIRE_FORMAT_AND_PREFERENCE;
View the official Windows Driver Kit DDI referenceNo description available.
Holds information about the preferred pixel encoding format.
PreferenceFunctions as it has in previous releases, but using only 2 bits.
RgbUINT describing supported/requested pixel encoding using RGB sample format.
YCbCr444UINT describing supported/requested pixel encoding using YcbCr 4:4:4 sample format.
YCbCr422UINT describing supported/requested pixel encoding using YcbCr 4:2:2 sample format.
YCbCr420UINT describing supported/requested pixel encoding using YcbCr 4:2:0 sample format.
IntensityUINT describing supported/requested pixel encoding using intensity only.
ValueUINT used to operate on the combined bit-fields.
The five standard color sample formats for pixel transmission are exposed separately to allow the driver to report capabilities individually but it is expected that the vast majority of display devices will not support all sample formats as input, in particular support of intensity only signals is likely restricted to monochrome displays which should therefore not support color sample formats.
During mode enumeration via EnumVidPnCofuncModality, the driver should set values into all five fields to indicate the pixel encodings that are supported as inputs to the display device in the current configuration.
When SetTimingsFromVidPn is called, one of these fields will indicate the pixel encoding and sample format to be applied.