Skip to content

Commit ec87f10

Browse files
Update qtimageformats to latest "dev" (649100f)
1 parent b37f739 commit ec87f10

File tree

182 files changed

+9051
-6391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+9051
-6391
lines changed

src/ThirdParty/QtImageFormats/patches/qtimageformats/0001-Use-Q_DECL_OVERRIDE-instead-of-override.patch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
From ef1b4549d244a391335621473792857e57fd460e Mon Sep 17 00:00:00 2001
1+
From 08f1e18405e2c432f4252705bd3b98a563d761a3 Mon Sep 17 00:00:00 2001
22
From: Peter Zhigalov <[email protected]>
33
Date: Sat, 10 Mar 2018 15:40:08 +0700
44
Subject: [PATCH 1/4] Use "Q_DECL_OVERRIDE" instead of "override"
55

66
---
7-
src/plugins/imageformats/dds/qddshandler.h | 18 +++++++++---------
8-
src/plugins/imageformats/icns/qicnshandler_p.h | 18 +++++++++---------
9-
src/plugins/imageformats/jp2/qjp2handler_p.h | 14 +++++++-------
10-
src/plugins/imageformats/mng/qmnghandler_p.h | 26 +++++++++++++-------------
11-
src/plugins/imageformats/tga/qtgafile.cpp | 6 +++---
12-
src/plugins/imageformats/tga/qtgahandler.h | 12 ++++++------
13-
src/plugins/imageformats/tiff/qtiffhandler_p.h | 22 +++++++++++-----------
14-
src/plugins/imageformats/wbmp/qwbmphandler_p.h | 10 +++++-----
15-
src/plugins/imageformats/webp/qwebphandler_p.h | 24 ++++++++++++------------
7+
src/plugins/imageformats/dds/qddshandler.h | 18 ++++++-------
8+
.../imageformats/icns/qicnshandler_p.h | 18 ++++++-------
9+
src/plugins/imageformats/jp2/qjp2handler_p.h | 14 +++++-----
10+
src/plugins/imageformats/mng/qmnghandler_p.h | 26 +++++++++----------
11+
src/plugins/imageformats/tga/qtgafile.cpp | 6 ++---
12+
src/plugins/imageformats/tga/qtgahandler.h | 12 ++++-----
13+
.../imageformats/tiff/qtiffhandler_p.h | 22 ++++++++--------
14+
.../imageformats/wbmp/qwbmphandler_p.h | 10 +++----
15+
.../imageformats/webp/qwebphandler_p.h | 24 ++++++++---------
1616
9 files changed, 75 insertions(+), 75 deletions(-)
1717

1818
diff --git a/src/plugins/imageformats/dds/qddshandler.h b/src/plugins/imageformats/dds/qddshandler.h
@@ -301,5 +301,5 @@ index 950b501..5126692 100644
301301
private:
302302
bool ensureScanned() const;
303303
--
304-
2.14.2
304+
2.17.1
305305

src/ThirdParty/QtImageFormats/patches/qtimageformats/0002-Dont-use-modern-options-with-old-Qt-verson.patch

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
From d02eaf5fc9e0b7a64f812f6f5cbb2dabeba1e7eb Mon Sep 17 00:00:00 2001
1+
From 6e51e3bab1ef2a140fc17d97bfc94a29e7340034 Mon Sep 17 00:00:00 2001
22
From: Peter Zhigalov <[email protected]>
3-
Date: Sun, 14 May 2017 23:12:38 +0700
3+
Date: Sun, 17 Jun 2018 19:52:22 +0700
44
Subject: [PATCH 2/4] Dont use modern options with old Qt verson
55

66
---
7-
src/plugins/imageformats/dds/qddshandler.cpp | 7 ++++++-
8-
src/plugins/imageformats/jp2/qjp2handler.cpp | 7 +++++++
9-
src/plugins/imageformats/webp/qwebphandler.cpp | 4 ++++
10-
3 files changed, 17 insertions(+), 1 deletion(-)
7+
src/plugins/imageformats/dds/qddshandler.cpp | 7 ++++++-
8+
src/plugins/imageformats/jp2/qjp2handler.cpp | 7 +++++++
9+
.../imageformats/webp/qwebphandler.cpp | 20 +++++++++++++++++++
10+
3 files changed, 33 insertions(+), 1 deletion(-)
1111

