![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | AllocatedMemoryPointers |
Public Types | |
enum | State { Ready , ReadHeader , ReadingEnd , Error } |
enum | ColorSpaceState { Undefined = 0 , GammaChrm = 1 , Srgb = 2 , Icc = 3 } |
Public Member Functions | |
QPngHandlerPrivate (QPngHandler *qq) | |
bool | readPngHeader () |
bool | readPngImage (QImage *image) |
void | readPngTexts (png_info *info) |
QImage::Format | readImageFormat () |
Public Attributes | |
float | gamma |
float | fileGamma |
int | quality |
int | compression |
QString | description |
QSize | scaledSize |
QStringList | readTexts |
QColorSpace | colorSpace |
ColorSpaceState | colorSpaceState |
png_struct * | png_ptr |
png_info * | info_ptr |
png_info * | end_info |
AllocatedMemoryPointers | amp |
State | state |
QPngHandler * | q |
Definition at line 61 of file qpnghandler.cpp.
Enumerator | |
---|---|
Undefined | |
GammaChrm | |
Srgb | |
Icc |
Definition at line 71 of file qpnghandler.cpp.
Enumerator | |
---|---|
Ready | |
ReadHeader | |
ReadingEnd | |
Error |
Definition at line 64 of file qpnghandler.cpp.
|
inline |
Definition at line 78 of file qpnghandler.cpp.
QImage::Format QPngHandlerPrivate::readImageFormat | ( | ) |
Definition at line 709 of file qpnghandler.cpp.
References QImage::Format_ARGB32, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Invalid, QImage::Format_Mono, QImage::Format_RGB32, QImage::Format_RGBA64, QImage::Format_RGBX64, info_ptr, palette, and png_ptr.
Referenced by QPngHandler::option().
bool QPngHandlerPrivate::readPngHeader | ( | ) |
Definition at line 506 of file qpnghandler.cpp.
References QColorSpacePrimaries::areValid(), QColorSpacePrimaries::bluePoint, colorSpace, colorSpaceState, QColorSpacePrivate::description, end_info, Error, fileGamma, QColorSpace::fromIccProfile(), QString::fromLatin1(), QColorSpace::Gamma, GammaChrm, QColorSpacePrivate::get(), QColorSpacePrimaries::greenPoint, Icc, info_ptr, iod_read_fn(), QString::isEmpty(), QColorSpace::isValid(), png_ptr, qCDebug, qt_png_warning(), ReadHeader, readPngTexts(), QColorSpacePrimaries::redPoint, Srgb, QColorSpace::SRgb, state, and QColorSpacePrimaries::whitePoint.
Referenced by QPngHandler::option(), and readPngImage().
bool QPngHandlerPrivate::readPngImage | ( | QImage * | image | ) |
Definition at line 609 of file qpnghandler.cpp.
References amp, QImage::bits(), QImage::bytesPerLine(), QImage::colorCount(), colorSpace, colorSpaceState, QPngHandlerPrivate::AllocatedMemoryPointers::deallocate(), end_info, Error, FAST_SCAN_LINE, fileGamma, QImage::format(), QImage::Format_Indexed8, gamma, QColorSpace::Gamma, GammaChrm, i, Qt::IgnoreAspectRatio, info_ptr, QSize::isValid(), QColorSpace::isValid(), png_ptr, read_image_scaled(), ReadingEnd, readPngHeader(), readPngTexts(), readTexts, Ready, QPngHandlerPrivate::AllocatedMemoryPointers::row_pointers, QImage::scaled(), scaledSize, QImage::setColorSpace(), QImage::setDotsPerMeterX(), QImage::setDotsPerMeterY(), QImage::setOffset(), QImage::setText(), QColorSpace::setTransferFunction(), setup_qt(), QImage::size(), Qt::SmoothTransformation, state, and Undefined.
Referenced by QPngHandler::read().
void QPngHandlerPrivate::readPngTexts | ( | png_info * | info | ) |
Definition at line 475 of file qpnghandler.cpp.
References description, QString::fromLatin1(), QString::fromUtf8(), info, QString::isEmpty(), png_ptr, Q_UNUSED, readTexts, and QString::simplified().
Referenced by readPngHeader(), and readPngImage().
AllocatedMemoryPointers QPngHandlerPrivate::amp |
Definition at line 124 of file qpnghandler.cpp.
Referenced by readPngImage().
QColorSpace QPngHandlerPrivate::colorSpace |
Definition at line 89 of file qpnghandler.cpp.
Referenced by readPngHeader(), and readPngImage().
ColorSpaceState QPngHandlerPrivate::colorSpaceState |
Definition at line 90 of file qpnghandler.cpp.
Referenced by readPngHeader(), and readPngImage().
int QPngHandlerPrivate::compression |
Definition at line 85 of file qpnghandler.cpp.
Referenced by QPngHandler::option(), QPngHandler::setOption(), and QPngHandler::write().
QString QPngHandlerPrivate::description |
Definition at line 86 of file qpnghandler.cpp.
Referenced by QPngHandler::option(), readPngTexts(), QPngHandler::setOption(), and QPngHandler::write().
png_info* QPngHandlerPrivate::end_info |
Definition at line 94 of file qpnghandler.cpp.
Referenced by QPngHandler::~QPngHandler(), readPngHeader(), and readPngImage().
float QPngHandlerPrivate::fileGamma |
Definition at line 83 of file qpnghandler.cpp.
Referenced by QPngHandler::option(), readPngHeader(), and readPngImage().
float QPngHandlerPrivate::gamma |
Definition at line 82 of file qpnghandler.cpp.
Referenced by QPngHandler::option(), readPngImage(), QPngHandler::setOption(), and QPngHandler::write().
png_info* QPngHandlerPrivate::info_ptr |
Definition at line 93 of file qpnghandler.cpp.
Referenced by QPngHandler::~QPngHandler(), QPngHandler::option(), readImageFormat(), readPngHeader(), and readPngImage().
png_struct* QPngHandlerPrivate::png_ptr |
Definition at line 92 of file qpnghandler.cpp.
Referenced by QPngHandler::~QPngHandler(), QPngHandler::option(), readImageFormat(), readPngHeader(), readPngImage(), and readPngTexts().
QPngHandler* QPngHandlerPrivate::q |
Definition at line 128 of file qpnghandler.cpp.
int QPngHandlerPrivate::quality |
Definition at line 84 of file qpnghandler.cpp.
Referenced by QPngHandler::option(), QPngHandler::setOption(), and QPngHandler::write().
QStringList QPngHandlerPrivate::readTexts |
Definition at line 88 of file qpnghandler.cpp.
Referenced by readPngImage(), and readPngTexts().
QSize QPngHandlerPrivate::scaledSize |
Definition at line 87 of file qpnghandler.cpp.
Referenced by QPngHandler::option(), readPngImage(), and QPngHandler::setOption().
State QPngHandlerPrivate::state |
Definition at line 126 of file qpnghandler.cpp.
Referenced by QPngHandler::canRead(), QPngHandler::option(), readPngHeader(), and readPngImage().