1 #ifndef MSP_GRAPHICS_QUARTZLOADER_H_
2 #define MSP_GRAPHICS_QUARTZLOADER_H_
4 #include <msp/graphics/imageloader.h>
9 class QuartzLoader: public ImageLoader
17 QuartzLoader(IO::Seekable &);
20 /* Experimentally found value, works for png and jpeg at least. 8 bytes
21 is not enough for Quartz to recognize png. */
22 static unsigned get_signature_size() { return 12; }
23 static bool detect(const std::string &);
25 void load_headers_(Image::Data &) override;
26 void load_pixels_(Image::Data &) override;
29 } // namespace Graphics