(01cd43d30e3ca2c4dd94a4a4711604adb9417517)
#include <QtQuick/private/qquickpixmapcache_p.h>
#include <QtQuick/private/qquickimageprovider_p.h>
#include <QtQuick/private/qquickprofiler_p.h>
#include <QtQuick/private/qsgcontext_p.h>
#include <QtQuick/private/qsgrenderer_p.h>
#include <QtQuick/private/qsgtexturereader_p.h>
#include <QtQuick/qquickwindow.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qimage_p.h>
#include <QtGui/qpa/qplatformintegration.h>
#include <QtGui/qimagereader.h>
#include <QtGui/qpixmapcache.h>
#include <QtQml/private/qqmlglobal_p.h>
#include <QtQml/private/qqmlengine_p.h>
#include <QtQml/qqmlfile.h>
#include <QtCore/private/qobject_p.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qhash.h>
#include <QtCore/qfile.h>
#include <QtCore/qthread.h>
#include <QtCore/qmutex.h>
#include <QtCore/qbuffer.h>
#include <QtCore/qdebug.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qscopeguard.h>
#include <private/qdebug_p.h>
#include <qquickpixmapcache.moc>
#include "moc_qquickpixmap_p.cpp"
#include "moc_qquickpixmapcache_p.cpp"
Go to the source code of this file.
|
static QString | imageProviderId (const QUrl &url) |
static QString | imageId (const QUrl &url) |
static void | maybeRemoveAlpha (QImage *image) |
static bool | readImage (const QUrl &url, QIODevice *dev, QImage *image, QString *errorString, QSize *impsize, int *frameCount, const QRect &requestRegion, const QSize &requestSize, const QQuickImageProviderOptions &providerOptions, QQuickImageProviderOptions::AutoTransform *appliedTransform=nullptr, int frame=0, qreal devicePixelRatio=1.0) |
static QStringList | fromLatin1List (const QList< QByteArray > &list) |
| Q_GLOBAL_STATIC (BackendSupport, backendSupport) |
static QString | existingImageFileForPath (const QString &localFile) |
bool | operator== (const QQuickPixmapKey &lhs, const QQuickPixmapKey &rhs) |
size_t | qHash (const QQuickPixmapKey &key, size_t seed) noexcept |
QDebug | operator<< (QDebug debug, const QQuickPixmapKey &key) |
static QQuickPixmapData * | createPixmapDataSync (QQmlEngine *engine, const QUrl &url, const QRect &requestRegion, const QSize &requestSize, const QQuickImageProviderOptions &providerOptions, int frame, bool *ok, qreal devicePixelRatio) |
| Q_GLOBAL_STATIC (QQuickPixmapNull, nullPixmap) |
◆ CACHE_EXPIRE_TIME
#define CACHE_EXPIRE_TIME 30 |
◆ CACHE_REMOVAL_FRACTION
#define CACHE_REMOVAL_FRACTION 4 |
◆ IMAGEREQUEST_MAX_NETWORK_REQUEST_COUNT
#define IMAGEREQUEST_MAX_NETWORK_REQUEST_COUNT 8 |
◆ PIXMAP_PROFILE
#define PIXMAP_PROFILE |
( |
| Code | ) |
|
◆ PIXMAP_READER_LOCK
#define PIXMAP_READER_LOCK |
( |
| ) |
|
◆ Q_ASSERT_CALLED_ON_VALID_THREAD
#define Q_ASSERT_CALLED_ON_VALID_THREAD |
( |
| x | ) |
|
◆ Q_DETACH_THREAD_AFFINITY_MARKER
#define Q_DETACH_THREAD_AFFINITY_MARKER |
( |
| x | ) |
|
◆ Q_THREAD_AFFINITY_MARKER
#define Q_THREAD_AFFINITY_MARKER |
( |
| x | ) |
|
◆ USE_THREADED_DOWNLOAD
#define USE_THREADED_DOWNLOAD 0 |
◆ createPixmapDataSync()
◆ existingImageFileForPath()
◆ fromLatin1List()
◆ imageId()
◆ imageProviderId()
◆ maybeRemoveAlpha()
◆ operator<<()
◆ operator==()
◆ Q_GLOBAL_STATIC() [1/2]
◆ Q_GLOBAL_STATIC() [2/2]
◆ qHash()
◆ readImage()
bool readImage |
( |
const QUrl & | url, |
|
|
QIODevice * | dev, |
|
|
QImage * | image, |
|
|
QString * | errorString, |
|
|
QSize * | impsize, |
|
|
int * | frameCount, |
|
|
const QRect & | requestRegion, |
|
|
const QSize & | requestSize, |
|
|
const QQuickImageProviderOptions & | providerOptions, |
|
|
QQuickImageProviderOptions::AutoTransform * | appliedTransform = nullptr, |
|
|
int | frame = 0, |
|
|
qreal | devicePixelRatio = 1.0 ) |
|
static |
◆ cache_limit
int cache_limit = 2048 * 1024 |
|
static |
The maximum currently-unused image data that can be stored for potential later reuse, in bytes. See QQuickPixmapCache::shrinkCache()
Definition at line 106 of file qquickpixmapcache.cpp.