Compare commits

..

20 Commits

Author SHA1 Message Date
6b72930cb2 Upgrade ECM and KF5 version requirements for 5.7.0 release. 2015-01-23 20:40:27 +00:00
4cdcf3a98c Add missing QDataStream include
Fixes build with Qt 5.5
2015-01-17 03:40:59 +01:00
88518c5862 Update installation variables. 2015-01-10 17:46:30 +00:00
b870e9cd47 Upgrade ECM and KF5 version requirements for 5.6.0 release. 2014-12-31 14:23:36 +00:00
c21fc5982b Upgrade ECM and KF5 version requirements for 5.5.0 release. 2014-12-02 16:47:14 +00:00
8ffd5bb2f7 Upgrade ECM and KF5 version requirements for 5.4.0 release. 2014-10-31 20:17:43 +00:00
5ae66b99d9 Upgrade ECM and KF5 version requirements for 5.3.0 release. 2014-10-03 17:55:41 +00:00
f4bea644eb Upgrade ECM and KF5 version requirements for 5.2.0 release. 2014-09-07 23:25:44 +00:00
415850f3d3 Switch the brief descriptions around
Put the shorter description in metainfo.yaml, and the longer one in
README.md.
2014-08-15 18:41:16 +01:00
af19f49711 Add metadata about the QMake and CMake packages installed by this framework and remove Links from README.md 2014-08-13 10:04:37 +02:00
3d45b270ea Disable the DDS and JPEG-2000 plugins when Qt version is 5.3 or later
QtImageFormats 5.3 comes with DDS and JPEG-2000 plugins that support
more options and are generally better than our plugins. The only
advantage our plugins offer is that the Qt DDS plugin does not work on
sequential devices, while ours does. This is outweighed by other
improvements, though, such as supporting more variants.

