File indexing completed on 2024-05-12 11:53:05
0001 /* 0002 QImageIO Routines to read (and perhaps in the future, write) images 0003 in the high definition EXR format. 0004 0005 SPDX-FileCopyrightText: 2003 Brad Hards <bradh@frogmouth.net> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #ifndef KIMG_EXR_P_H 0011 #define KIMG_EXR_P_H 0012 0013 #include <QImageIOPlugin> 0014 0015 class EXRHandler : public QImageIOHandler 0016 { 0017 public: 0018 EXRHandler(); 0019 0020 bool canRead() const override; 0021 bool read(QImage *outImage) override; 0022 0023 static bool canRead(QIODevice *device); 0024 }; 0025 0026 class EXRPlugin : public QImageIOPlugin 0027 { 0028 Q_OBJECT 0029 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "exr.json") 0030 0031 public: 0032 Capabilities capabilities(QIODevice *device, const QByteArray &format) const override; 0033 QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override; 0034 }; 0035 0036 #endif // KIMG_EXR_P_H