chromium/third_party/mediapipe/src/mediapipe/framework/tool/name_util.cc

// 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.

#include "mediapipe/framework/tool/name_util.h"

#include <set>
#include <unordered_map>

#include "absl/container/flat_hash_set.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "mediapipe/framework/port/map_util.h"
#include "mediapipe/framework/tool/validate_name.h"

namespace mediapipe {
namespace tool {

std::string GetUnusedNodeName(const CalculatorGraphConfig& config,
                              const std::string& node_name_base) {}

std::string GetUnusedSidePacketName(
    const CalculatorGraphConfig& config,
    const std::string& input_side_packet_name_base) {}

std::string CanonicalNodeName(const CalculatorGraphConfig& graph_config,
                              int node_id) {}

std::string ParseNameFromStream(const std::string& stream) {}

std::pair<std::string, int> ParseTagIndex(const std::string& tag_index) {}

std::pair<std::string, int> ParseTagIndexFromStream(const std::string& stream) {}

std::string CatTag(const std::string& tag, int index) {}

std::string CatStream(const std::pair<std::string, int>& tag_index,
                      const std::string& name) {}

}  // namespace tool
}  // namespace mediapipe