D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE enumeration (d3d12video.h)
Specifies the alpha fill mode for video processing. This value is used by the D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC structure.
Syntax
typedef enum D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE {
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE,
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND,
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION,
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_SOURCE_STREAM
} ;
Constants
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE Alpha values inside the target rectangle are set to opaque. |
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_BACKGROUND Alpha values inside the target rectangle are set to the alpha value specified in the background color. |
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_DESTINATION Existing alpha values remain unchanged in the output surface. |
D3D12_VIDEO_PROCESS_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 AlphaFillModeSourceStreamIndex member of D3D12_VIDEO_PROCESS_OUTPUT_STREAM_ARGUMENTS. 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. |
Remarks
D3D12_VIDEO_PROCESS_ALPHA_FILL_MODE_OPAQUE must be always supported. The background, destination, and source stream modes are only supported when the driver reports D3D12_VIDEO_PROCESS_FEATURE_FLAG_ALPHA_FILL.
Requirements
Requirement | Value |
---|---|
Header | d3d12video.h |