1 #ifndef MSP_GRAPHICS_QUARTZLOADER_H_
2 #define MSP_GRAPHICS_QUARTZLOADER_H_
4 #include <msp/graphics/imageloader.h>
5 #include <msp/graphics/mspgui_api.h>
10 class MSPGUI_API QuartzLoader: public ImageLoader
15 Private *priv = nullptr;
18 QuartzLoader(IO::Seekable &);
21 /* Experimentally found value, works for png and jpeg at least. 8 bytes
22 is not enough for Quartz to recognize png. */
23 static unsigned get_signature_size() { return 12; }
24 static bool detect(const std::string &);
26 void load_headers_(Image::Data &) override;
27 void load_pixels_(Image::Data &) override;
30 } // namespace Graphics