13 #ifndef _MpTopologyGraph_h_ 14 #define _MpTopologyGraph_h_ 62 OsMsgDispatcher *pNotifDispatcher = NULL);
77 int resourceInstanceId);
96 int resourceInstanceId);
166 OsStatus
lookupInput(
const UtlString& resourceName,
221 const OsTime& waitTime = OsTime::OS_INFINITY);
237 UtlHashBag& newResources,
238 UtlBoolean replaceNumInName =
FALSE,
239 int resourceNum = -1);
243 UtlHashBag& newResources,
244 UtlBoolean replaceNumInName =
FALSE,
245 int resourceNum = -1);
249 UtlBoolean replaceNumInName,
254 UtlHashBag& newResources,
255 UtlBoolean replaceNumInName =
FALSE,
256 int resourceNum = -1);
260 UtlBoolean replaceNumInName,
265 UtlHashBag& newResources,
266 UtlBoolean replaceNumInName =
FALSE,
267 int resourceNum = -1);
280 #endif // _MpTopologyGraph_h_ Message object used to communicate with the media processing task.
Definition: MpFlowGraphMsg.h:33
virtual OsStatus processNextFrame()
Extended processNextFrame() for diagnostic reasons.
Definition: MpTopologyGraph.cpp:179
int linkTopologyResources(MpResourceTopology &resourceTopology, UtlHashBag &newResources, UtlBoolean replaceNumInName=FALSE, int resourceNum=-1)
Adds links defined for resources in resource topology.
Definition: MpTopologyGraph.cpp:694
int addTopologyResources(MpResourceTopology &resourceTopology, MpResourceFactory &resourceFactory, UtlHashBag &newResources, UtlBoolean replaceNumInName=FALSE, int resourceNum=-1)
Adds all new resources defined in a topology.
Definition: MpTopologyGraph.cpp:434
virtual OsStatus gainFocus()
Informs the flow graph that it now has the MpMediaTask focus.
Definition: MpTopologyGraph.cpp:187
int addVirtualOutputs(MpResourceTopology &resourceTopology, UtlHashBag &newResources, UtlBoolean replaceNumInName=FALSE, int resourceNum=-1)
Adds all virtual outputs defined in a topology.
Definition: MpTopologyGraph.cpp:599
MpTopologyGraph & operator=(const MpTopologyGraph &rhs)
Disable assignment operator.
virtual UtlBoolean handleMessage(OsMsg &message)
Handle a message for this flowgraph.
Definition: MpTopologyGraph.cpp:173
Flow graph for coordinating the execution of media processing resources.
Definition: MpFlowGraphBase.h:91
OsStatus lookupInput(const UtlString &resourceName, int portIdx, MpResource *&pFoundResource, int &foundPortIdx)
Lookup real or virtual input port.
Definition: MpTopologyGraph.cpp:360
OsStatus destroyResources(void)
Stops the flow graph, removes all of the resources in the flow graph and destroys them...
Definition: MpFlowGraphBase.cpp:270
MpFlowGraphBase::FlowGraphType getType()
Definition: MpTopologyGraph.cpp:273
FlowGraphType
Definition: MpFlowGraphBase.h:107
int removeVirtualInputs(MpResourceTopology &resourceTopology, UtlBoolean replaceNumInName, int resourceNum)
Remove all virtual inputs defined in a topology from the flowgraph.
Definition: MpTopologyGraph.cpp:559
virtual ~MpTopologyGraph()
Destructor.
Definition: MpTopologyGraph.cpp:86
MpResourceFactory is used to construct resources by type name.
Definition: MpResourceFactory.h:61
OsStatus lookupVirtualOutput(const UtlString &virtualName, int virtualPortIdx, MpResource *&rpResource, int &portIdx)
Lookup real output port corresponding to given virtual one.
Definition: MpTopologyGraph.cpp:319
int removeVirtualOutputs(MpResourceTopology &resourceTopology, UtlBoolean replaceNumInName, int resourceNum)
Remove all virtual outputs defined in a topology from the flowgraph.
Definition: MpTopologyGraph.cpp:654
OsStatus lookupVirtualInput(const UtlString &virtualName, int virtualPortIdx, MpResource *&rpResource, int &portIdx)
Lookup real input port corresponding to given virtual one.
Definition: MpTopologyGraph.cpp:278
MpTopologyGraph(int samplesPerFrame, int samplesPerSec, MpResourceTopology &initialResourceTopology, MpResourceFactory &resourceFactory, OsMsgDispatcher *pNotifDispatcher=NULL)
Constructor.
Definition: MpTopologyGraph.cpp:41
Flowgraph with resources wired as defined in given topology and factory.
Definition: MpTopologyGraph.h:48
UtlHashMap mVirtualInputs
Virtual inputs mapping to real inputs.
Definition: MpTopologyGraph.h:231
OsStatus lookupOutput(const UtlString &resourceName, int portIdx, MpResource *&pFoundResource, int &foundPortIdx)
Lookup real or virtual output port.
Definition: MpTopologyGraph.cpp:394
virtual OsStatus loseFocus()
Informs the flow graph that it has lost the MpMediaTask focus.
Definition: MpTopologyGraph.cpp:230
OsStatus addResources(MpResourceTopology &incrementalTopology, MpResourceFactory *resourceFactory, int resourceInstanceId)
Add resource to the existing flowgraph as defined by given topology and optional factory.
Definition: MpTopologyGraph.cpp:105
MpResourceTopology is used to define a set of resources and how they are to be connected in a flowgra...
Definition: MpResourceTopology.h:123
int addVirtualInputs(MpResourceTopology &resourceTopology, UtlHashBag &newResources, UtlBoolean replaceNumInName=FALSE, int resourceNum=-1)
Adds all virtual inputs defined in a topology.
Definition: MpTopologyGraph.cpp:504
Abstract base class for all media processing objects.
Definition: MpResource.h:56
MpResourceFactory * mpResourceFactory
Factory for resources.
Definition: MpTopologyGraph.h:230
#define FALSE
Definition: PlgDefsV1.h:37
UtlHashMap mVirtualOutputs
Virtual outputs mapping to real outputs.
Definition: MpTopologyGraph.h:232
virtual OsStatus postMessage(const MpFlowGraphMsg &message, const OsTime &waitTime=OsTime::OS_INFINITY)
Post a message to be handled by this flowgraph.
Definition: MpTopologyGraph.cpp:166