Blender V5.0
BKE_bake_items_paths.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <optional>
12#include <string>
13
14#include "BLI_string_ref.hh"
15#include "BLI_sub_frame.hh"
16#include "BLI_vector.hh"
17
18namespace blender::bke::bake {
19
20struct MetaFile {
22 std::string path;
23};
24
25struct BakePath {
27 std::string meta_dir;
32 std::string blobs_dir;
37 std::optional<std::string> bake_dir;
38
40};
41
42std::string frame_to_file_name(const SubFrame &frame);
43std::optional<SubFrame> file_name_to_frame(StringRef file_name);
44
46
47} // namespace blender::bke::bake
std::string frame_to_file_name(const SubFrame &frame)
std::optional< SubFrame > file_name_to_frame(StringRef file_name)
Vector< MetaFile > find_sorted_meta_files(StringRefNull meta_dir)
static BakePath from_single_root(StringRefNull root_dir)
std::optional< std::string > bake_dir