// Copyright 2019 The MediaPipe Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #ifndef MEDIAPIPE_FRAMEWORK_PACKET_GENERATOR_GRAPH_H_ #define MEDIAPIPE_FRAMEWORK_PACKET_GENERATOR_GRAPH_H_ #include <map> #include <memory> #include <string> #include <vector> #include "absl/base/attributes.h" #include "absl/base/macros.h" #include "mediapipe/framework/executor.h" #include "mediapipe/framework/packet.h" #include "mediapipe/framework/packet_generator.pb.h" #include "mediapipe/framework/port.h" #include "mediapipe/framework/port/proto_ns.h" #include "mediapipe/framework/port/status.h" #include "mediapipe/framework/validated_graph_config.h" namespace mediapipe { // A graph of packet generators. // // Initialize runs all the generators which it can (i.e. whose input // side packets are available), and stores the produced packets and // the generators that are not yet executed. // // Each call to RunGraphSetup uses the provided extra side packets, runs // all remaining components of the graph, and produces a complete set of // output side packets. Initialize should only be called once. // RunGraphSetup may be called any number of times. // // This class is thread compatible. class PacketGeneratorGraph { … }; } // namespace mediapipe #endif // MEDIAPIPE_FRAMEWORK_PACKET_GENERATOR_GRAPH_H_