Implement inline downscaling in png reader, to save memory
authoraavit <qt_aavit@ovi.com>
Wed, 18 Apr 2012 13:02:21 +0000 (15:02 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Apr 2012 08:37:02 +0000 (10:37 +0200)
commit878a01b2d1ca819e24cda04c9baa2417c53a1215
tree08ff13218984de78f17678fb4294b95bb7bc7dfa
parentbc5e82ad99e5213a470ebbeb85a9c9c1f70b83e1
Implement inline downscaling in png reader, to save memory

Instead of allocating and reading the entire image and then scaling it
down, this code reads only one line at a time and scales it on the
fly.

Change-Id: I61fde307146c11dcd90ca617cc2e7f85dd3b66c4
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/gui/image/qpnghandler.cpp
tests/auto/gui/image/qimagereader/tst_qimagereader.cpp
tests/auto/gui/image/qimagewriter/tst_qimagewriter.cpp