qt5base-lts/tests/auto/gui/image
Allan Sandfeld Jensen d8dc664b94 Ensure valid data after QImage::invertPixels
QImage::invertPixels may produce invalid data after inversions of
images with premultiplied alpha, because the inverted colors will be
larger than the alpha.

This patch converts any image with a premultiplied alpha channel to
ARGB32 before inverting the pixels, and then back to the original
format after the inversion.

Support is added for correct inversion of RGBA8888 and RGB30 formats.

Task-number: QTBUG-39901
Change-Id: Ief24c55f495e67ef2ad6429b5b418d02963a64dd
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
2014-07-31 20:16:09 +02:00
..
qicoimageformat Make the ICO image handler capable of reading CUR files too. 2014-06-05 19:10:58 +02:00
qicon tst_qicon: Resolve all files using QFINDTESTDATA(). 2014-06-22 09:41:06 +02:00
qimage Ensure valid data after QImage::invertPixels 2014-07-31 20:16:09 +02:00
qimageiohandler QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qimagereader Remove qSort usages from gui tests 2014-02-20 08:10:19 +01:00
qimagewriter Remove qSort usages from gui tests 2014-02-20 08:10:19 +01:00
qmovie QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
qpicture Serialize QPicture using the latest QDataStream version. 2014-04-02 15:18:11 +02:00
qpixmap Reduce repetitive invocations of QFINDTESTDATA. 2014-07-10 07:07:30 +02:00
qpixmapcache QtGui tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:42 +01:00
image.pro Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00