No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
tdelibs/kimgio
tpearson 374d939d8a
Allow kdelibs to function correctly with TQt for Qt4
hace 13 años
..
AUTHORS Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
CMakeLists.txt [kdelibs] move "-include tqt.h" directive to CMAKE_CXX_FLAGS; move TQT_CFLAGS_OTHER definitions to main CMakeLists.txt; remove useless defintions hace 13 años
ChangeLog Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
Mainpage.dox Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
Makefile.am kdelibs update to Trinity v3.5.11 hace 15 años
README Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
bmp.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
configure.in.in Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
dds.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
dds.h TQt conversion fixes hace 14 años
dds.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
eps.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
eps.h Trinity Qt initial conversion hace 14 años
eps.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
exr.cpp Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
exr.h TQt conversion fixes hace 14 años
exr.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
g3.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
g3r.cpp Trinity Qt initial conversion hace 14 años
g3r.h TQt conversion fixes hace 14 años
gif.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
gimp.h Trinity Qt initial conversion hace 14 años
hdr.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
hdr.h TQt conversion fixes hace 14 años
hdr.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
ico.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
ico.h TQt conversion fixes hace 14 años
ico.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
jp2.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
jp2.h TQt conversion fixes hace 14 años
jp2.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
jpeg.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
mng.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
pbm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
pcx.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
pcx.h Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
pcx.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
pgm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
png.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
ppm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
psd.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
psd.h TQt conversion fixes hace 14 años
psd.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
rgb.cpp Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
rgb.h Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
rgb.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
tga.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
tga.h TQt conversion fixes hace 14 años
tga.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
tiff.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
tiffr.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
tiffr.h TQt conversion fixes hace 14 años
xbm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
xcf.cpp Allow kdelibs to function correctly with TQt for Qt4 hace 13 años
xcf.h Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
xcf.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
xpm.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
xv.kimgio Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. hace 15 años
xview.cpp Initial conversion for TQt for Qt4 3.4.0 TP2 hace 13 años
xview.h TQt conversion fixes hace 14 años

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 libkio 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.