IVMRFilterConfig9::GetRenderingPrefs method

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

Syntax


HRESULT GetRenderingPrefs(
  [out] DWORD *pdwRenderFlags
);

Parameters

pdwRenderFlags [out]

Receives a VMR9RenderPrefs value indicating the current rendering preferences.

Return value

The method returns an HRESULT. Possible values include those in the following table.

Return codeDescription
S_OK

The method succeeded.

VFW_E_WRONG_STATE

The VMR has not created an allocator-presenter, or the allocator-presenter does not implement the IVMRImagePresenterConfig9 interface.

 

Remarks

If the allocator-presenter implements the IVMRImagePresenterConfig9 interface, this method calls the IVMRImagePresenterConfig9::GetRenderingPrefs method on the allocator-presenter.

The default allocator-presenter implements IVMRImagePresenterConfig9. Custom allocator-presenters can also implements this interface if desired.

If the VMR-9 has not yet created the allocator-presenter, or if a custom allocator-presenter does not support IVMRImagePresenterConfig9, this method returns VFW_E_WRONG_STATE. To create the default allocator-presenter, call IVMRFilterConfig9::SetRenderingMode with the value VMR9Mode_Windowed or VMR9Mode_Windowless.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 R2 [desktop apps only]

Header

Vmr9.h

Library

Strmiids.lib

See also

Using the Video Mixing Renderer
IVMRFilterConfig9 Interface

 

 

Show: