Partager via


IVMRDeinterlaceControl9::SetDeinterlacePrefs

 
Microsoft DirectShow 9.0

IVMRDeinterlaceControl9::SetDeinterlacePrefs

The SetDeinterlacePrefs method specifies how the VMR will select a deinterlacing mode if it cannot use the preferred deinterlacing mode.

Syntax

  HRESULT SetDeinterlacePrefs(

  
  DWORD 
  dwDeinterlacePrefs

  );

Parameters

lpdwDeinterlacePrefs

[in]  Specifies a member of the VMR9DeinterlacePrefs enumeration type.

Return Values

Returns an HRESULT value. Possible values include the following:

Return Code Description
E_INVALIDARG Invalid argument.
S_OK Success.
VFW_E_VMR_NOT_IN_MIXER_MODE The VMR is not in mixer mode.

Remarks

By default, the preferred deinterlacing mode is the first mode reported by the driver. The application can set the preferred mode by calling the IVMRDeinterlaceControl9::SetDeinterlaceMode method. If the VMR cannot use the preferred mode, it will fall back to another mode as specified by the dwDeinterlacePrefs parameter.

Requirements

Header: Include D3d9.h, Vmr9.h.

Library: Use Strmiids.lib.

See Also