Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE enumeration

Specifies the alpha fill mode for video processing.

Syntax


typedef enum D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE { 
  D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE         = 0,
  D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND     = 1,
  D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION    = 2,
  D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM  = 3
} D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE;

Constants

D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_OPAQUE

Alpha values inside the target rectangle are set to opaque.

D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_BACKGROUND

Alpha values inside the target rectangle are set to the alpha value specified in the background color. To set the background color, call the ID3D11VideoContext::VideoProcessorSetOutputBackgroundColor method.

D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_DESTINATION

Existing alpha values remain unchanged in the output surface.

D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE_SOURCE_STREAM

Alpha values are taken from an input stream, scaled, and copied to the corresponding destination rectangle for that stream. The input stream is specified in the StreamIndex parameter of the ID3D11VideoContext::VideoProcessorSetOutputAlphaFillMode method.

If the input stream does not have alpha data, the video processor sets the alpha values in the target rectangle to opaque. If the input stream is disabled or the source rectangle is empty, the alpha values in the target rectangle are not modified.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

D3d11.h

See also

Direct3D 11 Video Enumerations
ID3D11VideoContext::VideoProcessorSetOutputAlphaFillMode

 

 

Show:
© 2017 Microsoft