summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libpng
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-05-13 13:33:52 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-05-23 13:31:57 +0000
commitf15c0b695aa851086fac04387ed336401e7a562f (patch)
treec07f871a98b43035af87bcacc77d5721f528fa5d /src/3rdparty/libpng
parentb8a0c6e7c52ebf56d0895f798946d1f1dbb00c35 (diff)
Optimize QImage checkForAlphaPixels
This routine is often called to down-convert pixmaps and backing stores to RGB32. This patch replaces a comparison in each pixel, with a single AND in each pixel and a comparison at each line. The new form is also auto- vectorized by at least GCC. Change-Id: I3e07585a3ec12f888321d35da57ac99b561dbec4 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/3rdparty/libpng')
0 files changed, 0 insertions, 0 deletions