1/*
2 This file is part of the KDE project
3 SPDX-FileCopyrightText: 2005 Christoph Hormann <chris_hormann@gmx.de>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KIMG_HDR_P_H
9#define KIMG_HDR_P_H
10
11#include <QImageIOPlugin>
12
13class HDRHandler : public QImageIOHandler
14{
15public:
16 HDRHandler();
17
18 bool canRead() const override;
19 bool read(QImage *outImage) override;
20
21 bool supportsOption(QImageIOHandler::ImageOption option) const override;
22 QVariant option(QImageIOHandler::ImageOption option) const override;
23
24 static bool canRead(QIODevice *device);
25};
26
27class HDRPlugin : public QImageIOPlugin
28{
29 Q_OBJECT
30 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "hdr.json")
31
32public:
33 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
34 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
35};
36
37#endif // KIMG_HDR_P_H
38

source code of kimageformats/src/imageformats/hdr_p.h