DXVA2_VideoSample structure (dxva2api.h)

Specifies an input sample for the IDirectXVideoProcessor::VideoProcessBlt method.

Syntax

typedef struct _DXVA2_VideoSample {
  REFERENCE_TIME       Start;
  REFERENCE_TIME       End;
  DXVA2_ExtendedFormat SampleFormat;
  IDirect3DSurface9    *SrcSurface;
  RECT                 SrcRect;
  RECT                 DstRect;
  DXVA2_AYUVSample8    Pal[16];
  DXVA2_Fixed32        PlanarAlpha;
  DWORD                SampleData;
} DXVA2_VideoSample;

Members

Start

Start time of the sample, in 100-nanosecond units. For video substream samples, the value is zero.

End

End time of the sample, in 100-nanosecond units. For video substream samples, the value is zero.

SampleFormat

DXVA2_ExtendedFormat structure that describes the interlacing and extended color information for the sample.

SrcSurface

Pointer to the IDirect3DSurface9 interface of the Direct3D surface that contains the sample.

SrcRect

Source rectangle. The source rectangle defines which portion of the input sample is copied to the destination surface. The source rectangle is specified using pixel coordinates on the input surface.

DstRect

Destination rectangle. The destination rectangle defines the portion of the destination surface where the source rectangle is copied. The destination rectangle is specified using pixel coordinates on the destination surface.

Pal[16]

If the input sample is for a substream and uses a palettized YUV color format, this member contains an array of DXVA2_AYUVSample8 structures that define the palette entries. For non-palettized pixel formats, the array elements should all be zero.

PlanarAlpha

Alpha value that will be applied to this input sample when it is composited.

SampleData

Contains additional flags. The following flags are defined.

Value Meaning
DXVA2_SampleData_RFF
Repeat first field (RFF) bit.
DXVA2_SampleData_TFF
Top field first (TFF) bit.
DXVA2_SampleData_RFF_TFF_Present
If set, the RFF and TFF flags are used.
 

These flags provide a hint to the deinterlacer when it performs inverse telecine.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header dxva2api.h

See also

DXVA2_AYUVSample8

IDirectXVideoProcessor::VideoProcessBlt

Media Foundation Structures