#include "mediapipe/tasks/cc/core/utils.h"
#include <stddef.h>
#include <fstream>
#include <string>
#include "absl/strings/string_view.h"
#include "flatbuffers/flatbuffers.h"
#include "mediapipe/calculators/core/flow_limiter_calculator.pb.h"
#include "mediapipe/tasks/cc/core/external_file_handler.h"
#include "mediapipe/tasks/cc/core/proto/external_file.pb.h"
namespace mediapipe {
namespace tasks {
namespace core {
namespace {
constexpr char kFinishedTag[] = …;
constexpr char kFlowLimiterCalculatorName[] = …;
constexpr char kPreviousLoopbackCalculatorName[] = …;
}
std::string LoadBinaryContent(const char* filename) { … }
int FindTensorIndexByMetadataName(
const flatbuffers::Vector<flatbuffers::Offset<tflite::TensorMetadata>>*
tensor_metadatas,
absl::string_view name) { … }
CalculatorGraphConfig AddFlowLimiterCalculator(
api2::builder::Graph& graph, api2::builder::GenericNode& task_subgraph,
std::vector<std::string> input_stream_tags, std::string finished_stream_tag,
int max_in_flight, int max_in_queue) { … }
void FixGraphBackEdges(::mediapipe::CalculatorGraphConfig& graph_config) { … }
}
}
}