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 &);
18 virtual ~QuartzLoader();
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 virtual void load_headers_(Image::Data &);
26 virtual void load_pixels_(Image::Data &);
29 } // namespace Graphics