33 #include "../api_display.h"
34 #include "../../Core/IOData/file_system.h"
35 #include "provider_type.h"
44 template<
class Prov
iderClass>
63 const std::string &filename,
67 return ProviderClass::load(filename, fs, srgb);
74 return ProviderClass::load(file, srgb);
79 const std::string &filename,
82 ProviderClass::save(buffer, filename, fs);
89 ProviderClass::save(buffer, file);
I/O Device interface.
Definition: iodevice.h:51
virtual PixelBuffer load(IODevice &file, bool srgb)
Definition: provider_type_register.h:70
Pixel data container.
Definition: pixel_buffer.h:69
virtual void save(PixelBuffer buffer, IODevice &file)
Definition: provider_type_register.h:85
virtual PixelBuffer load(const std::string &filename, const FileSystem &fs, bool srgb)
Called to load an image with this provider type.
Definition: provider_type_register.h:62
ProviderType_Register(const std::string &type)
Registers provider type in the ProviderFactory.
Definition: provider_type_register.h:52
Provider type.
Definition: provider_type.h:45
Class template to register a provider type.
Definition: provider_type_register.h:45
Virtual File System (VFS).
Definition: file_system.h:48
virtual void save(PixelBuffer buffer, const std::string &filename, FileSystem &fs)
Called to save a given PixelBuffer to a file.
Definition: provider_type_register.h:77