IMVSCFilterGraph

The IMVSCFilterGraph Interface from the MontiVision Smart Control  provides methods to load and handle a filter graph configuration. This interface is the starting point for every video application developed with the MontiVision Smart Control. Look also at the IMVSCFilterGraph2 interface for more filter graph methods.

Methods:

ExportFilterGraph Enables the export of the filter graph to the Running Object Table. Use this to debug your application with the MontiVision Workbench Connect to Graph function.
FilterGraphManager Returns the IUnknown Interface from the filter graph manager.
GetFilter Get an interface pointer from a filter.
LoadConfig Opens a project file and creates a filter graph.
Pause Pauses the current filter graph.
SaveConfig Saves the current filter graph into the project file. Call this method if you have changed the properties of a filter or modified the filter graph (and wish to save these changes).
Start Starts the current filter graph.
State Current filter graph state.
Stop Stops the current filter graph.
UnloadConfig The UnLoadConfig method removes a filter configuration from the control. The control is restored to its initial state.

Typelib: MV SmartControl


Property IMVSCFilterGraph::ExportFilterGraph

Declaration: Property Get/Put ExportFilterGraph As Boolean

Enables the export of the filter graph to the Running Object Table. Use this to debug your application with the MontiVision Workbench Connect to Graph function.

Prototype:

HRESULT put_ExportFilterGraph(BOOL Enable);
HRESULT get_ExportFilterGraph(BOOL* Enable);


Property IMVSCFilterGraph::FilterGraphManager

Declaration: Property Get FilterGraphManager As Unknown

Returns the IUnknown Interface from the filter graph manager..

Prototype:

HRESULT get_FilterGraphManager(IUnknown** FMG);


Method IMVSCFilterGraph::GetFilter

Declaration: Function GetFilter(Label As String) As Unknown

Get an interface pointer from a filter.

Parameter:

Label Filter label within the filter graph configuration.
Prototype:

HRESULT GetFilter(BSTR Label, IUnknown** Filter);


Method IMVSCFilterGraph::LoadConfig

Declaration: Sub LoadConfig(Path As String)

Opens a MontiVision Project File (*.mvP) and creates a filter graph. Instead of the MontiVision Project File LoadConfig can open media files, e.g. AVI files, or files from the GraphEdit tool from the DirectShow SDK.

Parameter:

Path Path of the MontiVision Project File (*.mvp).
Prototype:

HRESULT LoadConfig(BSTR Path);


Method IMVSCFilterGraph::Pause

Declaration: Sub Pause

Pauses the current filter graph.

Prototype:

HRESULT Pause();


Method IMVSCFilterGraph::SaveConfig

Declaration: Sub SaveConfig

Saves the current filter graph into the project file. Call this method if you have changed the properties of a filter or modified the filter graph (and wish to save these changes).

Prototype:

HRESULT SaveConfig();


Method IMVSCFilterGraph::Start

Declaration: Sub Start

Starts the current filter graph.

Prototype:

HRESULT Start();


Property IMVSCFilterGraph::State

Declaration: Property Get State As Long

Current filter graph state.

State Value
STATE_STOP 0
STATE_PAUSE 1
STATE_RUN 2

Parameter:

State Contains the current state of the filter graph.
Prototype:

HRESULT get_State(LONG* State);


Method IMVSCFilterGraph::Stop

Declaration: Sub Stop

Stops the current filter graph.

Prototype:

HRESULT Stop();


Method IMVSCFilterGraph::UnloadConfig

Declaration: Sub UnloadConfig

The UnloadConfig method removes a filter configuration from the control. The control is restored to its initial state.

Prototype:

HRESULT UnloadConfig();