Windows Dev Center

Expand Minimize

MFVideoMixPrefs enumeration

Contains flags that are used to configure how the enhanced video renderer (EVR) performs deinterlacing.

Syntax


typedef enum _MFVideoMixPrefs { 
  MFVideoMixPrefs_ForceHalfInterlace        = 0x00000001,
  MFVideoMixPrefs_AllowDropToHalfInterlace  = 0x00000002,
  MFVideoMixPrefs_AllowDropToBob            = 0x00000004,
  MFVideoMixPrefs_ForceBob                  = 0x00000008,
  MFVideoMixPrefs_Mask                      = 0x0000000f
} MFVideoMixPrefs;

Constants

MFVideoMixPrefs_ForceHalfInterlace

Force the EVR to skip the second field (in temporal order) of every interlaced frame.

MFVideoMixPrefs_AllowDropToHalfInterlace

If the EVR is falling behind, allow it to skip the second field (in temporal order) of every interlaced frame.

MFVideoMixPrefs_AllowDropToBob

If the EVR is falling behind, allow it to use bob deinterlacing, even if the driver supports a higher-quality deinterlacing mode.

MFVideoMixPrefs_ForceBob

Force the EVR to use bob deinterlacing, even if the driver supports a higher-quality mode.

MFVideoMixPrefs_Mask

The bitmask of valid flag values. This constant is not itself a valid flag.

Remarks

To set these flags, call the IMFVideoMixerControl2::SetMixingPrefs method.

These flags control some trade-offs between video quality and rendering speed. The constants named "MFVideoMixPrefs_Allow..." enable lower-quality settings, but only when the quality manager requests a drop in quality. The constants named "MFVideoMixPrefs_Force..." force the EVR to use lower-quality settings regardless of what the quality manager requests. (For more information about the quality manager, see IMFQualityAdvise.)

Currently two lower-quality modes are supported, as described in the following table. Either is preferable to dropping an entire frame.

ModeDescription

Half interface

The EVR's video mixer skips the second field (relative to temporal order) of each interlaced frame. The video mixer still deinterlaces the first field, and this operation typically interpolates data from the second field. The overall frame rate is unaffected.

Bob deinterlacing

The video mixer uses bob deinterlacing, even if the driver supports a higher-quality deinterlacing algorithm.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Evr.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft