Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QIcc Namespace Reference

Classes

struct  CurvTagData
 
struct  DescTagData
 
struct  GenericTagData
 
struct  mABTagData
 
struct  MlucTagData
 
struct  MlucTagRecord
 
struct  ParaTagData
 
struct  Sf32TagData
 
struct  TagEntry
 
struct  TagTableEntry
 
struct  XYZTagData
 

Functions

static int toFixedS1516 (float x)
 
static float fromFixedS1516 (int x)
 
static bool isValidIccProfile (const ICCProfileHeader &header)
 
static int writeColorTrc (QDataStream &stream, const QColorTrc &trc)
 
QByteArray toIccProfile (const QColorSpace &space)
 
bool parseXyzData (const QByteArray &data, const TagEntry &tagEntry, QColorVector &colorVector)
 
bool parseTRC (const QByteArray &data, const TagEntry &tagEntry, QColorTrc &gamma)
 
bool parseDesc (const QByteArray &data, const TagEntry &tagEntry, QString &descName)
 
bool fromIccProfile (const QByteArray &data, QColorSpace *colorSpace)
 

Function Documentation

◆ fromFixedS1516()

static float QIcc::fromFixedS1516 ( int  x)
static

Definition at line 183 of file qicc.cpp.

Referenced by isValidIccProfile(), parseTRC(), and parseXyzData().

+ Here is the caller graph for this function:

◆ fromIccProfile()

bool QIcc::fromIccProfile ( const QByteArray data,
QColorSpace colorSpace 
)

Definition at line 604 of file qicc.cpp.

References QColorSpace::AdobeRgb, QColorSpacePrimaries::areValid(), QColorMatrix::b, QHash< Key, T >::contains(), QColorSpace::Custom, QColorVector::D65(), QColorSpace::DciP3D65, QColorSpacePrivate::description, QColorSpace::detach(), QColorTransferFunction::fromGamma(), QColorTransferFunction::fromSRgb(), QColorMatrix::g, QColorSpace::Gamma, QColorSpacePrivate::gamma, QColorSpacePrivate::get(), Gray, header(), i, QColorSpacePrivate::iccProfile, QColorSpacePrivate::identifyColorSpace(), QHash< Key, T >::insert(), QColorTransferFunction::isGamma(), QColorTransferFunction::isLinear(), QColorTransferFunction::isSRgb(), isValidIccProfile(), QColorSpace::Linear, QColorTrc::m_fun, QColorTransferFunction::m_g, QColorTrc::m_type, QColorSpacePrivate::namedColorSpace, QIcc::TagTableEntry::offset, parseDesc(), parseTRC(), parseXyzData(), QColorSpacePrivate::primaries, QColorSpace::ProPhotoRgb, Q_ASSERT, qCDebug, qCInfo, qCWarning, qFuzzyCompare(), QColorMatrix::r, Rgb, QColorSpacePrivate::setToXyzMatrix(), QIcc::TagTableEntry::signature, QIcc::TagTableEntry::size, QColorSpace::SRgb, QColorSpacePrivate::toXyz, QColorMatrix::toXyzFromAdobeRgb(), QColorMatrix::toXyzFromDciP3D65(), QColorMatrix::toXyzFromProPhotoRgb(), QColorMatrix::toXyzFromSRgb(), QColorSpacePrimaries::toXyzMatrix(), QColorSpacePrivate::transferFunction, QColorSpacePrivate::trc, QColorSpacePrimaries::whitePoint, QColorSpacePrivate::whitePoint, QColorVector::x, QColorVector::y, and QColorVector::z.

Referenced by QColorSpace::fromIccProfile().

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

◆ isValidIccProfile()

static bool QIcc::isValidIccProfile ( const ICCProfileHeader header)
static

Definition at line 188 of file qicc.cpp.

References QColorVector::D50(), Display, fromFixedS1516(), Gray, header(), Input, Output, qCInfo, qCWarning, Rgb, QColorVector::x, QColorVector::y, and QColorVector::z.

Referenced by fromIccProfile(), and toIccProfile().

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

◆ parseDesc()

bool QIcc::parseDesc ( const QByteArray data,
const TagEntry tagEntry,
QString descName 
)

Definition at line 557 of file qicc.cpp.

References QVarLengthArray< T, Prealloc >::data(), desc, QString::fromLatin1(), QString::fromUtf16(), mluc, QIcc::TagEntry::offset, Q_STATIC_ASSERT, QIcc::TagEntry::size, and tag.

Referenced by fromIccProfile().

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

◆ parseTRC()

bool QIcc::parseTRC ( const QByteArray data,
const TagEntry tagEntry,
QColorTrc gamma 
)

Definition at line 434 of file qicc.cpp.

References curv, d, QList< T >::data(), e, fromFixedS1516(), QColorTransferFunction::fromGamma(), QColorTrc::m_fun, QColorTrc::m_table, QColorTrc::m_type, QIcc::TagEntry::offset, para, Q_STATIC_ASSERT, qCDebug, qCWarning, QList< T >::resize(), QIcc::TagEntry::size, and QIcc::GenericTagData::type.

Referenced by fromIccProfile().

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

◆ parseXyzData()

bool QIcc::parseXyzData ( const QByteArray data,
const TagEntry tagEntry,
QColorVector colorVector 
)

Definition at line 415 of file qicc.cpp.

References QIcc::XYZTagData::fixedX, QIcc::XYZTagData::fixedY, QIcc::XYZTagData::fixedZ, fromFixedS1516(), QIcc::TagEntry::offset, qCWarning, QIcc::TagEntry::size, and QIcc::GenericTagData::type.

Referenced by fromIccProfile().

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

◆ toFixedS1516()

static int QIcc::toFixedS1516 ( float  x)
static

Definition at line 178 of file qicc.cpp.

Referenced by toIccProfile(), and writeColorTrc().

+ Here is the caller graph for this function:

◆ toIccProfile()

QByteArray QIcc::toIccProfile ( const QColorSpace space)

Definition at line 280 of file qicc.cpp.

References QColorMatrix::b, QByteArray::constData(), QByteArray::data(), QColorSpace::description(), Display, QColorMatrix::g, QColorSpacePrivate::get(), IccTag(), QColorSpace::isValid(), isValidIccProfile(), ICCProfileHeader::profileSize, Q_ASSERT, QColorMatrix::r, QByteArray::size(), toFixedS1516(), QString::toUtf8(), QColorSpacePrivate::toXyz, QColorSpacePrivate::trc, QColorSpacePrivate::whitePoint, writeColorTrc(), QIODeviceBase::WriteOnly, QColorVector::x, QColorVector::y, and QColorVector::z.

Referenced by QColorSpace::iccProfile().

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

◆ writeColorTrc()

static int QIcc::writeColorTrc ( QDataStream stream,
const QColorTrc trc 
)
static

Definition at line 235 of file qicc.cpp.

References fun, i, QList< T >::isEmpty(), QColorTrc::isLinear(), QColorTrc::m_fun, QColorTrc::m_table, QColorTransferTable::m_table16, QColorTransferTable::m_table8, QColorTransferTable::m_tableSize, QColorTrc::m_type, Q_ASSERT, qFuzzyIsNull(), and toFixedS1516().

Referenced by toIccProfile().

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