]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/jpeg/jpegloader.h
d45e599825abd150f10cce35644a2335bbda93e6
[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         static Register<JpegLoader> reg;
17
18 public:
19         JpegLoader(IO::Seekable &);
20         virtual ~JpegLoader();
21
22         static unsigned get_signature_size() { return 3; }
23         static bool detect(const std::string &);
24
25         virtual void load(Image::Data &);
26 };
27
28 } // namespace Graphics
29 } // namespace Msp
30
31 #endif