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

◆ from() [1/5]

ChimeraBuilder & MayaFlux::Kriya::ChimeraBuilder::from ( const std::string &  path)

Fill the layer once with an image file, loaded now as RGBA.

Definition at line 406 of file Chimera.cpp.

407{
408 if (auto loaded = IO::ImageReader::load(path, 4)) {
409 return from(std::move(*loaded));
410 }
411
413 "ChimeraBuilder::from could not load '{}'", path);
414 return *this;
415}
#define MF_ERROR(comp, ctx,...)
static std::optional< ImageData > load(const std::string &path, int desired_channels=4, std::optional< Kakshya::Region > region=std::nullopt)
Load image from file (static utility)
ChimeraBuilder & from(std::shared_ptr< Kakshya::DynamicVideoStream > ring)
Feed the layer from a ring that is being recorded.
Definition Chimera.cpp:360
@ FileIO
Filesystem I/O operations.
@ Kriya
Automatable tasks and fluent scheduling api for Nodes and Buffers.

References MayaFlux::Journal::FileIO, from(), MayaFlux::Journal::Kriya, MayaFlux::IO::ImageReader::load(), and MF_ERROR.

+ Here is the call graph for this function: