Danny
Thu Apr 10 14:16:00 PDT 2008
Damon,
I am looking at Z-ordering from the viewpoint of the display driver, and
trying to determine how to implement support for Z-ordering. The
DDHAL_UPDATEOVERLAYDATA structure includes both source and destination
surfaces (as well as rectangles), so we can understand the compositing
relationship between the two surfaces specified via the
DDHAL_UPDATEOVERLAYDATA structure. But how does the driver determine the
overall Z-order relationship of each overlay surface? How is this
information communicated?
Thanks,
Danny
"Damon Barry [MSFT]" wrote:
> "Danny" <Danny@discussions.microsoft.com> wrote in message
> news:791A1FD7-ACEE-4E8B-98BD-C4F7ABE709E2@microsoft.com...
> > You seem to be implying that UpdateOverlay can be used as a function for
> > compositing N surfaces, which is what would be needed to support the
> > concept
> > of Z-ordering and comibing multiple overlay surfaces, but I don't see how
> > UpdateOverlay can achieve this. The function specifies a source and
> > target
> > surface, and if the SHOW flag is set, the resultant combined surface will
> > be
> > displayed. I don't see how there is a means for calling this function
> > multiple times to indicate to the display driver that multiple surfaces be
> > composited together and then displayed.
>
> To composite N surfaces, you need N overlays (or at least N-1, plus the
> primary surface). UpdateOverlay only configures the attributes of one
> overlay surface, in relation to the primary. The source and destination
> rectangles (not surfaces) specified in this function are for (1) determining
> the aperature on the overlay and (2) determining the overlay's position
> relative to the primary surface, respectively. Each overlay is positioned
> relative to the primary using UpdateOverlay, and then stacked in relation to
> other overlays using UpdateOverlayZOrder(). If you haven't already, check
> out the documentation under
>
http://msdn2.microsoft.com/en-us/library/aa918464.aspx.
>
> --
> Damon Barry
> Windows Embedded CE Multimedia
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>