Displaying Samples and Background Color in the Target Rectangle

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 specify target rectangle and background color to determine how the video stream and substreams are displayed.

The VMR specifies a target rectangle to identify the location within the destination surface to which your driver should direct output. The coordinates of the source rectangles are always specified as absolute locations within the source surface; likewise, the coordinates of the destination rectangles and target rectangle are always specified as absolute locations within the destination surface. Typically, the source and destination rectangles for the video stream and substreams are the same size as the source and destination surfaces; however, this is not always the case. For more information, see Processing Subrectangles.

The following topics show how to display various samples with background color in the target rectangle:

Displaying 16:9 Video within a 4:3 Destination Surface

Combining Video Stream and Substream with Different Aspect Ratios

Combining Two Streams with Different Heights and Widths

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft