DXVAHDDDI_STREAM_STATE_SOURCE_RECT_DATA structure (d3dumddi.h)

The DXVAHDDDI_STREAM_STATE_SOURCE_RECT_DATA structure describes stream-state data that specifies the source rectangle of the input stream. The driver scales the source rectangle within the input surface to the destination rectangle within the output surface.

Syntax

typedef struct _DXVAHDDDI_STREAM_STATE_SOURCE_RECT_DATA {
  [in] BOOL Enable;
  [in] RECT SourceRect;
} DXVAHDDDI_STREAM_STATE_SOURCE_RECT_DATA;

Members

[in] Enable

A Boolean value that specifies whether the driver should use the SourceRect member or the entire input surface as the source. The default value is FALSE, which indicates that the entire input surface is the source.

[in] SourceRect

A RECT structure that specifies the source rectangle in the coordinates of the input surface. This member is relevant only when the Enable member is set to TRUE. The default value is (0,0,0,0).

Remarks

If the Enable member is set to TRUE and the source rectangle that the SourceRect member specifies is not within the input surface, the intersection of the source rectangle and the input surface is used as the source rectangle.

The application can use the source rectangle to specify the active rectangle (dirty region) of the source surface.

Requirements

Requirement Value
Minimum supported client DXVAHDDDI_STREAM_STATE_SOURCE_RECT_DATA is supported beginning with the Windows 7 operating system.
Header d3dumddi.h (include D3dumddi.h)

See also

RECT