MayaFlux 1.0.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 1232 of file IOManager.cpp.

1236{
1237 if (!buffer) {
1239 "save_image: null buffer");
1240 return false;
1241 }
1242 auto image = buffer->get_gpu_texture();
1243 if (!image) {
1245 "save_image: buffer has no GPU texture");
1246 return false;
1247 }
1248 return save_image(image, filepath, options);
1249}
#define MF_ERROR(comp, ctx,...)
IO::ImageData image
Definition Decoder.cpp:47
std::shared_ptr< NetworkGeometryBuffer > buffer
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 buffer, MayaFlux::Journal::FileIO, image, MayaFlux::Journal::IO, MF_ERROR, and save_image().

+ Here is the call graph for this function: