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 952 of file IOManager.cpp.

956{
957 if (!buffer) {
959 "save_image: null buffer");
960 return false;
961 }
962 auto image = buffer->get_gpu_texture();
963 if (!image) {
965 "save_image: buffer has no GPU texture");
966 return false;
967 }
968 return save_image(image, filepath, options);
969}
#define MF_ERROR(comp, ctx,...)
IO::ImageData image
Definition Decoder.cpp:57
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: