Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qimagereaderwriterhelpers_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 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#ifndef QIMAGEREADERWRITERHELPERS_P_H
6#define QIMAGEREADERWRITERHELPERS_P_H
7
8#include <QtGui/private/qtguiglobal_p.h>
9#include <qsharedpointer.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23QT_BEGIN_NAMESPACE
24
25class QFactoryLoader;
26
28
30#ifndef QT_NO_IMAGEFORMAT_PNG
32#endif
33#ifndef QT_NO_IMAGEFORMAT_BMP
35#endif
36#ifndef QT_NO_IMAGEFORMAT_PPM
40#endif
41#ifndef QT_NO_IMAGEFORMAT_XBM
43#endif
44#ifndef QT_NO_IMAGEFORMAT_XPM
46#endif
49};
50
51#if !defined(QT_NO_IMAGEFORMAT_PPM)
52# define MAX_MT_SIZE 20
53#elif !defined(QT_NO_IMAGEFORMAT_XBM) || !defined(QT_NO_IMAGEFORMAT_XPM)
54# define MAX_MT_SIZE 10
55#else
56# define MAX_MT_SIZE 4
57#endif
58
64
65#undef MAX_MT_SIZE
66
68#ifndef QT_NO_IMAGEFORMAT_PNG
69 {"png", "png"},
70#endif
71#ifndef QT_NO_IMAGEFORMAT_BMP
72 {"bmp", "bmp"},
73#endif
74#ifndef QT_NO_IMAGEFORMAT_PPM
75 {"ppm", "x-portable-pixmap"},
76 {"pgm", "x-portable-graymap"},
77 {"pbm", "x-portable-bitmap"},
78#endif
79#ifndef QT_NO_IMAGEFORMAT_XBM
80 {"xbm", "x-xbitmap"},
81#endif
82#ifndef QT_NO_IMAGEFORMAT_XPM
83 {"xpm", "x-xpixmap"},
84#endif
85};
86static_assert(_qt_NumFormats == sizeof _qt_BuiltInFormats / sizeof *_qt_BuiltInFormats);
87
88#ifndef QT_NO_IMAGEFORMATPLUGIN
90#endif
91
96QList<QByteArray> supportedImageFormats(Capability cap);
97QList<QByteArray> supportedMimeTypes(Capability cap);
98QList<QByteArray> imageFormatsForMimeType(QByteArrayView mimeType, Capability cap);
99
100}
101
102QT_END_NAMESPACE
103
104#endif // QIMAGEREADERWRITERHELPERS_P_H
QSharedPointer< QFactoryLoader > pluginLoader()
static const _qt_BuiltInFormatStruct _qt_BuiltInFormats[]
#define MAX_MT_SIZE