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

◆ save_image() [2/4]

bool MayaFlux::IO::IOManager::save_image ( const std::shared_ptr< Buffers::TextureBuffer > &  buffer,
const std::string &  filepath,
const IO::ImageWriteOptions options = {} 
)

Definition at line 704 of file IOManager.cpp.

708{
709 if (!buffer) {
711 "save_image: null buffer");
712 return false;
713 }
714 auto image = buffer->get_gpu_texture();
715 if (!image) {
717 "save_image: buffer has no GPU texture");
718 return false;
719 }
720 return save_image(image, filepath, options);
721}
#define MF_ERROR(comp, ctx,...)
IO::ImageData image
bool save_image(const std::shared_ptr< Core::VKImage > &image, const std::string &filepath, const IO::ImageWriteOptions &options={})
Save image data to disk asynchronously.
@ FileIO
Filesystem I/O operations.
@ IO
Networking, file handling, streaming.

References MayaFlux::Journal::FileIO, image, MayaFlux::Journal::IO, MF_ERROR, and save_image().

+ Here is the call graph for this function: