DXVAHDDDI_BLT_STATE_ALPHA_FILL_DATA structure (d3dumddi.h)

The DXVAHDDDI_BLT_STATE_ALPHA_FILL_DATA structure describes data that specifies the alpha-fill mode of the output.

Syntax

typedef struct _DXVAHDDDI_BLT_STATE_ALPHA_FILL_DATA {
  [in] DXVAHDDDI_ALPHA_FILL_MODE Mode;
  [in] UINT                      StreamNumber;
} DXVAHDDDI_BLT_STATE_ALPHA_FILL_DATA;

Members

[in] Mode

A DXVAHDDDI_ALPHA_FILL_MODE-typed value that indicates the type of alpha-fill mode to set. The default value is DXVAHDDDI_ALPHA_FILL_MODE_BACKGROUND, which indicates to fill the output with the alpha value of the background color.

[in] StreamNumber

A zero-based stream index number. This number must be less than the number, which the driver sets in the MaxStreamStates member of the DXVAHDDDI_VPDEVCAPS structure. The driver should refer to this number only when the Mode member is set to DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM. The default value is zero.

Remarks

The Direct3D runtime specifies the DXVAHDDDI_BLT_STATE_ALPHA_FILL state in the State member of the D3DDDIARG_DXVAHD_SETVIDEOPROCESSBLTSTATE structure in a call to the driver's SetVideoProcessBltState function only when the output format is a format type with alpha (for example, D3DDDIFMT_A8R8G8B8 from the D3DDDIFORMAT enumeration).

The DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM mode requires the following conditions:

  • The DXVAHDDDI_BLT_STATE_ALPHA_FILL state only affects alpha within the destination rectangle. The rest of the output remains unchanged.
  • If the input format type is without alpha, the source alpha is considered as opaque.
  • If the input stream is disabled or unavailable, the output remains unchanged.

Requirements

Requirement Value
Minimum supported client DXVAHDDDI_BLT_STATE_ALPHA_FILL_DATA is supported beginning with the Windows 7 operating system.
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_DXVAHD_SETVIDEOPROCESSBLTSTATE

D3DDDIFORMAT

DXVAHDDDI_ALPHA_FILL_MODE

DXVAHDDDI_VPDEVCAPS

SetVideoProcessBltState