summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove remains of qmake conversion from CMakeLists.txt filesFriedemann Kleint2023-02-0813-23/+0
| | | | | | Pick-to: 6.5 Change-Id: Ic00df7d45246270d724b3b1d1ef9d13d76dcc136 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-061-1/+1
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: Ie5b276174d8446a6ddbca11a6a8e3e07d3bca675 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* Update HEIF test imageTor Arne Vestbø2022-09-131-0/+0
| | | | | | | | | | | | | The original image stopped working on macOS 13 Ventura, both with our image plugin and in Preview. It's unclear why the original image works fine in Preview on macOS 12, but that's an Apple bug, and our image plugin tests should not have to worry about platform differences like that. Task-number: QTBUG-104210 Pick-to: 6.4 6.2 Change-Id: If57fce379a2d9bcb92757e3f2f7e903b079e700b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Don't build iOS auto tests when QT_BUILD_MINIMAL_STATIC_TESTAlexandru Croitor2022-09-071-1/+7
| | | | | | | | | | | is set, so that integrations don't fail. In the future we might add build-only tests like we have in qtbase. Pick-to: 6.4 Task-number: QTBUG-96056 Change-Id: I84ccc93eb02b807702117b814d4969ccec62ffe2 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-2514-14/+14
| | | | | | Task-number: QTBUG-105718 Change-Id: I3598499ab89b0e88718eded846306511000e8db9 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* CMake: Don't use PUBLIC_LIBRARIES for tests and test helpersAlexandru Croitor2022-07-2811-11/+11
| | | | | Change-Id: I9e34269e7cfd5d3ee6edc1c07775d05b86d9bc78 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-0714-0/+42
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: Ifbf0be4c6f03259f9d084bbef4cf44fa60bf3fde Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-1311-300/+25
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I775d4a0c07b2b82a097d36649203e7f6223fdc51 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add finding from oss-fuzz to tst_qicnsRobert Löhning2022-05-251-1/+23
| | | | | | | Pick-to: 6.3 6.2 5.15 Task-number: QTBUG-103454 Change-Id: I86bf891e67bcd483ed0b551190244b94677d1751 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Fix tst_qicns test for INTEGRITYTatiana Borisova2022-01-241-0/+3
| | | | | | | | | | - There is no possibility to use file system on our INTEGRITY test device. Add test sciping Task-number: QTBUG-99123 Pick-to: 6.2 6.3 Change-Id: Icb84eb73b6010d4aa4ca19a4d3a0ecaa02216a6f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Remove unused .qrc filesJoerg Bornemann2022-01-187-102/+0
| | | | | | | Task-number: QTBUG-94446 Change-Id: I10e6f70d91bf74b13fe6713f2af5cc11a36e7e2b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Add floating point read and write to TIFF handlerAllan Sandfeld Jensen2021-06-011-0/+14
| | | | | | | | [ChangeLog][TIFF] Read/write support for floating point image formats added. Change-Id: Ib952ef9bfe7e38426f018515a5f92ed56c732a6f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Use fixed qt_add_resource BASE argumentJoerg Bornemann2021-05-2110-774/+191
| | | | | | | | Pick-to: 6.1 Task-number: QTBUG-86726 Change-Id: I7457f9336915e5913c6c98053db979eb9ca197a5 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Remove QMake project filesJoerg Bornemann2021-02-1112-92/+0
| | | | | | | | | | This includes removal of the corresponding .prev_CMakeLists.txt files. Pick-to: 6.1 Task-number: QTBUG-88742 Change-Id: I43bd344cd515aa2f671d012c64f281e8fc4793c9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* CMake: Regenerate projects to use new qt_internal_ APIAlexandru Croitor2020-10-0111-22/+22
| | | | | | | | Modify special case locations to use the new API as well. Task-number: QTBUG-86815 Change-Id: I045015a4f3b78f15570ea401d2b99ea1b75ec414 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update dependencies on 'dev' in qt/qtimageformatsLiang Qi2020-06-291-1/+1
| | | | | Change-Id: Iac64f53518ad8a8fefe0a2305953b5ec727a7fd4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Use QList instead of QVectorJarek Kobus2020-06-081-3/+3
| | | | | | Task-number: QTBUG-84469 Change-Id: I2edb875a4c3742adc9f52becb727e709a2beb7b9 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* CMake: Regenerate and fixup qtimageformats projectswip/cmakeAlexandru Croitor2020-03-165-13/+39
| | | | | | | | | | | | | A few changes happened since last update: - CMake target names are now consistent with Qt 5 names - ZLIB handling - TIFF 3rd party handling - Standalone tests simplification - Updates in the SUBDIRS project - Other minor changes Change-Id: I85cca79d38feca44c5b78dae48c79779ae05e288 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/dev' into wip/cmakeAlexandru Croitor2020-03-166-0/+33
|\ | | | | | | | | | | | | Conflicts: dependencies.yaml Change-Id: Ia9a6efda0bea5bc7c5f9f8cd4735da0bd3c0da26
| * Merge remote-tracking branch 'origin/5.15' into devQt Forward Merge Bot2019-12-246-0/+33
| |\ | | | | | | | | | Change-Id: I6e079d36038a811d3259e2a5a147601fbf5640fc
| | * Add support for reading BigTIFFEirik Aavitsland2019-12-206-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All recent versions of libtiff has support for the 64bit-indexed BigTIFF format. Allow reading it by recognizing its magic number. [ChangeLog][TIFF] Add support for reading BigTIFF Fixes: QTBUG-80538 Change-Id: I7fcb72d77e4a0bdcb38ab96e9f6cfaff7cf4ad49 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | | Regenerate projects to be in sync with the scriptAlexandru Croitor2019-11-1511-22/+22
| | | | | | | | | | | | | | | | | | Change-Id: I30d599c2f5e74293ff7037b5e667c0a3dab5be87 Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | Merge remote-tracking branch 'origin/dev' into wip/cmakeAlexandru Croitor2019-10-151-0/+38
|\ \ \ | |/ / | | | | | | Change-Id: Ib8c81669bd2f83c829fab625623452e4891b2356
| * | Merge remote-tracking branch 'origin/wip/qt6' into devSimon Hausmann2019-09-182-6/+6
| |\ \ | | |/ | |/| | | | Change-Id: I1b25b31fb8e8cd8f3e73c51cc0e4a233b6ef3363
| | * Merge remote-tracking branch 'origin/dev' into wip/qt6Simon Hausmann2019-09-161-0/+39
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I6cb3354f6a16aa94a7e463db6ac8bf941b0c500f
| * | | Fix build after QColorSpace API changesTor Arne Vestbø2019-09-051-5/+4
| | |/ | |/| | | | | | | | | | Change-Id: Iff3186cf4eccae5fc7e7e3c55c5e6eb662be9519 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
| * | Read/write ICC profile in TIFF pluginAllan Sandfeld Jensen2019-08-171-0/+39
| | | | | | | | | | | | | | | | | | | | | Adds reading and writing of embedded color spaces on the TIFF plugin. Change-Id: I53e8a16ff65f7986e9d51a5b543335e27b43e346 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* | | Regenerate projects before mergeAlexandru Croitor2019-10-1514-230/+858
| | | | | | | | | | | | | | | Change-Id: I9a889214e310b95ca1418925d6413602f9e00cea Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | | Add build and test instructionsAlexandru Croitor2019-09-051-4/+4
| | | | | | | | | | | | | | | | | | Change-Id: I4d52be7d162949ebc3e2122eb31ef64fce110d15 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Qt CMake Build Bot
* | | Merge remote-tracking branch 'origin/wip/qt6' into wip/cmakeAlexandru Croitor2019-08-151-1/+1
|\ \ \ | | |/ | |/| | | | Change-Id: Idf48bddde98d108d3692eddb8971affcc691a614
| * | Merge remote-tracking branch 'origin/dev' into wip/qt6Alexandru Croitor2019-08-111-1/+1
| |\ \ | | |/ | | | | | | Change-Id: Ic0596108d4f3af40f68e07b53a436eeb07fc9f55
| | * Eradicate the last Q_FOREACH and mark the module cleanMarc Mutz2019-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | ... of Q_FOREACH, Java-style iterators, and QLinkedList use. Change-Id: Ie751d771f226718ae7b8b19e502cbfb49730af3a Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* | | Merge remote-tracking branch 'origin/wip/qt6' into wip/cmakeAlexandru Croitor2019-06-172-6/+6
|\ \ \ | |/ / | | | | | | Change-Id: I99e95abde299432d6ea63eabd8d1f0b5b82a3039
| * | Fix qt6 buildAlexandru Croitor2019-06-142-6/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Bumped version. Adjusted code for removal of the TransformedByDefault enum. The enum is removed in Qt6 code, so existing tests need to be adapted to call setAutoTransform() for plugins that usually had autoTransform enabled by default. The new Qt6 default is that all plugins have autoTransform disabled by default. Change-Id: Ifa45375a4bc42ba1d863cb96af16776ea6dd0632 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* | Support standalone tests buildingAlexandru Croitor2019-06-031-2/+11
| | | | | | | | | | Change-Id: Ibcc29db9193a673b5b080ba79075cb50c89e4298 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* | Initial CMake PortAlexandru Croitor2019-05-2814-0/+423
|/ | | | | | | | | Port 90% of imageformats to be built with CMake. Missing support for mng plugin and documentation. Change-Id: I1d7e4b93c6f8446468f00dbf0663a6a4ec8c9774 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* Merge remote-tracking branch 'origin/5.12' into 5.13Qt Forward Merge Bot2019-03-273-1/+80
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: Ie44fe655653166bf5a4436aedd80d060afa45d5a
| * Heic handler: fix orientation and other image propertiesEirik Aavitsland2019-03-263-1/+80
| | | | | | | | | | | | | | | | | | | | The mac heic handler lacked support for any meta-data i/o. Most notably, the image orientation proprty was ignored, so images read in could be wrongly oriented. Fixes: QTBUG-73415 Change-Id: I779f91dc28c7441b124aab4557e1abcd3e69fde9 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
* | Add Grayscale16 support to TIFFAllan Sandfeld Jensen2019-01-033-1/+20
|/ | | | | Change-Id: I927d9ab0af78baf90d8fd8d44088218dff0e7082 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Add RGBA64 format support to TIFF pluginAllan Sandfeld Jensen2018-08-233-0/+18
| | | | | | | TIFF is one of the primary formats for HDR images. Change-Id: I5310b5c9a625fd3e759e5120be6ba547c633c81c Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* webp handler: support alpha-less reading and writingEirik Aavitsland2018-05-283-5/+19
| | | | | | | | | | | | | | Webp files can be with or without alpha channel. The handler would ignore this and read all as Format_ARGB32 images, and write all as having alpha, in both cases losing that important bit of information. As a driveby, simplify the endianness handling in write(). By always converting the source image to an endianness-independent QImage format, no special handling is required. Task-number: QTBUG-48628 Change-Id: I624ed72b18a8b59a542979efcb4e8ff81214e0d7 Reviewed-by: Liang Qi <liang.qi@qt.io>
* Add native Darwin handler for the HEIF (.heic) formatEirik Aavitsland2017-10-305-0/+84
| | | | | | | | | | | Adds basic support for still images encoded with the HEIF standard introduced in macOS Sierra and IOS 11. Uses the Core Graphics Image I/O Framework as codec backend. Reuses the helper class from the macjp2 handler. Change-Id: I5f0c7891b189a916cccd2c27eacbac12416ce209 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
* Fix QWebpHandler::canRead() to take animation frame count into accountJ-P Nurmi2017-07-031-0/+1
| | | | | | Task-number: QTBUG-61641 Change-Id: I24a139cc75141a588f2ed2558da85cd2f8391af9 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
* Extend support for tiled tiff files to all color formatsv5.9.0-beta3v5.9.0-beta2v5.9.0-beta1Eirik Aavitsland2017-03-1613-5/+25
| | | | | | | | | | | | | | | This commit extends the recently added support for tiled tiff images of color index format to also cover grayscale and mono images. RGB images were already covered, since the libtiff API used for those handles tiled images transparently. This commit also simplifies the tiff read() function by sharing common code among the different formats. [ChangeLog][TIFF] Extend support for tiled tiff files to all color formats Change-Id: I13f94bbca65dd6a35384a415906034e245ad8b79 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add support for tiled, color indexed tiff filesEirik Aavitsland2017-03-154-0/+24
| | | | | | | | | | | | For color index images, the tiff handler uses scanline based reading. The tiff decoder does not support that if the image is stored in tiled format. This commit adds tile based reading for such cases. [ChangeLog][TIFF] Added support for tiled, color indexed tiff files Task-number: QTBUG-12636 Change-Id: Ic759903c75c8252267429f01e3dd9706fc516f8f Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Add support for multipage TIFF images to QTiffHandlerv5.9.0-alpha1Sandro Mani2017-01-253-0/+45
| | | | | | | | | | | Allows multipage TIFF images to be read via QImageReader::jumpToImage and QImageReader::jumpNextToImage. [ChangeLog][QtGui][QImageReader] Support multipage TIFF images through QImageReader Change-Id: Id6ac68b75500148e51be11eff3d296c929d2d95c Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Fix build after qtConfig changes in qtbaseLars Knoll2016-08-191-1/+1
| | | | | Change-Id: Ic2313cf8a6e938d5885aa1e26c36a5d7d5af166d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Merge remote-tracking branch 'origin/5.7' into devLiang Qi2016-04-084-2/+61
|\ | | | | | | Change-Id: Idf9bbf8661a1589ff27e58322117d56363ec3e4a
| * Add a Jpeg2000 handler that utilizes Apple ImageIO FrameworkEirik Aavitsland2016-03-171-2/+0
| | | | | | | | | | | | | | | | The Jasper-based jp2 plugin has been disabled by default. This plugin can replace it for OS X and iOS. Change-Id: Id43dbefdf7df22493910a855f823c9b966bafcdb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
| * Add animation support to WebP pluginDayang Shen2016-03-103-0/+61
| | | | | | | | | | | | | | | | We now use WebP Demux API to decode both single image format and muxed animation format. Change-Id: Ia2922892a3a626e9921c3910801d7c975d9fc6a2 Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>