Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
tdelibs/kimgio
Timothy Pearson ed99a30644
Rename additional header files to avoid conflicts with KDE4
11 lat temu
..
AUTHORS Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
CMakeLists.txt Fix openexr include flags 11 lat temu
ChangeLog Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
Mainpage.dox Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
Makefile.am Rename a number of libraries and executables to avoid conflicts with KDE4 11 lat temu
README Rename a number of libraries and executables to avoid conflicts with KDE4 11 lat temu
bmp.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
configure.in.in Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
dds.cpp Rename additional header files to avoid conflicts with KDE4 11 lat temu
dds.h TQt conversion fixes 14 lat temu
dds.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
eps.cpp Rename additional header files to avoid conflicts with KDE4 11 lat temu
eps.h Trinity Qt initial conversion 14 lat temu
eps.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
exr.cpp Rename additional header files to avoid conflicts with KDE4 11 lat temu
exr.h TQt conversion fixes 14 lat temu
exr.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
g3.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
g3r.cpp Trinity Qt initial conversion 14 lat temu
g3r.h TQt conversion fixes 14 lat temu
gif.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
gimp.h Rename additional header files to avoid conflicts with KDE4 11 lat temu
hdr.cpp Rename additional header files to avoid conflicts with KDE4 11 lat temu
hdr.h TQt conversion fixes 14 lat temu
hdr.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
ico.cpp Remove additional unneeded tq method conversions 13 lat temu
ico.h TQt conversion fixes 14 lat temu
ico.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
jp2.cpp Rename additional header files to avoid conflicts with KDE4 11 lat temu
jp2.h TQt conversion fixes 14 lat temu
jp2.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
jpeg.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
mng.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
pbm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
pcx.cpp Remove additional unneeded tq method conversions 13 lat temu
pcx.h Initial conversion for TQt for Qt4 3.4.0 TP2 13 lat temu
pcx.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
pgm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
png.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
ppm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
psd.cpp Remove additional unneeded tq method conversions 13 lat temu
psd.h TQt conversion fixes 14 lat temu
psd.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
rgb.cpp Remove additional unneeded tq method conversions 13 lat temu
rgb.h Fix kdelibs FTBFS on native TQt3 13 lat temu
rgb.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
tga.cpp Remove additional unneeded tq method conversions 13 lat temu
tga.h TQt conversion fixes 14 lat temu
tga.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
tiff.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
tiffr.cpp Remove additional unneeded tq method conversions 13 lat temu
tiffr.h TQt conversion fixes 14 lat temu
xbm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
xcf.cpp Remove additional unneeded tq method conversions 13 lat temu
xcf.h Initial conversion for TQt for Qt4 3.4.0 TP2 13 lat temu
xcf.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
xpm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
xv.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 lat temu
xview.cpp Remove additional unneeded tq method conversions 13 lat temu
xview.h TQt conversion fixes 14 lat temu

README

KDE Image I/O library
---------------------
This library allows applications that use the Qt library
(i.e. QImageIO, QImage, 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.