// dispmprt.h
typedef struct _DXGK_DIAG_DISPLAY_SCANOUT_BUFFER_HISTOGRAM {
INT MinPixelValue;
INT MaxPixelValue;
} DXGK_DIAG_DISPLAY_SCANOUT_BUFFER_HISTOGRAM;
View the official Windows Driver Kit DDI referenceNo description available.
The DXGK_DIAG_DISPLAY_SCANOUT_BUFFER_HISTOGRAM structure provides histogram information for the current buffer being scanned out during diagnostic data collection.
MinPixelValueMinimum pixel value in the histogram for the currently scanned out buffer. A value of -1 specifies that no histograms are supported.
MaxPixelValueMaximum pixel value in the histogram for the currently scanned out buffer.
DXGK_DIAG_DISPLAY_SCANOUT_BUFFER_HISTOGRAM is a member of the DXGK_DIAG_SCANOUT_BUFFER_CONTENT structure, which is passed as a member of the DXGK_DISPLAYSTATE_INTRUSIVE structure in calls to DxgkDdiGetDisplayStateIntrusive during diagnostic data collection.
If the hardware doesn't support CRC calculation on the scanned out pixels and the driver/hardware maintains a histogram of the buffers being scanned out then it should return MinPixelValue and MaxPixelValue for the current buffer being scanned out. These values should be on the final scanned out pixels including all gamma and any other transformation applied. Since the minimum and maximum values will depend on the gamma values, and the operating system might not know the whole gamma curve being applied, the OS will only use these values for an overall decision of whether the pixels might be black or near black.
DXGK_DIAG_SCANOUT_BUFFER_CONTENT
DXGK_DIAG_DISPLAY_SCANOUT_BUFFER_CRC
DXGKARG_GETDISPLAYSTATEINTRUSIVE
DxgkDdiGetDisplayStateIntrusive