Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
5
6
7
#
ifndef
QJP2HANDLER_H
8
#
define
QJP2HANDLER_H
9
10
#
include
<
QtCore
/
qscopedpointer
.
h
>
11
#
include
<
QtGui
/
qimageiohandler
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QImage;
16
class
QByteArray
;
17
class
QIODevice;
18
class
QVariant;
19
class
QJp2HandlerPrivate;
20
21
class
QJp2Handler
:
public
QImageIOHandler
22
{
23
public
:
24
QJp2Handler
();
25
~
QJp2Handler
();
26
static
bool
canRead
(QIODevice *iod,
QByteArray
*subType);
27
bool
canRead
()
const
override
;
28
bool
read
(QImage *image)
override
;
29
bool
write
(
const
QImage &image)
override
;
30
QVariant
option
(
ImageOption
option)
const
override
;
31
void
setOption
(
ImageOption
option,
const
QVariant &value)
override
;
32
bool
supportsOption
(
ImageOption
option)
const
override
;
33
34
private
:
35
Q_DECLARE_PRIVATE
(
QJp2Handler
)
36
QScopedPointer
<
QJp2HandlerPrivate
>
d_ptr
;
37
};
38
39
QT_END_NAMESPACE
40
41
#
endif
// QJP2HANDLER_P_H
QByteArray::FromBase64Result
\inmodule QtCore
Definition
qbytearray.h:824
QImageIOHandler::ImageOption
ImageOption
This enum describes the different options supported by QImageIOHandler.
Definition
qimageiohandler.h:42
QJp2Handler
The QJp2Handler class provides support for reading and writing JPEG 2000 image files with the Qt plug...
Definition
qjp2handler_p.h:22
QJp2Handler::~QJp2Handler
~QJp2Handler()
Destructor for QJp2Handler.
Definition
qjp2handler.cpp:158
QJp2Handler::QJp2Handler
QJp2Handler()
Constructs an instance of QJp2Handler.
Definition
qjp2handler.cpp:150
QJp2Handler::canRead
static bool canRead(QIODevice *iod, QByteArray *subType)
Verifies if some values (magic bytes) are set as expected in the header of the file.
Definition
qjp2handler.cpp:173
QJp2Handler::setOption
void setOption(ImageOption option, const QVariant &value) override
The JPEG 2000 handler supports two options.
Definition
qjp2handler.cpp:254
QJp2Handler::write
bool write(const QImage &image) override
\reimp
Definition
qjp2handler.cpp:215
QJp2Handler::read
bool read(QImage *image) override
\reimp
Definition
qjp2handler.cpp:207
QJp2Handler::supportsOption
bool supportsOption(ImageOption option) const override
This function will return true if option is set to either QImageIOHandler::Quality or QImageIOHandler...
Definition
qjp2handler.cpp:275
QJp2Handler::option
QVariant option(ImageOption option) const override
Get the value associated with option.
Definition
qjp2handler.cpp:232
QJp2Handler::canRead
bool canRead() const override
\reimp
Definition
qjp2handler.cpp:195
QJp2Plugin
Definition
main.cpp:20
QJp2Plugin::create
QImageIOHandler * create(QIODevice *device, const QByteArray &format=QByteArray()) const override
Creates and returns a QImageIOHandler subclass, with device and format set.
Definition
main.cpp:46
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtimageformats
src
plugins
imageformats
jp2
qjp2handler_p.h
Generated on
for Qt by
1.18.0