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 BooleanEnables 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 UnknownReturns the IUnknown Interface from the filter graph manager..
Prototype:HRESULT get_FilterGraphManager(IUnknown** FMG);
Method IMVSCFilterGraph::GetFilter
Declaration: Function GetFilter(Label As String) As UnknownGet an interface pointer from a filter.
Parameter:
Prototype:
Label Filter label within the filter graph configuration. 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:
Prototype:
Path Path of the MontiVision Project File (*.mvp). HRESULT LoadConfig(BSTR Path);
Method IMVSCFilterGraph::Pause
Declaration: Sub PausePauses the current filter graph.
Prototype:HRESULT Pause();
Method IMVSCFilterGraph::SaveConfig
Declaration: Sub SaveConfigSaves 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 StartStarts the current filter graph.
Prototype:HRESULT Start();
Property IMVSCFilterGraph::State
Declaration: Property Get State As LongCurrent filter graph state.
State Value STATE_STOP 0 STATE_PAUSE 1 STATE_RUN 2 Parameter:
Prototype:
State Contains the current state of the filter graph. HRESULT get_State(LONG* State);
Declaration: Sub StopStops the current filter graph.
Prototype:HRESULT Stop();
Method IMVSCFilterGraph::UnloadConfig
Declaration: Sub UnloadConfigThe UnloadConfig method removes a filter configuration from the control. The control is restored to its initial state.
Prototype:HRESULT UnloadConfig();