diff options
author | Zeno Albisser <zeno.albisser@nokia.com> | 2010-03-19 16:59:31 (GMT) |
---|---|---|
committer | Zeno Albisser <zeno.albisser@nokia.com> | 2010-03-24 13:28:20 (GMT) |
commit | 25214cddf4b52506be07e9897d9b7852d793afc5 (patch) | |
tree | 20e23f3a1ba093c29bdd6a950320bd4d35fa170e /src/plugins/imageformats/jpeg/qjpeghandler.h | |
parent | 9540e2b5d67af9a26f431c3e8636bff9946e88c4 (diff) | |
download | Qt-25214cddf4b52506be07e9897d9b7852d793afc5.zip Qt-25214cddf4b52506be07e9897d9b7852d793afc5.tar.gz Qt-25214cddf4b52506be07e9897d9b7852d793afc5.tar.bz2 |
Optimization in QJpegHandler to reduce overhead
Image size and format is only calculated once on first call
of readJpegHeader. Further private data has been extracted
into QJpegHandlerPrivate.
Unfotunately this change only has very little effect.
Reviewed-by: aavit
Task-number: QTBUG-9091
Diffstat (limited to 'src/plugins/imageformats/jpeg/qjpeghandler.h')
-rw-r--r-- | src/plugins/imageformats/jpeg/qjpeghandler.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/imageformats/jpeg/qjpeghandler.h b/src/plugins/imageformats/jpeg/qjpeghandler.h index dfb6b47..c879f21 100644 --- a/src/plugins/imageformats/jpeg/qjpeghandler.h +++ b/src/plugins/imageformats/jpeg/qjpeghandler.h @@ -48,10 +48,12 @@ QT_BEGIN_NAMESPACE +class QJpegHandlerPrivate; class QJpegHandler : public QImageIOHandler { public: QJpegHandler(); + ~QJpegHandler(); bool canRead() const; bool read(QImage *image); @@ -66,10 +68,7 @@ public: bool supportsOption(ImageOption option) const; private: - int quality; - QSize scaledSize; - QRect scaledClipRect; - QRect clipRect; + QJpegHandlerPrivate *d; }; QT_END_NAMESPACE |