LPDXVA_Highlight - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// dxva.h

typedef struct _DXVA_Highlight {
  WORD wHighlightActive;
  WORD wHighlightIndices;
  WORD wHighlightAlphas;
  RECT HighlightRect;
} DXVA_Highlight, *LPDXVA_Highlight;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-dxva-_dxva_highlight)

_DXVA_Highlight structure

Description

The DXVA_Highlight structure is sent by the host decoder to the accelerator to specify a highlighted rectangular area of a subpicture, and to create an alpha-blending surface with DCCMD data and a DPXD surface.

Members

wHighlightActive

Indicates whether a rectangular highlight area is active. Zero indicates inactive and 1 indicates active. If inactive, the highlight data must have no effect on the content of the blended picture.

wHighlightIndices

Contains four palette indexes. Each palette index consists of 4 bits. Each 2-bit index in the highlighted rectangular area of the DXPD is used to select among these four palette indexes. The 4 most significant bits are for index 3, the next 4 bits are for index 2, the next 4 bits are for index 1, and the 4 least significant bits are for index 0.

wHighlightAlphas

Contains four opacity values. Each opacity value consists of 4 bits. Each 2-bit index in the highlighted rectangular area of the DXPD is used to select among these four opacity values. The 4 most significant bits are for index 3, the next 4 bits are for index 2, the next 4 bits are for index 1, and the 4 least significant bits are for index 0.

These 4-bit opacity values are each referred to as a SampleAlpha4 variable and are interpreted as follows:

HighlightRect

Specifies a RECT structure that defines the area of the highlight rectangle.

The following restrictions apply to the RECT dimensions:

Remarks

The DXVA_Highlight structure is formulated in a manner compatible with the DVD video specification as specified by the DVD Forum.

Note There is a difference between the way the DVD specification defines a subpicture rectangular area and the convention used by Microsoft. This section follows the Microsoft convention so a rectangle of width 10 and height 10 in the upper-left corner of the picture is defined by top = 0, left = 0, right = 10, bottom = 10. The DVD specification defines right = 9 and bottom = 9.

See also

RECT