enter code here
I have to stop and start Video Renderer Filter dynamically . That is not possible with "normal" Direct Show Architecture without creating new graph. But with GMFBridge it seems it is possible.
But i can not figure out how to use it.( yes i read the paper at http://www.gdcl.co.uk/gmfbridge/index.htm )
My Graph is:
SourceFilter ---> MyCustomTransformFilter ---> Video Rendrer Filter
So GMFBridge fits where?
i) I can devide my graph two pieces
[ Source Filter + MyCustomFilter ] + Video Rendere
ii) Then how to add my filters to graph, and stop start Video Rendrere without
affecting the rest of my grapg using GMFBridge?
Update:
Thanks Wimmel
I just confused... Let me clear what i understand
i) I have single graph at first
(SingleGraph) SourceFilter ---> MyCustomTransformFilter ---> Video Rendrer Filter
ii) In order to use GMFBridge i divede my single graph into two separate graph
First Graph : SourceFilter ---> MyCustomTransformFilter --> GMFBridgeSinkFilter
Second Graph : GMFBridgeSourceFilter ---> Video Renderer Filter
Well, GMFBridgeSinkFilter and GMFBridgeSourceFilter ? what are they? their class type?
iii) Then i create an intance of IGMFBridgeControllerPtr and make necessary init...
IGMFBridgeControllerPtr bridgeController = ......
.....
bridgeController->AddStream(true, eUncompressed, true);
bridgeController->AddStream(false, eUncompressed, true);
iv) Bridge Controller add a sink filter to the source graph and connect it:
bridgeController->InsertSinkFilter(sourceGraph, sourceGraphSinkFilter);
What are sourceGraph, sourceGraphSinkFilter s ?
// now connect it like this:
// SourceFilter ---> MyCustomTransformFilter ---> SourceGraphSinkFilter
You mean programtically connect those filters in the source graph?
iv) In the second graph let the controller add a source filter, and connect it to the renderer:
bridgeController->InsertSourceFilter(sinkFilter, renderGraph, renderGraphSourceFilter);
Again what are sinkFilter,renderGraphSourceFilter etc?
// now connect it like this:
// RenderGraphSourceFilter ---> Video Renderer Filter
And You mean programtically connect those filters in the source graph?
See Question&Answers more detail:
os