REVIEW: 119590
2014-08-04 22:50:37 +01:00
c9ca1f1862 Rename headers to end with _p.h
Frameworks have a convention of naming uninstalled headers in src/ with
a _p at the end of the name, to make it clear they are not part of the
API. None of the headers in KImageFormats are installed, so it is not
really necessary to follow this convention, but we follow it anyway for
the benefit of both humans and tools (like kapidox).
2014-08-03 18:08:49 +01:00
a96a255f71 Upgrade ECM and KF5 version requirements for 5.1.0 release. 2014-08-02 08:19:18 +00:00
5b42b3b787 Upgrade ECM version requirement to 1.0.0 after all. 2014-07-01 20:16:27 +02:00
f98e508da4 Upgrade ECM and KF5 version requirements. 2014-07-01 15:32:05 +02:00
a92540f00d Upgrade ECM and KF5 version requirements. 2014-06-01 12:40:39 +02:00
2ec0d5abc6 Fix a compiler warning about signed/unsigned comparisons
The "+ 1" was causing an unsigned value to be cast to a signed value,
which was then compared with an unsigned value, causing the warning.
Making the constant unsigned fixes this.
2014-05-30 16:47:19 +01:00
cca4c545a4 Hide documented internal classes from Doxygen 2014-05-30 16:40:05 +01:00
87b545f9ed Make sure Doxygen does not interpret license headers as dox
The extra *s were confusing it.
2014-05-30 16:38:45 +01:00
1132abbf67 Update metainfo.yaml's short description and platform notes 2014-05-16 17:07:10 +01:00
30 changed files with 83 additions and 63 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.12)
project(KImageFormats)
find_package(ECM 0.0.13 REQUIRED NO_MODULE)
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
@ -30,13 +30,17 @@ if (UNIX)
endif()
endif()
find_package(Jasper)
set_package_properties(Jasper PROPERTIES
DESCRIPTION "A library for handling JPEG-2000 images"
PURPOSE "Required for the QImage plugin for JPEG-2000 images"
URL "http://www.ece.uvic.ca/~mdadams/jasper"
TYPE OPTIONAL
)
# QtImageFormats 5.3 comes with a JPEG-2000 plugin; don't duplicate it here
# TODO: remove our JPEG-2000 plugin when we depend on Qt 5.3.
if (Qt5Gui_VERSION VERSION_LESS 5.3.0)
find_package(Jasper)
set_package_properties(Jasper PROPERTIES
DESCRIPTION "A library for handling JPEG-2000 images"
PURPOSE "Required for the QImage plugin for JPEG-2000 images"
URL "http://www.ece.uvic.ca/~mdadams/jasper"
TYPE OPTIONAL
)
endif()
find_package(OpenEXR)
set_package_properties(OpenEXR PROPERTIES

View File

@ -1,6 +1,6 @@
# KImageFormats
Image format plugins for Qt
Plugins to allow QImage to support extra file formats.
## Introduction
@ -63,9 +63,3 @@ This framework is licensed under the
The CMake code in this framework is licensed under the
[BSD license](http://opensource.org/licenses/BSD-3-Clause).
## Links
- Home page: <https://projects.kde.org/projects/frameworks/kimageformats>
- Mailing list: <https://mail.kde.org/mailman/listinfo/kde-frameworks-devel>
- IRC channel: \#kde-devel on Freenode
- Git repository: <https://projects.kde.org/projects/frameworks/kimageformats/repository>

View File

@ -1,9 +1,12 @@
maintainer: alexmerry
description: Addons to QtImageFormats
description: Image format plugins for Qt
tier: 1
type: functional
platforms:
- name: All
- name: Linux
- name: MacOSX
- name: Windows
note: No EPS support on Windows
portingAid: false
deprecated: false
release: true

View File

@ -2,11 +2,15 @@
##################################
add_library(kimg_dds MODULE dds.cpp)
target_link_libraries(kimg_dds Qt5::Gui)
if (Qt5Gui_VERSION VERSION_LESS 5.3.0)
add_library(kimg_dds MODULE dds.cpp)
target_link_libraries(kimg_dds Qt5::Gui)
install(TARGETS kimg_dds DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES dds.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_dds DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES dds.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
else()
install(FILES dds-qt.desktop RENAME dds.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
endif()
##################################
@ -15,8 +19,8 @@ if (BUILD_EPS_PLUGIN)
add_library(kimg_eps MODULE eps.cpp)
target_link_libraries(kimg_eps Qt5::Gui Qt5::PrintSupport)
install(TARGETS kimg_eps DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES eps.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_eps DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES eps.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
endif()
endif()
@ -32,8 +36,11 @@ if(JASPER_FOUND)
target_include_directories(kimg_jp2 PRIVATE ${JASPER_INCLUDE_DIR})
target_link_libraries(kimg_jp2 Qt5::Gui ${JASPER_LIBRARIES})
install(TARGETS kimg_jp2 DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES jp2.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_jp2 DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES jp2.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
elseif (NOT Qt5Gui_VERSION VERSION_LESS 5.3.0)
# need this for Qt's version of the plugin
install(FILES jp2.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
endif()
##################################
@ -43,8 +50,8 @@ if(OpenEXR_FOUND)
target_link_libraries(kimg_exr Qt5::Gui OpenEXR::IlmImf)
kde_target_enable_exceptions(kimg_exr PRIVATE)
install(TARGETS kimg_exr DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES exr.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_exr DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES exr.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
endif()
##################################
@ -52,54 +59,54 @@ endif()
add_library(kimg_pcx MODULE pcx.cpp)
target_link_libraries(kimg_pcx Qt5::Gui)
install(TARGETS kimg_pcx DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES pcx.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_pcx DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES pcx.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
##################################
add_library(kimg_pic MODULE pic.cpp)
target_link_libraries(kimg_pic Qt5::Gui)
install(TARGETS kimg_pic DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES pic.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_pic DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES pic.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
##################################
add_library(kimg_psd MODULE psd.cpp)
target_link_libraries(kimg_psd Qt5::Gui)
install(TARGETS kimg_psd DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES psd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_psd DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES psd.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
##################################
add_library(kimg_ras MODULE ras.cpp)
target_link_libraries(kimg_ras Qt5::Gui)
install(TARGETS kimg_ras DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES ras.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_ras DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES ras.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
##################################
add_library(kimg_rgb MODULE rgb.cpp)
target_link_libraries(kimg_rgb Qt5::Gui)
install(TARGETS kimg_rgb DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES rgb.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_rgb DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES rgb.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
##################################
add_library(kimg_tga MODULE tga.cpp)
target_link_libraries(kimg_tga Qt5::Gui)
install(TARGETS kimg_tga DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES tga.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_tga DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES tga.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
##################################
add_library(kimg_xcf MODULE xcf.cpp)
target_link_libraries(kimg_xcf Qt5::Gui)
install(TARGETS kimg_xcf DESTINATION ${QT_PLUGIN_INSTALL_DIR}/imageformats/)
install(FILES xcf.desktop DESTINATION ${SERVICES_INSTALL_DIR}/qimageioplugins/)
install(TARGETS kimg_xcf DESTINATION ${KDE_INSTALL_QTPLUGINDIR}/imageformats/)
install(FILES xcf.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Service
X-KDE-ServiceTypes=QImageIOPlugins
X-KDE-ImageFormat=dds
X-KDE-MimeType=image/x-dds
X-KDE-Read=true
X-KDE-Write=true

View File

@ -19,7 +19,7 @@
* rgb dds files only -- TODO
*/
#include "dds.h"
#include "dds_p.h"
#include <QtCore/QStringList>
#include <QImage>

View File

@ -1,4 +1,4 @@
/**
/*
* QImageIO Routines to read/write EPS images.
* copyright (c) 1998 Dirk Schoenberger <dirk.schoenberger@freenet.de>
* Copyright (c) 2013 Alex Merry <alex.merry@kdemail.net>
@ -6,7 +6,7 @@
*
* This library is distributed under the conditions of the GNU LGPL.
*/
#include "eps.h"
#include "eps_p.h"
#include <QDebug>
#include <QImage>

View File

@ -1,4 +1,4 @@
/**
/*
* QImageIO Routines to read/write EPS images.
* copyright (c) 1998 Dirk Schoenberger <dirk.schoenberger@freenet.de>
*

View File

@ -1,5 +1,5 @@
/**
/*
* KImageIO Routines to read (and perhaps in the future, write) images
* in the high dynamic range EXR format.
* Copyright (c) 2003, Brad Hards <bradh@frogmouth.net>
@ -7,7 +7,7 @@
* This library is distributed under the conditions of the GNU LGPL.
*/
#include "exr.h"
#include "exr_p.h"
#include <ImfRgbaFile.h>
#include <ImfStandardAttributes.h>

View File

@ -1,4 +1,4 @@
/**
/*
* QImageIO Routines to read (and perhaps in the future, write) images
* in the high definition EXR format.
*

View File

@ -8,7 +8,7 @@
version 2 of the License, or (at your option) any later version.
*/
#include "hdr.h"
#include "hdr_p.h"
#include <QImage>
#include <QtCore/QDataStream>

View File

@ -1,11 +1,11 @@
/**
/*
* QImageIO Routines to read/write JPEG2000 images.
* copyright (c) 2002 Michael Ritzert <michael@ritzert.de>
*
* This library is distributed under the conditions of the GNU LGPL.
*/
#include "jp2.h"
#include "jp2_p.h"
#include <config-jp2.h>

View File

@ -1,4 +1,4 @@
/**
/*
* QImageIO Routines to read/write JPEG2000 images.
* copyright (c) 2002 Michael Ritzert <michael@ritzert.de>
*

View File

@ -7,7 +7,7 @@
version 2 of the License, or (at your option) any later version.
*/
#include "pcx.h"
#include "pcx_p.h"
#include <QColor>
#include <QDataStream>

View File

@ -1,4 +1,4 @@
/**
/*
* Softimage PIC support for QImage
* Copyright 1998 Halfdan Ingvarsson
* Copyright 2007 Ruben Lopez <r.lopez@bren.es>
@ -25,7 +25,7 @@
* with his permission.
*/
#include "pic.h"
#include "pic_p.h"
#include <QDataStream>
#include <QDebug>
@ -340,7 +340,7 @@ static void encodeMixedRLEData(QDataStream &stream, const Item *data, unsigned l
chunkLength = 1;
chunkEnd = chunkStart + 1;
while (chunkLength < maxChunk &&
(chunkLength + 1 == maxChunk ||
(chunkLength + 1u == maxChunk ||
!itemsEqual(*chunkEnd, *(chunkEnd+1))))
{
++chunkEnd;

View File

@ -1,4 +1,4 @@
/**
/*
* PIC_RW - Qt PIC Support
* Copyright (C) 2007 Ruben Lopez <r.lopez@bren.es>
*
@ -22,6 +22,7 @@
#define KIMG_PIC_H
#include <QImageIOPlugin>
#include <QDataStream>
/**
* The magic number at the start of a SoftImage PIC file.
@ -60,6 +61,8 @@ enum PicChannelCode {
/**
* The header for a SoftImage PIC file.
*
* @private
*/
struct PicHeader {
/**
@ -111,6 +114,8 @@ struct PicHeader {
/**
* Describes a channel in a SoftImage PIC file.
*
* @private
*/
struct PicChannel {
quint8 size; /**< Bits per component per pixel. */

View File

@ -17,7 +17,7 @@
* not supported
*/
#include "psd.h"
#include "psd_p.h"
#include <QImage>
#include <QtCore/QDataStream>

View File

@ -9,7 +9,7 @@
version 2 of the License, or (at your option) any later version.
*/
#include "ras.h"
#include "ras_p.h"
#include <QImage>
#include <QtCore/QDataStream>

View File

@ -21,7 +21,7 @@
* saved by this filter.
*/
#include "rgb.h"
#include "rgb_p.h"
#include <QtCore/QMap>
#include <QtCore/QVector>

View File

@ -18,7 +18,7 @@
* uncompressed true color tga files
*/
#include "tga.h"
#include "tga_p.h"
#include <assert.h>

View File

@ -19,7 +19,7 @@
*
*/
#include "xcf.h"
#include "xcf_p.h"
#include <stdlib.h>
#include <QImage>
@ -29,7 +29,7 @@
#include <QtCore/QVector>
// #include <QDebug>
#include "gimp.h"
#include "gimp_p.h"
const float INCHESPERMETER = (100.0f / 2.54f);