DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA structure (dxvahd.h)

Specifies the pixel aspect ratio (PAR) for the source and destination rectangles.

Syntax

typedef struct _DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA {
  BOOL            Enable;
  DXVAHD_RATIONAL SourceAspectRatio;
  DXVAHD_RATIONAL DestinationAspectRatio;
} DXVAHD_STREAM_STATE_ASPECT_RATIO_DATA;

Members

Enable

If TRUE, the SourceAspectRatio and DestinationAspectRatio members contain valid values. Otherwise, the pixel aspect ratios are unspecified.

SourceAspectRatio

A DXVAHD_RATIONAL structure that contains the source PAR. The default state value is 1:1 (square pixels).

DestinationAspectRatio

A DXVAHD_RATIONAL structure that contains the destination PAR. The default state value is 1:1 (square pixels).

Remarks

Pixel aspect ratios of the form 0/n and n/0 are not valid.

If the Enable member is FALSE, the device ignores the values of SourceAspectRatio and DestinationAspectRatio.

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_STREAM_STATE

Direct3D Video Structures

IDXVAHD_VideoProcessor::SetVideoProcessStreamState

Media Foundation Structures

Picture Aspect Ratio