4#include "private/qimagereaderwriterhelpers_p.h"
8#include <private/qfactoryloader_p.h>
16#ifndef QT_NO_IMAGEFORMATPLUGIN
51 const int pluginCount = metaDataList.
size();
52 for (
int i = 0;
i < pluginCount; ++
i) {
57 const int keyCount =
keys.size();
58 for (
int k = 0; k < keyCount; ++k) {
63 resultKeys->append(
key);
71 irhLoaderMutex()->lock();
73 irhLoaderMutex()->unlock();
91#ifndef QT_NO_IMAGEFORMATPLUGIN
107#ifndef QT_NO_IMAGEFORMATPLUGIN
111 std::sort(mimeTypes.
begin(), mimeTypes.
end());
112 mimeTypes.
erase(std::unique(mimeTypes.
begin(), mimeTypes.
end()), mimeTypes.
end());
119 if (
mimeType.startsWith(
"image/")) {
127#ifndef QT_NO_IMAGEFORMATPLUGIN
131 for (
int i = 0;
i < mimeTypes.
size(); ++
i) {
\inmodule QtCore\reentrant
QCborValue at(qsizetype i) const
Returns the QCborValue element at position i in the array.
\inmodule QtCore\reentrant
QCborValue value(qint64 key) const
Returns the QCborValue element in this map that corresponds to key key, if there is one.
QString toString(const QString &defaultValue={}) const
Returns the string value stored in this QCborValue, if it is of the string type.
QCborArray toArray() const
Capability
This enum describes the capabilities of a QImageIOPlugin.
virtual Capabilities capabilities(QIODevice *device, const QByteArray &format) const =0
Returns the capabilities of the plugin, based on the data in device and the format format.
qsizetype size() const noexcept
iterator erase(const_iterator begin, const_iterator end)
const_reference at(qsizetype i) const noexcept
void reserve(qsizetype size)
void append(parameter_type t)
QByteArray toLatin1() const &
QSet< QString >::iterator it
PluginKeyMap::const_iterator PluginKeyMapConstIterator
QList< QByteArray > imageFormatsForMimeType(const QByteArray &mimeType, Capability cap)
static QImageIOPlugin::Capability pluginCapability(Capability cap)
static void appendImagePluginMimeTypes(QFactoryLoader *loader, QImageIOPlugin::Capability cap, QList< QByteArray > *result, QList< QByteArray > *resultKeys=nullptr)
const PluginKeyMap keyMap
QSharedPointer< QFactoryLoader > pluginLoader()
QList< QByteArray > supportedImageFormats(Capability cap)
const PluginKeyMapConstIterator cend
static const _qt_BuiltInFormatStruct _qt_BuiltInFormats[]
QList< QByteArray > supportedMimeTypes(Capability cap)
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
#define QImageIOHandlerFactoryInterface_iid
QVideoFrameFormat::PixelFormat fmt