hello-world.cc位于https://github.com/google/mediapipe/blob/master/mediapipe/examples/desktop/hello_world/hello_world.cc
#mermaid-svg-dUa6sqB0sQ1Z3cQh .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .label text{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .node rect,#mermaid-svg-dUa6sqB0sQ1Z3cQh .node circle,#mermaid-svg-dUa6sqB0sQ1Z3cQh .node ellipse,#mermaid-svg-dUa6sqB0sQ1Z3cQh .node polygon,#mermaid-svg-dUa6sqB0sQ1Z3cQh .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .node .label{text-align:center;fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .node.clickable{cursor:pointer}#mermaid-svg-dUa6sqB0sQ1Z3cQh .arrowheadPath{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .flowchart-link{stroke:#333;fill:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edgeLabel rect{opacity:0.9}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edgeLabel span{color:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .cluster text{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-dUa6sqB0sQ1Z3cQh .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-dUa6sqB0sQ1Z3cQh text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .actor-line{stroke:grey}#mermaid-svg-dUa6sqB0sQ1Z3cQh .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .sequenceNumber{fill:#fff}#mermaid-svg-dUa6sqB0sQ1Z3cQh #sequencenumber{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh #crosshead path{fill:#333;stroke:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .messageText{fill:#333;stroke:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-dUa6sqB0sQ1Z3cQh .labelText,#mermaid-svg-dUa6sqB0sQ1Z3cQh .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .loopText,#mermaid-svg-dUa6sqB0sQ1Z3cQh .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-dUa6sqB0sQ1Z3cQh .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-dUa6sqB0sQ1Z3cQh .noteText,#mermaid-svg-dUa6sqB0sQ1Z3cQh .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-dUa6sqB0sQ1Z3cQh .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-dUa6sqB0sQ1Z3cQh .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-dUa6sqB0sQ1Z3cQh .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .section{stroke:none;opacity:0.2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .section2{fill:#fff400}#mermaid-svg-dUa6sqB0sQ1Z3cQh .section1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .section3{fill:#fff;opacity:0.2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .sectionTitle0{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .sectionTitle1{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .sectionTitle2{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .sectionTitle3{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-dUa6sqB0sQ1Z3cQh .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .grid path{stroke-width:0}#mermaid-svg-dUa6sqB0sQ1Z3cQh .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .task{stroke-width:2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText:not([font-size]){font-size:11px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .task.clickable{cursor:pointer}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskText3{fill:#fff}#mermaid-svg-dUa6sqB0sQ1Z3cQh .task0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .task1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .task2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutside0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutside2{fill:#000}#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutside1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .taskTextOutside3{fill:#000}#mermaid-svg-dUa6sqB0sQ1Z3cQh .active0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .active1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .active2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeText0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeText1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeText2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeText3{fill:#000 !important}#mermaid-svg-dUa6sqB0sQ1Z3cQh .done0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .done1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .done2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneText0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneText1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneText2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneText3{fill:#000 !important}#mermaid-svg-dUa6sqB0sQ1Z3cQh .crit0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .crit1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .crit2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCrit0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCrit1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCrit2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCrit0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCrit1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCrit2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-dUa6sqB0sQ1Z3cQh .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .milestoneText{font-style:italic}#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCritText0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCritText1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCritText2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .doneCritText3{fill:#000 !important}#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCritText0,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCritText1,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCritText2,#mermaid-svg-dUa6sqB0sQ1Z3cQh .activeCritText3{fill:#000 !important}#mermaid-svg-dUa6sqB0sQ1Z3cQh .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.classGroup text .title{font-weight:bolder}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.clickable{cursor:pointer}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-dUa6sqB0sQ1Z3cQh .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .dashed-line{stroke-dasharray:3}#mermaid-svg-dUa6sqB0sQ1Z3cQh #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh .commit-id,#mermaid-svg-dUa6sqB0sQ1Z3cQh .commit-msg,#mermaid-svg-dUa6sqB0sQ1Z3cQh .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-dUa6sqB0sQ1Z3cQh g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-dUa6sqB0sQ1Z3cQh .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-dUa6sqB0sQ1Z3cQh .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-dUa6sqB0sQ1Z3cQh .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edgeLabel text{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-dUa6sqB0sQ1Z3cQh .node circle.state-start{fill:black;stroke:black}#mermaid-svg-dUa6sqB0sQ1Z3cQh .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-dUa6sqB0sQ1Z3cQh #statediagram-barbEnd{fill:#9370db}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-state .divider{stroke:#9370db}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-dUa6sqB0sQ1Z3cQh .note-edge{stroke-dasharray:5}#mermaid-svg-dUa6sqB0sQ1Z3cQh .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-dUa6sqB0sQ1Z3cQh .error-icon{fill:#522}#mermaid-svg-dUa6sqB0sQ1Z3cQh .error-text{fill:#522;stroke:#522}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edge-thickness-normal{stroke-width:2px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-dUa6sqB0sQ1Z3cQh .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-dUa6sqB0sQ1Z3cQh .marker{fill:#333}#mermaid-svg-dUa6sqB0sQ1Z3cQh .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;}#mermaid-svg-dUa6sqB0sQ1Z3cQh {color: rgba(0, 0, 0, 0.75);font: ;}
main
CalculatorGraph graph
graph.Initialize(config)
OutputStreamPoller poller = graph.AddOutputStreamPoller('out')
graph.StartRun({})
graph.AddPacketToInputStream
graph.CloseInputStream('in')
poller.Next(&packet)
graph.WaitUntilDone()
CalculatorGraph::Initialize
validated_graph->Initialize()
Initialize
CalculatorGraph::InitializeExecutors
CalculatorGraph::InitializePacketGeneratorGraph
CalculatorGraph::InitializeStreams
CalculatorGraph::InitializeCalculatorNodes
CalculatorGraph::AddOutputStreamPoller
CalculatorGraph::StartRun
CalculatorGraph::PrepareForRun
Scheduler::Start
CalculatorGraph::AddPacketToInputStreamInternal
CalculatorGraph::CloseInputStream
OutputStreamPoller::Next
CalculatorGraph::WaitUntilDone