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

◆ is_image() [1/2]

bool MayaFlux::is_image ( const fs::path &  filepath)

Definition at line 43 of file Depot.cpp.

44{
45 if (!fs::exists(filepath) || !fs::is_regular_file(filepath)) {
46 return false;
47 }
48
49 auto ext = filepath.extension().string();
50 std::ranges::transform(ext, ext.begin(),
51 [](unsigned char c) { return std::tolower(c); });
52
53 static const std::unordered_set<std::string> image_extensions = {
54 ".png", ".jpg", ".jpeg", ".bmp", ".tga",
55 ".psd", ".gif", ".hdr", ".pic", ".pnm", ".exr"
56 };
57
58 return image_extensions.contains(ext);
59}

Referenced by MayaFlux::Yantra::GpuResourceManager::dispatch(), and MayaFlux::Yantra::GpuDispatchCore::readback_aux().

+ Here is the caller graph for this function: