|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Abstract base for image format writers. More...
#include <ImageWriter.hpp>
Inheritance diagram for MayaFlux::IO::ImageWriter:
Collaboration diagram for MayaFlux::IO::ImageWriter:Public Member Functions | |
| virtual bool | can_write (const std::string &filepath) const =0 |
| Check whether this writer handles the given filepath. | |
| virtual std::string | get_last_error () const =0 |
| Last error message or empty string. | |
| virtual std::vector< std::string > | get_supported_extensions () const =0 |
| File extensions handled by this writer (without dot). | |
| virtual bool | write (const std::string &filepath, const ImageData &data, const ImageWriteOptions &options={})=0 |
| Write image data to disk. | |
| virtual | ~ImageWriter ()=default |
Abstract base for image format writers.
Parallels ImageReader. Each concrete writer handles one or more file extensions and validates that the supplied ImageData matches the format's expected pixel variant (uint8 for PNG/JPG/BMP/TGA, float for EXR/HDR, uint16 for 16-bit PNG).
Writers are single-shot: one call to write() produces one file. No open/ close lifecycle because image formats are whole-file atomic.
Definition at line 38 of file ImageWriter.hpp.