You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/kimgio
mio 4ba000750e
Fix FTBFS introduced by PR #302
LibTIFF versions 4.2.0 and older used custom integer types, causing
distributions with those versions to fail when building.

In 4.3.0 and newer, the 'uint16' and 'uint32' types are deprecated,
so this removes the deprecation warnings and keeps compatibility with
any versions of LibTIFF where uint16 and uint32 did not equal their
stdint.h counterparts.

Signed-off-by: mio <stigma@disroot.org>
(cherry picked from commit 5c1b76e6bf)
5 months ago
..
AUTHORS Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
CMakeLists.txt kimgio: Add kimgio desktop files to the translation. 9 months ago
ChangeLog Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
Mainpage.dox Removed code formatting modelines. 4 years ago
Makefile.am LIB_QT -> LIB_TQT conversion to align to updated admin module 7 years ago
README Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version 1 year ago
bmp.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
configure.in.in Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
dds.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
dds.h TQt conversion fixes 15 years ago
dds.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
eps.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
eps.h Trinity Qt initial conversion 15 years ago
eps.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
exr.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
exr.h TQt conversion fixes 15 years ago
exr.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
g3.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
g3r.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
g3r.h TQt conversion fixes 15 years ago
gif.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
gimp.h Removed code formatting modelines. 4 years ago
hdr.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
hdr.h TQt conversion fixes 15 years ago
hdr.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
ico.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
ico.h TQt conversion fixes 15 years ago
ico.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
jp2.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
jp2.h TQt conversion fixes 15 years ago
jp2.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
jpeg.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
mng.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
pbm.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
pcx.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
pcx.h Replace KDE_Q_EXPORT_PLUGIN, KDE_PACKED and KDE_WEAK_SYMBOL with TDE_* equivalent 9 months ago
pcx.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
pgm.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
png.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
ppm.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
psd.cpp Remove additional unneeded tq method conversions 13 years ago
psd.h Rename kdemacros.* files to tdemacros.* 8 months ago
psd.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
rgb.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
rgb.h Fix kdelibs FTBFS on native TQt3 13 years ago
rgb.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
tga.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
tga.h TQt conversion fixes 15 years ago
tga.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
tiff.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
tiffr.cpp Fix FTBFS introduced by PR #302 5 months ago
tiffr.h TQt conversion fixes 15 years ago
webp.cpp Adds WebP read support to kimgio 9 months ago
webp.h Adds WebP read support to kimgio 9 months ago
webp.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
xbm.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
xcf.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
xcf.h Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version 1 year ago
xcf.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
xpm.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
xv.kimgio kimgio: Add kimgio desktop files to the translation. 9 months ago
xview.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
xview.h TQt conversion fixes 15 years ago

README

KDE Image I/O library
---------------------
This library allows applications that use the Qt library
(i.e. QImageIO, TQImage, QPixmap and friends) to read and
write images in extra formats. Current formats include:

JPEG	<read> <write>
JPEG2000 <read> <write>
XV	<read> <write>
EPS	<read> <write>
NETPBM	<incomplete>
PNG	<read> <write, only with newer libraries>
TIFF	<read>
TGA	<read> <write>
PCX	<read> <write>
SGI	<read> <write>   (images/x-rgb: *.bw, *.rgb, *.rgba, *.sgi)
DDS	<read>
XCF	<read>

(Some example files are in kdenonbeta/kimgio_examples.)


To use these formats, you only need to:

1. link the application with the libtdeio library
2. Include the <kimageio.h> header
3. call KImageIO::registerFormats() once, somewhere in your code
   before you load an image.

Writing handlers
----------------

0. Please read the documentation for the QImageIO class in the Qt
documentation.

1. When writing handlers, there is a function naming convention;
suppose, for example, we were writing PNG read and write handlers,
we would name them

void kimgio_png_read ( QImageIO * );
void kimgio_png_write( QImageIO * );

ie

kimgio_<format>_<read/write>

This should reduce the chance of identifier clashes with other code.

2. Remember that a given KDE application may try to load dozens of
images at once such as when loading icons, or creating thumbnails.
Also, it may well be loading them over a network connection.
Therefore,

	- Avoid creating temporary files or allocating too much memory
	when decoding and encoding. Especially try to avoid firing off
	external programs.

	- Don't assume that the IODevice which is the source or target
	of the image data is pointing to a file on the local filesystem.
	Use the IODevice methods to read and write image data.

	- Check for file corruption or premature end of the image,
	especially before using values read from the file
	e.g. for memory allocations.

3. If you only have either a reader or the writer for a particular
format, don't use NULL in QImageIO::defineIOHandler. Instead, write
a stub function for the unimplemented handler which displays a message
on standard output. This prevents kimgio-using programs dumping core
when attempting to call the unimplemented handler.


Yours in good faith and pedantry,

Sirtaj Singh Kang <taj@kde.org>, 23 September 1998.