Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qjp2handler_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Petroules Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QJP2HANDLER_H
6#define QJP2HANDLER_H
7
8#include <QtCore/qscopedpointer.h>
9#include <QtGui/qimageiohandler.h>
10
12
13class QImage;
14class QByteArray;
15class QIODevice;
16class QVariant;
18
20{
21public:
24 static bool canRead(QIODevice *iod, QByteArray *subType);
25 bool canRead() const override;
26 bool read(QImage *image) override;
27 bool write(const QImage &image) override;
28 QVariant option(ImageOption option) const override;
29 void setOption(ImageOption option, const QVariant &value) override;
30 bool supportsOption(ImageOption option) const override;
31
32private:
33 Q_DECLARE_PRIVATE(QJp2Handler)
34 QScopedPointer<QJp2HandlerPrivate> d_ptr;
35};
36
38
39#endif // QJP2HANDLER_P_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore \reentrant
Definition qiodevice.h:34
The QImageIOHandler class defines the common image I/O interface for all image formats in Qt.
ImageOption
This enum describes the different options supported by QImageIOHandler.
\inmodule QtGui
Definition qimage.h:37
The QJp2Handler class provides support for reading and writing JPEG 2000 image files with the Qt plug...
~QJp2Handler()
Destructor for QJp2Handler.
QJp2Handler()
Constructs an instance of QJp2Handler.
void setOption(ImageOption option, const QVariant &value) override
The JPEG 2000 handler supports two options.
bool write(const QImage &image) override
\reimp
bool read(QImage *image) override
\reimp
bool supportsOption(ImageOption option) const override
This function will return true if option is set to either QImageIOHandler::Quality or QImageIOHandler...
bool canRead() const override
\reimp
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
Definition image.cpp:4
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint GLenum option