MFCreateVideoMixerAndPresenter callback function (evr.h)

Creates the default video mixer and video presenter for the enhanced video renderer (EVR).

Syntax

MFCreateVideoMixerAndPresenter Mfcreatevideomixerandpresenter;

EVRPUBLIC Mfcreatevideomixerandpresenter(
  [in]  IUnknown *pMixerOwner,
  [in]  IUnknown *pPresenterOwner,
  [in]  REFIID riidMixer,
  [out] void **ppvVideoMixer,
  [in]  REFIID riidPresenter,
  [out] void **ppvVideoPresenter
)
{...}

Parameters

[in] pMixerOwner

Pointer to the owner of the video mixer. If the mixer is aggregated, pass a pointer to the aggregating object's IUnknown interface. Otherwise, set this parameter to NULL.

[in] pPresenterOwner

Pointer to the owner of the video presenter. If the presenter is aggregated, pass a pointer to the aggregating object's IUnknown interface. Otherwise, set this parameter to NULL.

[in] riidMixer

Interface identifier (IID) of the requested interface on the video mixer. The video mixer exposes the IMFTransform interface.

[out] ppvVideoMixer

Receives a pointer to the requested interface on the video mixer. The caller must release the interface.

[in] riidPresenter

IID of the requested interface on the video presenter. The video presenter exposes the IMFVideoPresenter interface.

[out] ppvVideoPresenter

Receives a pointer to the requested interface on the video presenter. The caller must release the interface.

Return value

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header evr.h

See also

Enhanced Video Renderer

Media Foundation Functions