Export (0) Print
Expand All

IMFVideoProcessor::SetVideoProcessorMode method

Sets the preferred video processor mode. The EVR will attempt to use this mode when playback starts.

Syntax


HRESULT SetVideoProcessorMode(
  [in]  LPGUID lpMode
);

Parameters

lpMode [in]

Pointer to a GUID that identifies the video processor mode. To get a list of available modes, call IMFVideoProcessor::GetAvailableVideoProcessorModes.

Return value

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

Return codeDescription
S_OK

The method succeeded.

D3DERR_INVALIDCALL

The requested mode is not valid.

MF_E_INVALIDREQUEST

The mixer has already allocated Direct3D resources and cannot change modes.

MF_E_TRANSFORM_TYPE_NOT_SET

The media type for the reference stream is not set.

 

Remarks

Before calling this method, set the media type for the reference stream as follows:

  • DirectShow EVR filter: Connect pin 0.

  • EVR media sink: Set the media type for stream 0.

  • Mixer (standalone): Set the media type for input stream 0 and set the media type for the output stream.

Which modes are available might depend on the reference stream's media type.

Call this method before video playback begins.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Evr9.h

Library

Strmiids.lib

See also

IMFVideoProcessor
Enhanced Video Renderer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft