// d3d10umddi.h
PFND3DWDDM2_1DDI_VIDEOPROCESSORSETSTREAMHDRMETADATA Pfnd3dwddm21DdiVideoprocessorsetstreamhdrmetadata;
VOID Pfnd3dwddm21DdiVideoprocessorsetstreamhdrmetadata(
D3D10DDI_HDEVICE hDevice,
D3D11_1DDI_HVIDEOPROCESSOR hVideoProcessor,
UINT StreamIndex,
D3DDDI_HDR_METADATA_TYPE Type,
UINT Size,
const VOID *pMetaData
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Implemented by the client driver to set stream HDR metadata to optimize video for display. This callback sets the maximum number of nits for which the content was authored.
hDeviceA handle to the display device (graphics context).
hVideoProcessorA handle to the video processor object.
StreamIndexIndicates the input stream.
TypeIndicates the type of the HDR metadata provided.
SizeIndicates the type of the HDR metadata provided.
pMetaDataPoints to a structure containing the HDR metadata.
//Declaration
PFND3DWDDM2_1DDI_VIDEOPROCESSORSETSTREAMHDRMETADATA Pfnd3dwddm21DdiVideoprocessorsetstreamhdrmetadata;
// Definition
VOID Pfnd3dwddm21DdiVideoprocessorsetstreamhdrmetadata
(
D3D10DDI_HDEVICE hDevice
D3D11_1DDI_HVIDEOPROCESSOR hVideoProcessor
UINT StreamIndex
D3DDDI_HDR_METADATA_TYPE Type
UINT Size
CONST VOID *pMetaData
)
{...}
When processing an HDR stream, the driver may use this brightness information to tone map the video content to optimize it for the output display.
D3DWDDM2_1DDI_VIDEODEVICEFUNCS structure