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