Video Content for Deinterlace and Frame-Rate Conversion

Video Content for Deinterlace and Frame-Rate Conversion

The driver receives a description of video content so that it can determine how it should deinterlace or frame-rate convert such content. The driver receives this video content as a pointer to a DXVA_VideoDesc structure in the following function calls:

The following examples indicate how the driver performs deinterlacing and frame-rate conversion on the received video content.

Deinterlacing 720 x 480i Content Example

The DXVA_VideoDesc structure is filled as follows to direct the driver to deinterlace 720 x 480i content that is sourced as two fields per sample at a frequency of 29.97 Hz.

MemberValue

SampleWidth

720

SampleHeight

480

SampleFormat

DXVA_SampleFieldInterleavedOddFirst enumerator in DXVA_SampleFormat

d3dFormat

D3DFMT_YUY2 defined in the d3d8types.h and d3d9types.h header files

InputSampleFreq.Numerator

30000 (29.97-Hz monitor frequency)

InputSampleFreq.Denominator

1001

OutputFrameFreq.Numerator

60000 (59.94-Hz monitor frequency)

OutputFrameFreq.Denominator

1001

 

Deinterlacing and Frame-Rate Conversion of 720 x 480i Content Example

The OutputFrameFreq member of the DXVA_VideoDesc structure is filled as follows to direct the driver to deinterlace and frame-rate convert 720 x 480i content.

MemberValue

OutputFrameFreq.Numerator

85 (85-Hz monitor frequency)

OutputFrameFreq.Denominator

1

 

Deinterlacing a Single Field to a Progressive Frame Example

The OutputFrameFreq member of the DXVA_VideoDesc structure is filled as follows to direct the driver to deinterlace a single field to a progressive frame for later MPEG encoding.

MemberValue

OutputFrameFreq.Numerator

30000 (29.97-Hz monitor frequency)

OutputFrameFreq.Denominator

1001

 

Frame-Rate Conversion of 480p Content Example

The DXVA_VideoDesc structure is filled as follows to direct the driver to perform frame-rate conversion on 480p content and to match the monitor display frequency.

MemberValue

SampleWidth

720

SampleHeight

480

SampleFormat

DXVA_SampleProgressiveFrame enumerator in the DXVA_SampleFormat enumeration

d3dFormat

D3DFMT_YUY2 defined in the d3d8types.h and d3d9types.h header files

InputSampleFreq.Numerator

60 (60 Hz monitor frequency)

InputSampleFreq.Denominator

1

OutputFrameFreq.Numerator

85 (85 Hz monitor frequency)

OutputFrameFreq.Denominator

1

 

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft