fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kimgio / xview.h
blob1b567b42b68bfbb253371e0adc0c6670a2a88371
1 /**
2 * QImageIO Routines to read/write XV images.
3 * copyright (c) 1998 Torben Weis <weis@kde.org>
4 * copyright (c) 1999 Oliver Eiden <o.eiden@pop.ruhr.de>
6 * This library is distributed under the conditions of the GNU LGPL.
9 * Changelog:
10 * 23.3.99 Oliver Eiden <o.eiden@pop.ruhr.de>
11 * changed the mapping from 3-3-2 decoded pixels to 8-8-8 decoded true-color pixels
12 * now it uses the same mapping as xv, this leads to better visual results
13 * Patch merged in HEAD by Chris Spiegel <matrix@xirtam.org>
15 #ifndef XVIEW_H
16 #define XVIEW_H
19 #include <QtGui/QImageIOPlugin>
21 class XVHandler : public QImageIOHandler
23 public:
24 XVHandler();
26 bool canRead() const;
27 bool read(QImage *image);
28 bool write(const QImage &image);
30 QByteArray name() const;
32 static bool canRead(QIODevice *device);
35 #endif