]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/imageloader.h
Add dependency to mspdatafile
[libs/gui.git] / source / graphics / imageloader.h
index cb3f54ac204f303afe23e5bfc30b111ece28f33a..fbfd4d66e0c3c647c5c2171d03da04d4ccc1848d 100644 (file)
@@ -27,6 +27,7 @@ public:
        enum State
        {
                INITIAL,
+               HEADERS_LOADED,
                FINISHED
        };
 
@@ -70,12 +71,15 @@ protected:
 public:
        virtual ~ImageLoader();
 
+       static bool detect_signature(const std::string &);
        static ImageLoader *open_file(const std::string &);
        static ImageLoader *open_io(IO::Seekable &);
 
        virtual void load(Image::Data &);
+       virtual void load_headers(Image::Data &);
 protected:
-       virtual void load_(Image::Data &) = 0;
+       virtual void load_headers_(Image::Data &) = 0;
+       virtual void load_pixels_(Image::Data &) = 0;
 
 public:
        State get_state() const { return state; }