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
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
4#ifndef QIMAGEREADERWRITERHELPERS_P_H
5#define QIMAGEREADERWRITERHELPERS_P_H
6
7#include <QtGui/private/qtguiglobal_p.h>
8#include <qsharedpointer.h>
9#include "qimageiohandler.h"
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
23
24class QFactoryLoader;
25
27
29#ifndef QT_NO_IMAGEFORMAT_PNG
31#endif
32#ifndef QT_NO_IMAGEFORMAT_BMP
34#endif
35#ifndef QT_NO_IMAGEFORMAT_PPM
39#endif
40#ifndef QT_NO_IMAGEFORMAT_XBM
42#endif
43#ifndef QT_NO_IMAGEFORMAT_XPM
45#endif
47 _qt_NoFormat = -1
48};
49
50#if !defined(QT_NO_IMAGEFORMAT_PPM)
51# define MAX_MT_SIZE 20
52#elif !defined(QT_NO_IMAGEFORMAT_XBM) || !defined(QT_NO_IMAGEFORMAT_XPM)
53# define MAX_MT_SIZE 10
54#else
55# define MAX_MT_SIZE 4
56#endif
57
63
64#undef MAX_MT_SIZE
65
67#ifndef QT_NO_IMAGEFORMAT_PNG
68 {"png", "png"},
69#endif
70#ifndef QT_NO_IMAGEFORMAT_BMP
71 {"bmp", "bmp"},
72#endif
73#ifndef QT_NO_IMAGEFORMAT_PPM
74 {"ppm", "x-portable-pixmap"},
75 {"pgm", "x-portable-graymap"},
76 {"pbm", "x-portable-bitmap"},
77#endif
78#ifndef QT_NO_IMAGEFORMAT_XBM
79 {"xbm", "x-xbitmap"},
80#endif
81#ifndef QT_NO_IMAGEFORMAT_XPM
82 {"xpm", "x-xpixmap"},
83#endif
84};
85static_assert(_qt_NumFormats == sizeof _qt_BuiltInFormats / sizeof *_qt_BuiltInFormats);
86
87#ifndef QT_NO_IMAGEFORMATPLUGIN
88QSharedPointer<QFactoryLoader> pluginLoader();
89#endif
90
95QList<QByteArray> supportedImageFormats(Capability cap);
96QList<QByteArray> supportedMimeTypes(Capability cap);
98
99}
100
102
103#endif // QIMAGEREADERWRITERHELPERS_P_H
QList< QByteArray > imageFormatsForMimeType(QByteArrayView mimeType, Capability cap)
QSharedPointer< QFactoryLoader > pluginLoader()
QList< QByteArray > supportedImageFormats(Capability cap)
static const _qt_BuiltInFormatStruct _qt_BuiltInFormats[]
QList< QByteArray > supportedMimeTypes(Capability cap)
Combined button and popup list for selecting options.
const char * mimeType
#define MAX_MT_SIZE
GLenum cap