]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/jpeg/jpegloader.h
Add some state checking to ImageLoader
[libs/gui.git] / source / graphics / jpeg / jpegloader.h
1 #ifndef MSP_GRAPHICS_JPEGLOADER_H_
2 #define MSP_GRAPHICS_JPEGLOADER_H_
3
4 #include <msp/graphics/imageloader.h>
5
6 namespace Msp {
7 namespace Graphics {
8
9 class JpegLoader: public ImageLoader
10 {
11 private:
12         struct Private;
13
14         Private *priv;
15
16 public:
17         JpegLoader(IO::Seekable &);
18         virtual ~JpegLoader();
19
20         static unsigned get_signature_size() { return 3; }
21         static bool detect(const std::string &);
22
23         virtual void load_(Image::Data &);
24 };
25
26 } // namespace Graphics
27 } // namespace Msp
28
29 #endif