D3D12DDI_VIDEO_SCALE_SUPPORT_FLAGS_0022 enumeration (d3d12umddi.h)

The D3D12DDI_VIDEO_SCALE_SUPPORT_FLAGS_0022 enumeration contains the options for video scale support.

Syntax

typedef enum D3D12DDI_VIDEO_SCALE_SUPPORT_FLAGS_0022 {
  D3D12DDI_VIDEO_SCALE_SUPPORT_FLAG_0022_NONE = 0x0,
  D3D12DDI_VIDEO_SCALE_SUPPORT_FLAG_0022_POW2_ONLY = 0x1,
  D3D12DDI_VIDEO_SCALE_SUPPORT_FLAG_0022_EVEN_DIMENSIONS_ONLY = 0x2
} ;

Constants

 
D3D12DDI_VIDEO_SCALE_SUPPORT_FLAG_0022_NONE
Value: 0x0
All possible output size width/height combinations that exist between the Max size and Min size for the extent, inclusive, are supported.
D3D12DDI_VIDEO_SCALE_SUPPORT_FLAG_0022_POW2_ONLY
Value: 0x1
The scaler supports only output sizes at a pow2 scale factors within the range. The x and y scale factors must be the same for both dimensions when this flag is set.

The following is an example that iterates over the supported output sizes for one dimension when this flag is set:

c<br>bool OutputSizeSupported(UINT Size, UINT Max, UINT Min)<br>{<br> UINT CurrentSize = Max;<br> while (CurrentSize >= Min)<br> {<br> if (CurrentSize == Size)<br> {<br> return true;<br> }<br><br> CurrentSize = (CurrentSize + 1) / 2;<br> }<br><br> return false;<br>}<br>
D3D12DDI_VIDEO_SCALE_SUPPORT_FLAG_0022_EVEN_DIMENSIONS_ONLY
Value: 0x2
The scaler supports only output sizes that have even output dimensions.

Requirements

Requirement Value
Header d3d12umddi.h (include D3d12umddi.h)

See also

D3D12DDI_VIDEO_SCALE_SUPPORT_0032