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
qiiofhelpers_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QIIOFHELPERS_P_H
7
#
define
QIIOFHELPERS_P_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists for the convenience
14
// of other Qt classes. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QImageIOPlugin
>
21
#
include
<
private
/
qcore_mac_p
.
h
>
22
#
include
<
ImageIO
/
ImageIO
.
h
>
23
#
include
<
QList
>
24
25
QT_BEGIN_NAMESPACE
26
27
namespace
NS_IIOF_HELPERS
{
28
29
/*
30
Functions to utilize the native ImageIO Framework in OS X and iOS
31
*/
32
33
class
QIIOFHelpers
34
{
35
public
:
36
static
QImageIOPlugin
::
Capabilities
systemCapabilities
(
const
QString &uti);
37
static
bool
readImage(QImageIOHandler *q_ptr, QImage *out);
38
static
bool
writeImage(QImageIOHandler *q_ptr,
const
QImage &in,
const
QString &uti);
39
};
40
41
class
QIIOFHelper
42
{
43
public
:
44
QIIOFHelper
(QImageIOHandler *q);
45
46
bool
readImage(QImage *out);
47
bool
writeImage(
const
QImage &in,
const
QString &uti);
48
QVariant
imageProperty
(QImageIOHandler::ImageOption option);
49
void
setOption(QImageIOHandler::ImageOption option,
const
QVariant &value);
50
51
protected
:
52
bool
initRead
();
53
bool
getIntProperty
(CFStringRef property,
int
*value);
54
55
QImageIOHandler
*
q_ptr
=
nullptr
;
56
QList
<
QVariant
>
writeOptions
;
57
QCFType
<
CGDataProviderRef
>
cgDataProvider
=
nullptr
;
58
QCFType
<
CGImageSourceRef
>
cgImageSource
=
nullptr
;
59
QCFType
<
CFDictionaryRef
>
cfImageDict
=
nullptr
;
60
};
61
62
}
63
64
QT_END_NAMESPACE
65
66
#
endif
NS_IIOF_HELPERS::QIIOFHelper
Definition
qiiofhelpers_p.h:42
NS_IIOF_HELPERS::QIIOFHelper::q_ptr
QImageIOHandler * q_ptr
Definition
qiiofhelpers_p.h:55
NS_IIOF_HELPERS::QIIOFHelper::writeOptions
QList< QVariant > writeOptions
Definition
qiiofhelpers_p.h:56
NS_IIOF_HELPERS::QIIOFHelper::cgImageSource
QCFType< CGImageSourceRef > cgImageSource
Definition
qiiofhelpers_p.h:58
NS_IIOF_HELPERS::QIIOFHelper::QIIOFHelper
QIIOFHelper(QImageIOHandler *q)
Definition
qiiofhelpers.mm:121
NS_IIOF_HELPERS::QIIOFHelper::initRead
bool initRead()
Definition
qiiofhelpers.mm:126
NS_IIOF_HELPERS::QIIOFHelper::cgDataProvider
QCFType< CGDataProviderRef > cgDataProvider
Definition
qiiofhelpers_p.h:57
NS_IIOF_HELPERS::QIIOFHelper::getIntProperty
bool getIntProperty(CFStringRef property, int *value)
Definition
qiiofhelpers.mm:202
NS_IIOF_HELPERS::QIIOFHelper::imageProperty
QVariant imageProperty(QImageIOHandler::ImageOption option)
Definition
qiiofhelpers.mm:266
NS_IIOF_HELPERS::QIIOFHelper::cfImageDict
QCFType< CFDictionaryRef > cfImageDict
Definition
qiiofhelpers_p.h:59
NS_IIOF_HELPERS::QIIOFHelpers
Definition
qiiofhelpers_p.h:34
NS_IIOF_HELPERS::QIIOFHelpers::systemCapabilities
static QImageIOPlugin::Capabilities systemCapabilities(const QString &uti)
Definition
qiiofhelpers.mm:91
QByteArray::FromBase64Result
\inmodule QtCore
Definition
qbytearray.h:824
QMacHeifHandler
Definition
qmacheifhandler.h:23
QMacHeifHandler::read
bool read(QImage *image) override
Read an image from the device, and stores it in image.
Definition
qmacheifhandler.cpp:42
QMacHeifHandler::canRead
static bool canRead(QIODevice *iod)
Definition
qmacheifhandler.cpp:19
QMacHeifHandler::QMacHeifHandler
QMacHeifHandler()
Definition
qmacheifhandler.cpp:10
QMacHeifHandler::option
QVariant option(ImageOption option) const override
Returns the value assigned to option as a QVariant.
Definition
qmacheifhandler.cpp:52
QMacHeifHandler::canRead
bool canRead() const override
Returns true if an image can be read from the device (i.e., the image format is supported,...
Definition
qmacheifhandler.cpp:33
QMacHeifHandler::~QMacHeifHandler
~QMacHeifHandler() override
Definition
qmacheifhandler.cpp:15
QMacHeifHandler::supportsOption
bool supportsOption(ImageOption option) const override
Returns true if the QImageIOHandler supports the option option; otherwise returns false.
Definition
qmacheifhandler.cpp:62
QMacHeifHandler::write
bool write(const QImage &image) override
Writes the image image to the assigned device.
Definition
qmacheifhandler.cpp:47
QMacHeifHandler::setOption
void setOption(ImageOption option, const QVariant &value) override
Sets the option option with the value value.
Definition
qmacheifhandler.cpp:57
QMacHeifPlugin
Definition
main.cpp:13
QMacHeifPlugin::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:43
NS_IIOF_HELPERS
Definition
qiiofhelpers_p.h:27
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtimageformats
src
plugins
imageformats
shared
qiiofhelpers_p.h
Generated on
for Qt by
1.18.0