DXVAHDDDI_STREAM_STATE_LUMA_KEY_DATA - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dumddi.h

typedef struct _DXVAHDDDI_STREAM_STATE_LUMA_KEY_DATA {
  [in] BOOL  Enable;
  [in] FLOAT Lower;
  [in] FLOAT Upper;
} DXVAHDDDI_STREAM_STATE_LUMA_KEY_DATA;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dumddi-_dxvahdddi_stream_state_luma_key_data)

_DXVAHDDDI_STREAM_STATE_LUMA_KEY_DATA structure

Description

The DXVAHDDDI_STREAM_STATE_LUMA_KEY_DATA structure describes stream-state data that specifies the luma key of the input. The driver assumes that a pixel that has a luma value within the luma-key range is transparent.

Members

Enable [in]

A Boolean value that specifies whether the luma key is enabled. The default value is FALSE, which indicates that the luma key is disabled.

Lower [in]

A FLOAT value in the 0.0 to 1.0 range that describes the lower luma-key value. The default value is 0.0.

Upper [in]

A FLOAT value in the 0.0 to 1.0 range that describes the upper luma-key value. The default value is 0.0.

Remarks

The Direct3D runtime specifies the DXVAHDDDI_STREAM_STATE_LUMA_KEY state in the State member of the D3DDDIARG_DXVAHD_SETVIDEOPROCESSSTREAMSTATE structure in a call to the driver's SetVideoProcessStreamState function. This happens only when the driver has previously set the DXVAHDDDI_FEATURE_CAPS_LUMA_KEY value in the FeatureCaps member of the DXVAHDDDI_VPDEVCAPS structure when the driver's GetCaps function is called with the D3DDDICAPS_DXVAHD_GETVPDEVCAPS value set.

If the driver does not set the DXVAHDDDI_INPUT_FORMAT_CAPS_RGB_LUMA_KEY value in the InputFormatCaps member of the DXVAHDDDI_VPDEVCAPS structure when the driver's GetCaps function is called with the D3DDDICAPS_DXVAHD_GETVPDEVCAPS value set, the driver ignores the luma-key data.

See also

D3DDDIARG_DXVAHD_SETVIDEOPROCESSSTREAMSTATE

DXVAHDDDI_VPDEVCAPS

GetCaps

SetVideoProcessStreamState