MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::ImageWriter Class Referenceabstract

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: