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
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
4#ifndef QIIOFHELPERS_P_H
5#define QIIOFHELPERS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QImageIOPlugin>
19#include <private/qcore_mac_p.h>
20#include <ImageIO/ImageIO.h>
21#include <QList>
22
24
25namespace NS_IIOF_HELPERS {
26
27/*
28Functions to utilize the native ImageIO Framework in OS X and iOS
29*/
30
32{
33public:
34 static QImageIOPlugin::Capabilities systemCapabilities(const QString &uti);
35 static bool readImage(QImageIOHandler *q_ptr, QImage *out);
36 static bool writeImage(QImageIOHandler *q_ptr, const QImage &in, const QString &uti);
37};
38
40{
41public:
43
44 bool readImage(QImage *out);
45 bool writeImage(const QImage &in, const QString &uti);
48
49protected:
50 bool initRead();
51 bool getIntProperty(CFStringRef property, int *value);
52
54 QList<QVariant> writeOptions;
55 QCFType<CGDataProviderRef> cgDataProvider = nullptr;
56 QCFType<CGImageSourceRef> cgImageSource = nullptr;
57 QCFType<CFDictionaryRef> cfImageDict = nullptr;
58};
59
60}
61
63
64#endif
void setOption(QImageIOHandler::ImageOption option, const QVariant &value)
QList< QVariant > writeOptions
QCFType< CGImageSourceRef > cgImageSource
bool writeImage(const QImage &in, const QString &uti)
QIIOFHelper(QImageIOHandler *q)
QCFType< CGDataProviderRef > cgDataProvider
bool getIntProperty(CFStringRef property, int *value)
QVariant imageProperty(QImageIOHandler::ImageOption option)
QCFType< CFDictionaryRef > cfImageDict
static bool writeImage(QImageIOHandler *q_ptr, const QImage &in, const QString &uti)
static QImageIOPlugin::Capabilities systemCapabilities(const QString &uti)
static bool readImage(QImageIOHandler *q_ptr, QImage *out)
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
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint in
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
GLuint GLenum option
const char property[13]
Definition qwizard.cpp:101
QTextStream out(stdout)
[7]