MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ resolve_path()

static std::string MayaFlux::IO::JSONSerializer::resolve_path ( const std::string &  filepath)
inlinestaticprivate

Definition at line 135 of file JSONSerializer.hpp.

136 {
137 namespace fs = std::filesystem;
138 auto normalized = std::string(filepath);
139 std::ranges::replace(normalized, '\\', '/');
140 if (fs::path(normalized).is_absolute())
141 return normalized;
142 if (fs::exists(normalized))
143 return normalized;
144 auto from_cwd = fs::current_path() / normalized;
145 if (fs::exists(from_cwd))
146 return from_cwd.string();
147 auto from_root = fs::path(Config::SOURCE_DIR) / normalized;
148 if (fs::exists(from_root))
149 return from_root.string();
150 return normalized;
151 }
std::vector< double > normalized(const std::vector< double > &data, double target_peak)
Normalize single-channel data (non-destructive)
Definition Yantra.cpp:588

References MayaFlux::normalized().

+ Here is the call graph for this function: