PFND3DWDDM2_1DDI_VIDEOPROCESSORSETSTREAMHDRMETADATA callback function (d3d10umddi.h)
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.
Syntax
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
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
hVideoProcessor
A handle to the video processor object.
StreamIndex
Indicates the input stream.
Type
Indicates the type of the HDR metadata provided.
Size
Indicates the type of the HDR metadata provided.
- For D3DDDI_HDR_METADATA_TYPE_NONE, the size should be 0.
- For D3DDDI_HDR_METADATA_TYPE_HDR10, the size is sizeof(D3DDDI_HDR_METADATA_HDR10).
pMetaData
Points to a structure containing the HDR metadata.
- For D3DDDI_HDR_METADATA_TYPE_NONE, this should be NULL.
- For D3DDDI_HDR_METADATA_TYPE_HDR10, this is a pointer to a DD3DDDI_HDR_METADATA_HDR10 structure.
Return value
None
Remarks
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.
Requirements
Requirement | Value |
---|---|
Header | d3d10umddi.h |