31 #include "../../Core/IOData/file_system.h" 32 #include "provider_type.h" 41 template<
class Prov
iderClass>
56 return ProviderClass::load(filename, fs, srgb);
63 return ProviderClass::load(file, srgb);
71 ProviderClass::save(buffer, filename, fs);
78 ProviderClass::save(buffer, file);
I/O Device interface.
Definition: iodevice.h:49
Pixel data container.
Definition: pixel_buffer.h:67
Provider type.
Definition: provider_type.h:42
Class template to register a provider type.
Definition: provider_type_register.h:42
Virtual File System (VFS).
Definition: file_system.h:46
ProviderType_Register(const std::string &type)
Registers provider type in the ProviderFactory.
Definition: provider_type_register.h:46
virtual PixelBuffer load(IODevice &file, bool srgb) override
Definition: provider_type_register.h:59
virtual PixelBuffer load(const std::string &filename, const FileSystem &fs, bool srgb) override
Called to load an image with this provider type.
Definition: provider_type_register.h:51
virtual void save(PixelBuffer buffer, IODevice &file) override
Definition: provider_type_register.h:74
virtual void save(PixelBuffer buffer, const std::string &filename, FileSystem &fs) override
Called to save a given PixelBuffer to a file.
Definition: provider_type_register.h:66