summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qbmphandler_p.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-06-07 17:28:25 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-07-03 07:41:56 +0000
commit989b9da3007ff06c79ab7ee553acfce9177df5b6 (patch)
tree1fc65836ff484409c74348f3283a5370d1b90829 /src/gui/image/qbmphandler_p.h
parented1373124a55d41a8e7b5c123428f2a088d25896 (diff)
Fix BMP ImageFormat for semi-transparent files
Reads the v4 and v5 info-header together with the rest of the info- headers, and use that to report the correct image format before decoding. Change-Id: I69e2bcc54367b7f14820815ae2ae1fa2d8d5dc8c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/image/qbmphandler_p.h')
-rw-r--r--src/gui/image/qbmphandler_p.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/image/qbmphandler_p.h b/src/gui/image/qbmphandler_p.h
index 3e1fc3d511..56b39dd0f0 100644
--- a/src/gui/image/qbmphandler_p.h
+++ b/src/gui/image/qbmphandler_p.h
@@ -78,6 +78,21 @@ struct BMP_INFOHDR { // BMP information header
qint32 biYPelsPerMeter; // vertical resolution
qint32 biClrUsed; // number of colors used
qint32 biClrImportant; // number of important colors
+ // V4:
+ quint32 biRedMask;
+ quint32 biGreenMask;
+ quint32 biBlueMask;
+ quint32 biAlphaMask;
+ qint32 biCSType;
+ qint32 biEndpoints[9];
+ qint32 biGammaRed;
+ qint32 biGammaGreen;
+ qint32 biGammaBlue;
+ // V5:
+ qint32 biIntent;
+ qint32 biProfileData;
+ qint32 biProfileSize;
+ qint32 biReserved;
};
// BMP-Handler, which is also able to read and write the DIB