DXVAHD_BLT_STATE_CONSTRICTION_DATA structure (dxvahd.h)

Specifies whether the output is downsampled in a blit operation, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

Syntax

typedef struct _DXVAHD_BLT_STATE_CONSTRICTION_DATA {
  BOOL Enable;
  SIZE Size;
} DXVAHD_BLT_STATE_CONSTRICTION_DATA;

Members

Enable

If TRUE, downsampling is enabled. Otherwise, downsampling is disabled and the Size member is ignored. The default state value is FALSE (downsampling is disabled).

Size

The sampling size. The default value is (1,1).

Remarks

If the Enable member is TRUE, the device downsamples the composed target rectangle to the size given in the Size member, and then scales it back to the size of the target rectangle.

The width and height of Size must be greater than zero. If the size is larger than the target rectangle, downsampling does not occur.

To use this state, the device must support downsampling, indicated by the DXVAHD_FEATURE_CAPS_CONSTRICTION capability flag. To query for this capability, call IDXVAHD_Device::GetVideoProcessorDeviceCaps. If the device supports downsampling, it sets the DXVAHD_FEATURE_CAPS_CONSTRICTION flag in the FeatureCaps member of the DXVAHD_VPDEVCAPS structure.

If the device does not support downsampling, the IDXVAHD_VideoProcessor::SetVideoProcessBltState method fails for this state.

Downsampling is sometimes used to reduce the quality of premium content when other forms of content protection are not available.

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

Direct3D Video Structures

IDXVAHD_VideoProcessor::SetVideoProcessBltState

Media Foundation Structures