Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QPngHandlerPrivate Class Reference
+ Collaboration diagram for QPngHandlerPrivate:

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
 
QPngHandlerq
 

Detailed Description

Definition at line 61 of file qpnghandler.cpp.

Member Enumeration Documentation

◆ ColorSpaceState

Enumerator
Undefined 
GammaChrm 
Srgb 
Icc 

Definition at line 71 of file qpnghandler.cpp.

◆ State

Enumerator
Ready 
ReadHeader 
ReadingEnd 
Error 

Definition at line 64 of file qpnghandler.cpp.

Constructor & Destructor Documentation

◆ QPngHandlerPrivate()

QPngHandlerPrivate::QPngHandlerPrivate ( QPngHandler qq)
inline

Definition at line 78 of file qpnghandler.cpp.

Member Function Documentation

◆ readImageFormat()

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().

+ Here is the caller graph for this function:

◆ readPngHeader()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readPngImage()

◆ readPngTexts()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ amp

AllocatedMemoryPointers QPngHandlerPrivate::amp

Definition at line 124 of file qpnghandler.cpp.

Referenced by readPngImage().

◆ colorSpace

QColorSpace QPngHandlerPrivate::colorSpace

Definition at line 89 of file qpnghandler.cpp.

Referenced by readPngHeader(), and readPngImage().

◆ colorSpaceState

ColorSpaceState QPngHandlerPrivate::colorSpaceState

Definition at line 90 of file qpnghandler.cpp.

Referenced by readPngHeader(), and readPngImage().

◆ compression

int QPngHandlerPrivate::compression

Definition at line 85 of file qpnghandler.cpp.

Referenced by QPngHandler::option(), QPngHandler::setOption(), and QPngHandler::write().

◆ description

QString QPngHandlerPrivate::description

◆ end_info

png_info* QPngHandlerPrivate::end_info

Definition at line 94 of file qpnghandler.cpp.

Referenced by QPngHandler::~QPngHandler(), readPngHeader(), and readPngImage().

◆ fileGamma

float QPngHandlerPrivate::fileGamma

Definition at line 83 of file qpnghandler.cpp.

Referenced by QPngHandler::option(), readPngHeader(), and readPngImage().

◆ gamma

float QPngHandlerPrivate::gamma

◆ info_ptr

png_info* QPngHandlerPrivate::info_ptr

◆ png_ptr

png_struct* QPngHandlerPrivate::png_ptr

◆ q

QPngHandler* QPngHandlerPrivate::q

Definition at line 128 of file qpnghandler.cpp.

◆ quality

int QPngHandlerPrivate::quality

Definition at line 84 of file qpnghandler.cpp.

Referenced by QPngHandler::option(), QPngHandler::setOption(), and QPngHandler::write().

◆ readTexts

QStringList QPngHandlerPrivate::readTexts

Definition at line 88 of file qpnghandler.cpp.

Referenced by readPngImage(), and readPngTexts().

◆ scaledSize

QSize QPngHandlerPrivate::scaledSize

Definition at line 87 of file qpnghandler.cpp.

Referenced by QPngHandler::option(), readPngImage(), and QPngHandler::setOption().

◆ state

State QPngHandlerPrivate::state

The documentation for this class was generated from the following file: