DXVAHD_ALPHA_FILL_MODE enumeration (dxvahd.h)

Specifies how the output alpha values are calculated for Microsoft DirectX Video Acceleration High Definition (DXVA-HD) blit operations.

Syntax

typedef enum _DXVAHD_ALPHA_FILL_MODE {
  DXVAHD_ALPHA_FILL_MODE_OPAQUE = 0,
  DXVAHD_ALPHA_FILL_MODE_BACKGROUND = 1,
  DXVAHD_ALPHA_FILL_MODE_DESTINATION = 2,
  DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM = 3
} DXVAHD_ALPHA_FILL_MODE;

Constants

 
DXVAHD_ALPHA_FILL_MODE_OPAQUE
Value: 0
Alpha values inside the target rectangle are set to opaque.
DXVAHD_ALPHA_FILL_MODE_BACKGROUND
Value: 1
Alpha values inside the target rectangle are set to the alpha value specified in the background color. See DXVAHD_BLT_STATE_BACKGROUND_COLOR.
DXVAHD_ALPHA_FILL_MODE_DESTINATION
Value: 2
Existing alpha values remain unchanged in the output surface.
DXVAHD_ALPHA_FILL_MODE_SOURCE_STREAM
Value: 3
Alpha values from the input stream are scaled and copied to the corresponding destination rectangle for that stream. If the input stream does not have alpha data, the DXVA-HD device sets the alpha values in the target rectangle to an opaque value. If the input stream is disabled or the source rectangle is empty, the alpha values in the target rectangle are not modified.

Remarks

The Mode member of the DXVAHD_BLT_STATE_ALPHA_FILL_DATA structure has this enumeration type. That member specifies the alpha-fill mode for the input stream identified by the StreamNumber member of the same structure. To set the alpha-fill mode, call IDXVAHD_VideoProcessor::SetVideoProcessBltState.

To find out which modes the device supports, call the IDXVAHD_Device::GetVideoProcessorDeviceCaps method. If the device sets the DXVAHD_FEATURE_CAPS_ALPHA_FILL flag in the FeatureCaps member of the DXVAHD_VPDEVCAPS structure, the DXVA-HD device supports any of the modes listed here. Otherwise, the alpha-fill mode must be DXVAHD_ALPHA_FILL_MODE_OPAQUE.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header dxvahd.h

See also

DXVA-HD

DXVAHD_BLT_STATE_ALPHA_FILL_DATA

Direct3D Video Enumerations

Media Foundation Enumerations