Changeset View
Changeset View
Standalone View
Standalone View
src/imageformats/hdr_p.h
Context not available. | |||||
10 | #ifndef KIMG_HDR_P_H | 10 | #ifndef KIMG_HDR_P_H | ||
---|---|---|---|---|---|
11 | #define KIMG_HDR_P_H | 11 | #define KIMG_HDR_P_H | ||
12 | 12 | | |||
13 | class QImageIO; | 13 | #include <QImageIOPlugin> | ||
14 | 14 | | |||
15 | extern "C" { | 15 | class HDRHandler : public QImageIOHandler | ||
16 | void kimgio_hdr_read(QImageIO *); | 16 | { | ||
17 | void kimgio_hdr_write(QImageIO *); | 17 | public: | ||
18 | } | 18 | HDRHandler(); | ||
19 | 19 | | |||
20 | #endif | 20 | bool canRead() const override; | ||
21 | bool read(QImage *outImage) override; | ||||
21 | 22 | | |||
23 | static bool canRead(QIODevice *device); | ||||
24 | }; | ||||
25 | | ||||
26 | class HDRPlugin : public QImageIOPlugin | ||||
27 | { | ||||
28 | Q_OBJECT | ||||
29 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "hdr.json") | ||||
30 | | ||||
31 | public: | ||||
32 | Capabilities capabilities(QIODevice *device, const QByteArray &format) const override; | ||||
33 | QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override; | ||||
34 | }; | ||||
35 | | ||||
36 | #endif // KIMG_HDR_P_H | ||||
Context not available. |