1212
diff --git a/src/plugins/imageformats/dds/qddshandler.cpp b/src/plugins/imageformats/dds/qddshandler.cpp
1313
index 3a44b51..dab69d5 100644
@@ -56,12 +56,12 @@ index 17373fd..da74fb2 100644
5656
}
5757

5858
diff --git a/src/plugins/imageformats/webp/qwebphandler.cpp b/src/plugins/imageformats/webp/qwebphandler.cpp
59-
index 3a7bf43..13ea7fa 100644
59+
index 578a701..d861db4 100644
6060
--- a/src/plugins/imageformats/webp/qwebphandler.cpp
6161
+++ b/src/plugins/imageformats/webp/qwebphandler.cpp
62-
@@ -176,7 +176,11 @@ bool QWebpHandler::read(QImage *image)
63-
64-
QImage frame(m_iter.width, m_iter.height, QImage::Format_ARGB32);
62+
@@ -177,7 +177,11 @@ bool QWebpHandler::read(QImage *image)
63+
QImage::Format format = m_features.has_alpha ? QImage::Format_ARGB32 : QImage::Format_RGB32;
64+
QImage frame(m_iter.width, m_iter.height, format);
6565
uint8_t *output = frame.bits();
6666
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
6767
size_t output_size = frame.sizeInBytes();
@@ -71,6 +71,41 @@ index 3a7bf43..13ea7fa 100644
7171
#if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
7272
if (!WebPDecodeBGRAInto(
7373
reinterpret_cast<const uint8_t*>(m_iter.fragment.bytes), m_iter.fragment.size,
74+
@@ -221,7 +225,11 @@ bool QWebpHandler::write(const QImage &image)
75+
76+
QImage srcImage = image;
77+
bool alpha = srcImage.hasAlphaChannel();
78+
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
79+
QImage::Format newFormat = alpha ? QImage::Format_RGBA8888 : QImage::Format_RGB888;
80+
+#else
81+
+ QImage::Format newFormat = alpha ? QImage::Format_ARGB32 : QImage::Format_RGB32;
82+
+#endif
83+
if (srcImage.format() != newFormat)
84+
srcImage = srcImage.convertToFormat(newFormat);
85+
86+
@@ -237,10 +245,22 @@ bool QWebpHandler::write(const QImage &image)
87+
picture.height = srcImage.height();
88+
picture.use_argb = 1;
89+
bool failed = false;
90+
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0))
91+
if (alpha)
92+
failed = !WebPPictureImportRGBA(&picture, srcImage.bits(), srcImage.bytesPerLine());
93+
else
94+
failed = !WebPPictureImportRGB(&picture, srcImage.bits(), srcImage.bytesPerLine());
95+
+#else
96+
+# if Q_BYTE_ORDER == Q_LITTLE_ENDIAN
97+
+ if (alpha)
98+
+ failed = !WebPPictureImportBGRA(&picture, srcImage.bits(), srcImage.bytesPerLine());
99+
+ else
100+
+ failed = !WebPPictureImportBGRX(&picture, srcImage.bits(), srcImage.bytesPerLine());
101+
+# else /* Q_BIG_ENDIAN */
102+
+ qWarning() << "QWebpHandler::write is not implemented for big endian systems with Qt < 5.2";
103+
+ failed = true;
104+
+# endif
105+
+#endif
106+
107+
if (failed) {
108+
qWarning() << "failed to import image data to webp picture.";
74109
--
75-
2.14.2
110+
2.17.1
76111

src/ThirdParty/QtImageFormats/patches/qtimageformats/0003-Use-custom-third-party-libraries-paths.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From 626bbd164d711a699685e1f95ead1e4ff3d29e6f Mon Sep 17 00:00:00 2001
1+
From 6ae19c4845835e81a08ce7920d483a444111083b Mon Sep 17 00:00:00 2001
22
From: Peter Zhigalov <[email protected]>
33
Date: Sun, 14 May 2017 23:13:29 +0700
4-
Subject: [PATCH 3/3] Use custom third-party libraries paths
4+
Subject: [PATCH 3/4] Use custom third-party libraries paths
55

66
---
77
src/3rdparty/zlib_dependency.pri | 11 ++++++-----
@@ -69,5 +69,5 @@ index 5c0fff1..25a2939 100644
6969
+# *-g++*: QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter
7070
+#}
7171
--
72-
2.13.0
72+
2.17.1
7373

src/ThirdParty/QtImageFormats/patches/qtimageformats/0004-Fix-handling-icns-files-with-JPEG-2000-frames.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 88843aa58e17bf2d92196e7e0e848cdb4396c4d9 Mon Sep 17 00:00:00 2001
1+
From ddc936f884b8f1dc5e4daa67f0020d0d9e1f2ca2 Mon Sep 17 00:00:00 2001
22
From: Peter Zhigalov <[email protected]>
33
Date: Mon, 15 May 2017 00:06:30 +0700
44
Subject: [PATCH 4/4] Fix handling icns files with JPEG 2000 frames
@@ -41,5 +41,5 @@ index a854506..981f367 100644
4141
if (format == 0)
4242
format = "unknown";
4343
--
44-
2.13.0
44+
2.17.1
4545

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
load(qt_build_config)
22

3-
MODULE_VERSION = 5.11.0
3+
MODULE_VERSION = 5.12.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f878323a82fa69fcaeb37b42e10ba28759157f47
1+
649100fa0e1ab5443e8fa31b6642ee05b1e41835

src/ThirdParty/QtImageFormats/qtimageformats/LGPL_EXCEPTION.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Qt 5.11 introduces many new features and improvements as well as bugfixes
2+
over the 5.10.x series. For more details, refer to the online documentation
3+
included in this distribution. The documentation is also available online:
4+
5+
http://doc.qt.io/qt-5/index.html
6+
7+
The Qt version 5.11 series is binary compatible with the 5.10.x series.
8+
Applications compiled for 5.10 will continue to run with 5.11.
9+
10+
Some of the changes listed in this file include issue tracking numbers
11+
corresponding to tasks in the Qt Bug Tracker:
12+
13+
https://bugreports.qt.io/
14+
15+
Each of these identifiers can be entered in the bug tracker to obtain more
16+
information about a particular change.
17+
18+
****************************************************************************
19+
* Qt 5.11.0 Changes *
20+
****************************************************************************
21+
22+
Third-Party Code
23+
----------------
24+
25+
- Bundled libwebp was updated to version 0.6.1
26+
27+
Native Darwin jp2 and heic handlers
28+
-----------------------------------
29+
30+
- iOS support fixed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Qt 5.9.5 is a bug-fix release. It maintains both forward and backward
2+
compatibility (source and binary) with Qt 5.9.0.
3+
4+
For more details, refer to the online documentation included in this
5+
distribution. The documentation is also available online:
6+
7+
http://doc.qt.io/qt-5/index.html
8+
9+
The Qt version 5.9 series is binary compatible with the 5.8.x series.
10+
Applications compiled for 5.9 will continue to run with 5.9.
11+
12+
Some of the changes listed in this file include issue tracking numbers
13+
corresponding to tasks in the Qt Bug Tracker:
14+
15+
https://bugreports.qt.io/
16+
17+
Each of these identifiers can be entered in the bug tracker to obtain more
18+
information about a particular change.
19+
20+
****************************************************************************
21+
* Qt 5.9.5 Changes *
22+
****************************************************************************
23+
24+
- This release contains only minor code improvements.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Qt 5.9.6 is a bug-fix release. It maintains both forward and backward
2+
compatibility (source and binary) with Qt 5.9.0 through 5.9.5.
3+
4+
For more details, refer to the online documentation included in this
5+
distribution. The documentation is also available online:
6+
7+
http://doc.qt.io/qt-5/index.html
8+
9+
The Qt version 5.9 series is binary compatible with the 5.8.x series.
10+
Applications compiled for 5.8 will continue to run with 5.9.
11+
12+
Some of the changes listed in this file include issue tracking numbers
13+
corresponding to tasks in the Qt Bug Tracker:
14+
15+
https://bugreports.qt.io/
16+
17+
Each of these identifiers can be entered in the bug tracker to obtain more
18+
information about a particular change.
19+
20+
****************************************************************************
21+
* Qt 5.9.6 Changes *
22+
****************************************************************************
23+
24+
- This release contains only minor code improvements.

0 commit comments

Comments
 (0)