Processing Subrectangles

This section applies only to Windows Server 2003 with SP1 and later, and Windows XP with SP2 and later.

The VMR on Windows Server 2003 SP1 and later and Windows XP SP2 and later can process subrectangular regions of the source video image and video substreams and can write to subrectangular regions on the destination surface. The VMR performs a subrectangular-process operation by making the coordinates of the rectangles in the rcSrc and rcDest members of the DXVA_VideoSample2 structure for each sample different from the coordinates of the source and destination surfaces.

If the deinterlace hardware supports subrectangular-process operations, the display driver reports this support by setting the DXVA_VideoProcess_SubRects flag in the VideoProcessingCaps member of the DXVA_DeinterlaceCaps structure. The driver returns a pointer to DXVA_DeinterlaceCaps when its DeinterlaceQueryModeCaps function is called.

In subrectangular-process operations, the VMR can stretch subrectangles and can intersect subrectangles with each other on the destination surface.

The following topics show how to perform various subrectangular-process operations:

Processing Subrectangles without Stretching

Stretching Subrectangles