// 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. // Defines CalculatorState. #ifndef MEDIAPIPE_FRAMEWORK_CALCULATOR_STATE_H_ #define MEDIAPIPE_FRAMEWORK_CALCULATOR_STATE_H_ #include <map> #include <memory> #include <string> // TODO: Move protos in another CL after the C++ code migration. #include "absl/base/macros.h" #include "absl/status/status.h" #include "mediapipe/framework/calculator.pb.h" #include "mediapipe/framework/counter.h" #include "mediapipe/framework/counter_factory.h" #include "mediapipe/framework/graph_service.h" #include "mediapipe/framework/graph_service_manager.h" #include "mediapipe/framework/packet.h" #include "mediapipe/framework/packet_set.h" #include "mediapipe/framework/port.h" #include "mediapipe/framework/port/any_proto.h" #include "mediapipe/framework/resources.h" #include "mediapipe/framework/tool/options_map.h" namespace mediapipe { class ProfilingContext; // Holds data that the Calculator needs access to. This data is not // stored in Calculator directly since Calculator will be destroyed after // every CalculatorGraph::Run() . It is not stored in CalculatorNode // because Calculator should not depend on CalculatorNode. All // information conveyed in this class is flowing from the CalculatorNode // to the Calculator. class CalculatorState { … }; } // namespace mediapipe #endif // MEDIAPIPE_FRAMEWORK_CALCULATOR_STATE_H_