]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/jpeg/jpegloader.h
Update .gitignore to include build products on Windows
[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 #include <msp/graphics/mspgui_api.h>
6
7 namespace Msp {
8 namespace Graphics {
9
10 class MSPGUI_API JpegLoader: public ImageLoader
11 {
12 private:
13         struct Private;
14
15         Private *priv = nullptr;
16
17 public:
18         JpegLoader(IO::Seekable &);
19         ~JpegLoader();
20
21         static unsigned get_signature_size() { return 3; }
22         static bool detect(const std::string &);
23
24         void load_headers_(Image::Data &) override;
25         void load_pixels_(Image::Data &) override;
26 };
27
28 } // namespace Graphics
29 } // namespace Msp
30
31 #endif