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>
5*
6* This library is distributed under the conditions of the GNU LGPL.
7*
8*
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>
14*/
15#ifndef XVIEW_H
16#define XVIEW_H
17
18
19#include <QtGui/QImageIOPlugin>
20
21class XVHandler : public QImageIOHandler
22{
23public:
24 XVHandler();
25
26 bool canRead() const;
27 bool read(QImage *image);
28 bool write(const QImage &image);
29
30 QByteArray name() const;
31
32 static bool canRead(QIODevice *device);
33};
34
35#endif
36