![]() |
Qt 6.x
The Qt SDK
|
#include "qicnshandler_p.h"
#include <QtCore/qmath.h>
#include <QtCore/qendian.h>
#include <QtCore/qregularexpression.h>
#include <QtCore/qbuffer.h>
#include <QtGui/qimage.h>
Go to the source code of this file.
Variables | |
static QT_BEGIN_NAMESPACE const quint8 | ICNSBlockHeaderSize = 8 |
static const QRgb | ICNSColorTableMono [] |
static const QRgb | ICNSColorTable4bit [] |
static const QRgb | ICNSColorTable8bit [] |
|
inlinestatic |
Definition at line 363 of file qicnshandler.cpp.
References ICNSEntry::Depth4bit, ICNSEntry::Depth8bit, ICNSEntry::DepthMono, ICNSColorTable4bit, ICNSColorTable8bit, ICNSColorTableMono, and QRgb.
Referenced by readLowDepthIcon().
|
inlinestatic |
Definition at line 324 of file qicnshandler.cpp.
References header(), ICNSBlockHeaderSize, QString::length(), and qBound().
Referenced by QICNSHandler::write().
|
inlinestatic |
Definition at line 330 of file qicnshandler.cpp.
References icon, ICNSEntry::JP2, and ICNSEntry::PNG.
Referenced by parseIconEntryInfo().
|
inlinestatic |
Definition at line 335 of file qicnshandler.cpp.
References icon.
Definition at line 319 of file qicnshandler.cpp.
Referenced by parseIconEntryInfo().
|
inlinestatic |
Definition at line 354 of file qicnshandler.cpp.
References base, QByteArray::number(), and QByteArrayLiteral.
Referenced by QICNSHandler::write().
|
inlinestatic |
Definition at line 341 of file qicnshandler.cpp.
References qToBigEndian().
Referenced by QICNSHandler::option(), parseIconEntryInfo(), QICNSHandler::read(), and readMask().
|
inlinestatic |
Definition at line 347 of file qicnshandler.cpp.
References QByteArray::constData(), qFromBigEndian(), and QByteArray::size().
Referenced by QICNSHandler::write().
|
inlinestatic |
Definition at line 312 of file qicnshandler.cpp.
References out.
|
inlinestatic |
Definition at line 305 of file qicnshandler.cpp.
Definition at line 387 of file qicnshandler.cpp.
References device, icon, ICNSEntry::IsIcon, ICNSEntry::JP2, magic, ICNSEntry::PNG, and QByteArrayLiteral.
|
static |
Definition at line 406 of file qicnshandler.cpp.
References ICNSEntry::Depth32bit, ICNSEntry::DepthMono, ICNSEntry::DepthUnknown, QString::fromLatin1(), ICNSEntry::GroupHuge, ICNSEntry::GroupLarge, ICNSEntry::GroupMini, ICNSEntry::GroupSmall, ICNSEntry::GroupThumbnail, icon, ICNSEntry::IconPlusMask, ICNSEntry::IsIcon, isIconCompressed(), ICNSEntry::IsMask, isPowOf2OrDividesBy16(), QRegularExpression::match(), match(), nameFromOSType(), qPrintable, qRound(), qSqrt(), QStringLiteral, qWarning, r1, r2, ICNSEntry::RawIcon, and ICNSEntry::RLE24.
Q_STATIC_ASSERT | ( | sizeof(ICNSColorTable4bit)/sizeof(ICNSColorTable4bit[0]) | = =(1<< ICNSEntry::Depth4bit) | ) |
Q_STATIC_ASSERT | ( | sizeof(ICNSColorTable8bit)/sizeof(ICNSColorTable8bit[0]) | = =(1<< ICNSEntry::Depth8bit) | ) |
Q_STATIC_ASSERT | ( | sizeof(ICNSColorTableMono)/sizeof(ICNSColorTableMono[0]) | = =(1<< ICNSEntry::DepthMono) | ) |
|
static |
Definition at line 571 of file qicnshandler.cpp.
References QImageIOHandler::allocateImage(), QByteArray::constData(), QImage::Format_RGB32, i, icon, QByteArray::isEmpty(), line, qBlue(), qGreen(), qRed(), QRgb, qRgb(), rgb, and ICNSEntry::RLE24.
Referenced by QICNSHandler::read().
|
static |
Definition at line 530 of file qicnshandler.cpp.
References QImageIOHandler::allocateImage(), ICNSEntry::Depth4bit, ICNSEntry::Depth8bit, ICNSEntry::DepthMono, QImage::Format_Indexed8, QImage::Format_Mono, getColorTable(), icon, QList< T >::isEmpty(), and Q_STATIC_ASSERT.
|
static |
Definition at line 492 of file qicnshandler.cpp.
References QImageIOHandler::allocateImage(), QByteArray::constData(), ICNSEntry::Depth8bit, ICNSEntry::DepthMono, QImage::Format_RGB32, ICNSEntry::IconPlusMask, imageDataSize(), ICNSEntry::IsMask, line, nameFromOSType(), pos, QRgb, qRgb(), and qWarning.
Referenced by QICNSHandler::read().
|
static |
Definition at line 17 of file qicnshandler.cpp.
Referenced by isBlockHeaderValid(), and QICNSHandler::write().
|
static |
Definition at line 25 of file qicnshandler.cpp.
Referenced by getColorTable().
|
static |
Definition at line 45 of file qicnshandler.cpp.
Referenced by getColorTable().
|
static |
Definition at line 19 of file qicnshandler.cpp.
Referenced by getColorTable().