Sample Functions for Deinterlacing

The sample deinterlacing functions in this section show how to implement deinterlacing and frame-rate conversion functionality. The sample functions map to the motion compensation callback functions defined in the DD_MOTIONCOMPCALLBACKS structure. You can implement each sample function and then use the motion-compensation code template to complete the implementation. For more information, see Example Code for DirectX VA Devices.

Deinterlace Container Device Class Sample Functions

The sample deinterlacing functions in the following table are member functions of DXVA_DeinterlaceContainerDeviceClass (that is, they are called by using the deinterlace container device). For more information, see Defining the Deinterlace Container Device Class and Performing ProcAmp Control and Deinterlacing Operations.

Member Function Description

DeinterlaceQueryAvailableModes

Queries for available deinterlacing and frame-rate conversion modes.

DeinterlaceQueryModeCaps

Queries for the capabilities of a given deinterlacing and frame-rate conversion mode.

Deinterlace Bob Device Class Sample Functions

The sample deinterlacing functions in the following table are member functions of DXVA_DeinterlaceBobDeviceClass (that is, they are called by using the deinterlace bob device). For more information, see Defining the Deinterlace Bob Device Class.

Member Function Description

DeinterlaceOpenStream

Opens a video stream object.

DeinterlaceBlt

Provides bit-block deinterlacing of video stream objects.

DeinterlaceBltEx

Windows Server 2003 SP1 and later and Windows XP SP2 and later only.

Deinterlaces video and composites video substreams over the top of the video stream.

DeinterlaceCloseStream

Closes a video stream object.

Mapping Sample Functions to DD_MOTIONCOMPCALLBACKS

The sample functions in this section map to the motion compensation callback functions as shown in the following table. That is, each sample function is called within its respective motion compensation callback.

Function DD_MOTIONCOMPCALLBACKS Member

DeinterlaceQueryAvailableModes

RenderMoComp

DeinterlaceQueryModeCaps

RenderMoComp

DeinterlaceOpenStream

CreateMoComp

DeinterlaceBlt

RenderMoComp

DeinterlaceBltEx

RenderMoComp

DeinterlaceCloseStream

DestroyMoComp