// dxva.h
typedef struct _DXVA_VideoSample2 {
DWORD Size;
DWORD Reserved;
REFERENCE_TIME rtStart;
REFERENCE_TIME rtEnd;
DWORD SampleFormat;
DWORD SampleFlags;
VOID *lpDDSSrcSurface;
RECT rcSrc;
RECT rcDst;
DXVA_AYUVsample2 Palette[16];
} DXVA_VideoSample2, *LPDXVA_VideoSample2;
View the official Windows Driver Kit DDI referenceNo description available.
The DXVA_VideoSample2 structure is sent by the renderer to the driver to specify the format of a video sample.
SizeOnly compiles for a 64-bit version of the operating system.
Indicates the size of this structure.
ReservedOnly compiles for a 64-bit version of the operating system.
Reserved.
rtStartSpecifies the start time of the sample.
rtEndSpecifies the end time of the sample.
SampleFormatSpecifies the format of the sample as defined by values of the DXVA_ExtendedFormat enumeration type.
SampleFlagsSpecifies a collection of flags that indicate changes in the current sample frame from the previous sample frame. This member is a bitwise-OR of one or more of the flags in the DXVA_SampleFlags enumeration type.
lpDDSSrcSurfacePointer to a DD_SURFACE_LOCAL structure that represents the sample.
rcSrcSpecifies 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 and its position on the source surface.
rcDstSpecifies 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 should occur and its position on the destination surface.
PaletteSpecifies an array of DXVA_AYUVsample2 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 palette is zero and can be ignored.
For video substream samples, the rtStart and rtEnd members are set to 0.
The SampleFormat member indicates whether the sample is a reference for a deinterlace operation or a video substream sample that must be combined with the deinterlaced video frame. The DXVA_SampleSubStream value (new for Windows Server 2003 with SP1 and later and Windows XP with SP2 and later) of the DXVA_SampleFormat enumeration type specifies the format for a video substream sample.
The SampleFlags member contains a collection of flags that indicate changes in the current sample frame from the previous sample frame. You can use these flags to optimize your driver code. In other words, your code is not required to perform operations on the current sample frame if no changes have occurred from the previous sample frame.
For information about how input samples are arranged in the array in the Source member of the DXVA_DeinterlaceBltEx structure, see Input Buffer Order.