diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-10-08 12:21:10 (GMT) |
---|---|---|
committer | Jesper Thomschutz <jesper.thomschutz@nokia.com> | 2010-10-10 17:52:34 (GMT) |
commit | 6f596b07a7c035b36bc1005a83b283057669e4ac (patch) | |
tree | a6b6902cae3d98e0ee9099741496fb7fa45a4bef /doc/src/snippets/code/src_network_socket_qnativesocketengine.cpp | |
parent | dc5299e1a59e066e4b804c081114edaa8b104438 (diff) | |
download | Qt-6f596b07a7c035b36bc1005a83b283057669e4ac.zip Qt-6f596b07a7c035b36bc1005a83b283057669e4ac.tar.gz Qt-6f596b07a7c035b36bc1005a83b283057669e4ac.tar.bz2 |
Avoid in-place convertion of images with multiple references
The decoding from image reader was assuming the image reader do not
keep the image internally. This is not true for the GIF plugins because
the previous image can be used to compose the current image.
This was causing crash on ARM because the 16 bits color depth causes
the image memory to be reduce by half. When the plugin was accessing
the memory, it assumes the images has not changed and is on 32 bits.
This patch disable the in-place conversion if a detach is required.
Regular conversion is the correct solution in this case, and it can
also be made faster by converting while copying.
Reviewed-by: Andreas Kling
(cherry picked from commit 4d974ff0a748b22e668a4cb7ef38101122c85b3b)
Diffstat (limited to 'doc/src/snippets/code/src_network_socket_qnativesocketengine.cpp')
0 files changed, 0 insertions, 0 deletions