aboutsummaryrefslogtreecommitdiff
path: root/graphics/jpeg.h
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/jpeg.h')
-rw-r--r--graphics/jpeg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/jpeg.h b/graphics/jpeg.h
index f91355e329..4a9ed1a860 100644
--- a/graphics/jpeg.h
+++ b/graphics/jpeg.h
@@ -34,6 +34,8 @@ class SeekableReadStream;
namespace Graphics {
+struct PixelFormat;
+
#define JPEG_MAX_QUANT_TABLES 4
#define JPEG_MAX_HUFF_TABLES 2
@@ -43,7 +45,12 @@ public:
~JPEG();
bool read(Common::SeekableReadStream *str);
+ bool isLoaded() const { return _numComp && _w && _h; }
+ uint16 getWidth() const { return _w; }
+ uint16 getHeight() const { return _h; }
+
Surface *getComponent(uint c);
+ Surface *getSurface(const PixelFormat &format);
private:
void reset();