#include "mediapipe/tasks/cc/core/model_asset_bundle_resources.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "mediapipe/framework/port/status_macros.h"
#include "mediapipe/tasks/cc/common.h"
#include "mediapipe/tasks/cc/metadata/utils/zip_utils.h"
#include "mediapipe/util/resource_util.h"
namespace mediapipe {
namespace tasks {
namespace core {
namespace {
StatusCode;
}
ModelAssetBundleResources::ModelAssetBundleResources(
const std::string& tag,
std::unique_ptr<proto::ExternalFile> model_asset_bundle_file)
: … { … }
absl::StatusOr<std::unique_ptr<ModelAssetBundleResources>>
ModelAssetBundleResources::Create(
const std::string& tag,
std::unique_ptr<proto::ExternalFile> model_asset_bundle_file) { … }
absl::Status ModelAssetBundleResources::ExtractFilesFromExternalFileProto() { … }
absl::StatusOr<absl::string_view> ModelAssetBundleResources::GetFile(
const std::string& filename) const { … }
std::vector<std::string> ModelAssetBundleResources::ListFiles() const { … }
}
}
}