Freigeben über


IVMRFilterConfig::GetRenderingPrefs

 
Microsoft DirectShow 9.0

IVMRFilterConfig::GetRenderingPrefs

The GetRenderingPrefs method retrieves the current set of rendering preferences being used by the VMR.

Syntax

  HRESULT GetRenderingPrefs(

  
  DWORD*
  
  pdwRenderFlags

  );

Parameters

pdwRenderFlags

[out]  Receives a member of the VMRRenderPrefs enumeration, indicating the current rendering preferences.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Error Code Description
E_POINTER pdwRenderingPrefs is invalid
VFW_E_WRONG_STATE No allocator-presenter object is currently loaded.

Remarks

This method calls through to the allocator-presenter's IVMRImagePresenterConfig::GetRenderingPrefs method. (The default allocator-presenter exposes IVMRImagePresenterConfig. Custom allocator-presenters can also expose this interface if desired.) If the VMR-7 has not yet created the default allocator-presenter, or if the application  provided a custom allocator-presenter which does not support IVMRImagePresenterConfig, this method returns VFW_E_WRONG_STATE. To create the default allocator-presenter, call IVMRFilterConfig::SetRenderingMode with the value VMRMode_Windowed or VMRMode_Windowed.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also