|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::save_volume | ( | const Kakshya::VolumeData & | data, |
| const std::string & | filepath, | ||
| const VolumeWriteOptions & | options = {} |
||
| ) |
Save already-downloaded VolumeData to disk via the registry.
Pure CPU, no thread restrictions. For callers holding a VolumeData from download_volume, from a future reader, or built procedurally.
ImageExport has no equivalent because IOManager::save_image(ImageData) covers that case asynchronously. A synchronous data-to-file path is worth having here: it is what a test exercising a writer calls, and what a shutdown flush calls.
Definition at line 197 of file VolumeTransfer.cpp.
References MayaFlux::IO::VolumeWriterRegistry::create_writer(), MayaFlux::Journal::FileIO, MayaFlux::IO::VolumeWriterRegistry::instance(), MayaFlux::Journal::IO, and MF_ERROR.
Referenced by save_volume(), and MayaFlux::IO::VolumeCapture::VolumeCapture().
Here is the call graph for this function:
Here is the caller graph for this function: