Bewerken

Delen via


DXVADDI_VIDEOSAMPLE structure (d3dumddi.h)

The DXVADDI_VIDEOSAMPLE structure describes the format of a video sample that is used in a video processing operation.

Syntax

typedef struct _DXVADDI_VIDEOSAMPLE {
  [in] REFERENCE_TIME           Start;
  [in] REFERENCE_TIME           End;
  [in] DXVADDI_EXTENDEDFORMAT   SampleFormat;
  [in] DXVADDI_VIDEOSAMPLEFLAGS SampleFlags;
  [in] HANDLE                   SrcResource;
  [in] UINT                     SrcSubResourceIndex;
  [in] RECT                     SrcRect;
  [in] RECT                     DstRect;
       DXVADDI_AYUVSAMPLE8      Pal[16];
  [in] DXVADDI_FIXED32          PlanarAlpha;
} DXVADDI_VIDEOSAMPLE;

Members

[in] Start

A REFERENCE_TIME value that identifies the start time of the sample.

[in] End

A REFERENCE_TIME value that identifies the end time of the sample.

[in] SampleFormat

A DXVADDI_EXTENDEDFORMAT structure that describes the extended format of the video sample.

[in] SampleFlags

A DXVADDI_VIDEOSAMPLEFLAGS structure that identifies changes in the current sample frame from the previous sample frame.

[in] SrcResource

A handle to the resource that contains the source surface.

[in] SrcSubResourceIndex

The index to the source surface within the resource.

[in] SrcRect

A RECT structure that describes the upper-left and lower-right points of a rectangle on the source surface. These points define the area of the source data for the bit-block transfer (bitblt) and its position on the source surface.

[in] DstRect

A RECT structure that describes the upper-left and lower-right points of a rectangle on the destination surface. These points define the area in which the bit-block transfer (bitblt) should occur and its position on the destination surface.

[in] Pal[16]

An array of DXVADDI_AYUVSAMPLE8 structures that represent a complete 16-color palette for palletized video substream pixel formats. The driver uses this palette to composite the substream sample. For nonpalletized pixel formats, the Pal member is NULL and can be ignored.

[in] PlanarAlpha

A DXVADDI_FIXED32 structure that specifies the transparency value that the driver should apply to the composited background color and video stream and substream image (the entire video plane) as it is written to the destination surface. A value of 0.0 indicates transparent. A value of 1.0 indicates opaque.

Requirements

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_VIDEOPROCESSBLT

DXVADDI_AYUVSAMPLE8

DXVADDI_EXTENDEDFORMAT

DXVADDI_FIXED32

RECT