IRenderEngine::ConnectFrontEnd method

Note

[Deprecated. This API may be removed from future releases of Windows.]

 

The ConnectFrontEnd method builds the front end of the filter graph from the current timeline.

Syntax

HRESULT ConnectFrontEnd();

Parameters

This method has no parameters.

Return value

Returns an HRESULT value. Possible return values include the following:

Return code Description
S_OK
Success.
S_WARN_OUTPUTRESET
Rendering portion of the graph was deleted.
E_INVALIDARG
No timeline set for this render engine.
E_MUST_INIT_RENDERER
Render engine failed to initialize.
E_RENDER_ENGINE_IS_BROKEN
Operation failed because the project was not rendered successfully.
E_UNEXPECTED
Unexpected error.
VFW_E_INVALIDMEDIATYPE
Invalid media type.

 

Remarks

This method does not build the rendering portion of the filter graph. The application must connect the output pins on the front end to the desired rendering filters:

If you are using the basic render engine, the output pins on the front end produce uncompressed data. If you are using the smart render engine, the output pins produce compressed data.

If you change the timeline after you build the filter graph, you must call ConnectFrontEnd again to rebuild the front end. The method preserves the rendering portion of the graph whenever possible. However, if you add or delete a group, or change the order of the groups, ConnectFrontEnd deletes the rendering portion and your application must rebuild it. If the method deletes the rendering portion, it returns S_WARN_OUTPUTRESET.

Note

The header file Qedit.h is not compatible with Direct3D headers later than version 7.

 

Note

To obtain Qedit.h, download the Microsoft Windows SDK Update for Windows Vista and .NET Framework 3.0. Qedit.h is not available in the Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1.

 

Requirements

Header
Qedit.h
Library
Strmiids.lib

See also

IRenderEngine Interface

Error and Success Codes