mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-17 11:44:16 -04:00
Compare commits
7 Commits
v5.42.0-rc
...
v5.45.0
Author | SHA1 | Date | |
---|---|---|---|
4668fbbcdc | |||
698ba297d3 | |||
3a9bafdbbe | |||
e5b226e804 | |||
871d0f976f | |||
7aa5333a3f | |||
aeabd92eea |
@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.0)
|
|||||||
project(KImageFormats)
|
project(KImageFormats)
|
||||||
|
|
||||||
include(FeatureSummary)
|
include(FeatureSummary)
|
||||||
find_package(ECM 5.42.0 NO_MODULE)
|
find_package(ECM 5.45.0 NO_MODULE)
|
||||||
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
|
set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
|
||||||
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ include(KDECMakeSettings)
|
|||||||
|
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
|
|
||||||
set(REQUIRED_QT_VERSION 5.7.0)
|
set(REQUIRED_QT_VERSION 5.8.0)
|
||||||
find_package(Qt5Gui ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
|
find_package(Qt5Gui ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE)
|
||||||
|
|
||||||
find_package(KF5Archive)
|
find_package(KF5Archive)
|
||||||
|
@ -15,7 +15,6 @@ function(kimageformats_add_plugin plugin)
|
|||||||
message(FATAL_ERROR "JSON file doesn't exist: ${json}")
|
message(FATAL_ERROR "JSON file doesn't exist: ${json}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_property(SOURCE ${KIF_ADD_PLUGIN_SOURCES} APPEND PROPERTY OBJECT_DEPENDS ${json})
|
|
||||||
add_library(${plugin} MODULE ${KIF_ADD_PLUGIN_SOURCES})
|
add_library(${plugin} MODULE ${KIF_ADD_PLUGIN_SOURCES})
|
||||||
set_property(TARGET ${plugin} APPEND PROPERTY AUTOGEN_TARGET_DEPENDS ${json})
|
set_property(TARGET ${plugin} APPEND PROPERTY AUTOGEN_TARGET_DEPENDS ${json})
|
||||||
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/imageformats")
|
set_target_properties(${plugin} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/imageformats")
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#include "hdr_p.h"
|
#include "hdr_p.h"
|
||||||
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QtCore/QDataStream>
|
#include <QDataStream>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include "ras_p.h"
|
#include "ras_p.h"
|
||||||
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QtCore/QDataStream>
|
#include <QDataStream>
|
||||||
// #include <QDebug>
|
// #include <QDebug>
|
||||||
|
|
||||||
namespace // Private.
|
namespace // Private.
|
||||||
|
@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
#include "rgb_p.h"
|
#include "rgb_p.h"
|
||||||
|
|
||||||
#include <QtCore/QMap>
|
#include <QMap>
|
||||||
#include <QtCore/QVector>
|
#include <QVector>
|
||||||
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
// #include <QDebug>
|
// #include <QDebug>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QtCore/QDataStream>
|
#include <QDataStream>
|
||||||
// #include <QDebug>
|
// #include <QDebug>
|
||||||
|
|
||||||
typedef quint32 uint;
|
typedef quint32 uint;
|
||||||
@ -145,9 +145,7 @@ struct TgaHeaderInfo {
|
|||||||
switch (tga.image_type) {
|
switch (tga.image_type) {
|
||||||
case TGA_TYPE_RLE_INDEXED:
|
case TGA_TYPE_RLE_INDEXED:
|
||||||
rle = true;
|
rle = true;
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
|
|
||||||
Q_FALLTHROUGH();
|
Q_FALLTHROUGH();
|
||||||
#endif
|
|
||||||
// no break is intended!
|
// no break is intended!
|
||||||
case TGA_TYPE_INDEXED:
|
case TGA_TYPE_INDEXED:
|
||||||
pal = true;
|
pal = true;
|
||||||
@ -155,9 +153,7 @@ struct TgaHeaderInfo {
|
|||||||
|
|
||||||
case TGA_TYPE_RLE_RGB:
|
case TGA_TYPE_RLE_RGB:
|
||||||
rle = true;
|
rle = true;
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
|
|
||||||
Q_FALLTHROUGH();
|
Q_FALLTHROUGH();
|
||||||
#endif
|
|
||||||
// no break is intended!
|
// no break is intended!
|
||||||
case TGA_TYPE_RGB:
|
case TGA_TYPE_RGB:
|
||||||
rgb = true;
|
rgb = true;
|
||||||
@ -165,9 +161,7 @@ struct TgaHeaderInfo {
|
|||||||
|
|
||||||
case TGA_TYPE_RLE_GREY:
|
case TGA_TYPE_RLE_GREY:
|
||||||
rle = true;
|
rle = true;
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
|
|
||||||
Q_FALLTHROUGH();
|
Q_FALLTHROUGH();
|
||||||
#endif
|
|
||||||
// no break is intended!
|
// no break is intended!
|
||||||
case TGA_TYPE_GREY:
|
case TGA_TYPE_GREY:
|
||||||
grey = true;
|
grey = true;
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <QImage>
|
#include <QImage>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QtCore/QIODevice>
|
#include <QIODevice>
|
||||||
#include <QtCore/QStack>
|
#include <QStack>
|
||||||
#include <QtCore/QVector>
|
#include <QVector>
|
||||||
// #include <QDebug>
|
// #include <QDebug>
|
||||||
|
|
||||||
#include "gimp_p.h"
|
#include "gimp_p.h"
|
||||||
@ -1323,9 +1323,7 @@ bool XCFImageFormat::initializeImage(XCFImage &xcf_image)
|
|||||||
image.fill(qRgb(255, 255, 255));
|
image.fill(qRgb(255, 255, 255));
|
||||||
break;
|
break;
|
||||||
} // else, fall through to 32-bit representation
|
} // else, fall through to 32-bit representation
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
|
|
||||||
Q_FALLTHROUGH();
|
Q_FALLTHROUGH();
|
||||||
#endif
|
|
||||||
case RGBA_GIMAGE:
|
case RGBA_GIMAGE:
|
||||||
image = QImage(xcf_image.width, xcf_image.height, QImage::Format_ARGB32);
|
image = QImage(xcf_image.width, xcf_image.height, QImage::Format_ARGB32);
|
||||||
if (image.isNull()) {
|
if (image.isNull()) {
|
||||||
@ -1345,9 +1343,7 @@ bool XCFImageFormat::initializeImage(XCFImage &xcf_image)
|
|||||||
image.fill(255);
|
image.fill(255);
|
||||||
break;
|
break;
|
||||||
} // else, fall through to 32-bit representation
|
} // else, fall through to 32-bit representation
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5,8,0)
|
|
||||||
Q_FALLTHROUGH();
|
Q_FALLTHROUGH();
|
||||||
#endif
|
|
||||||
case GRAYA_GIMAGE:
|
case GRAYA_GIMAGE:
|
||||||
image = QImage(xcf_image.width, xcf_image.height, QImage::Format_ARGB32);
|
image = QImage(xcf_image.width, xcf_image.height, QImage::Format_ARGB32);
|
||||||
if (image.isNull()) {
|
if (image.isNull()) {
|
||||||
|
Reference in New Issue
Block a user