Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qcolorspace.cpp File Reference

(e2756158dcf87fea757475d711ac9cda20f42152)

#include "qcolorspace.h"
#include "qcolorspace_p.h"
#include "qcolortransform.h"
#include "qcolorclut_p.h"
#include "qcolormatrix_p.h"
#include "qcolortransferfunction_p.h"
#include "qcolortransform_p.h"
#include "qicc_p.h"
#include <qatomic.h>
#include <qmath.h>
#include <qtransform.h>
#include <qdebug.h>
#include "moc_qcolorspace.cpp"
Include dependency graph for qcolorspace.cpp:

Go to the source code of this file.

Functions

static void cleanupPredefinedColorspaces ()
QColorMatrix qColorSpacePrimaryPointsToXyzMatrix (const QColorSpace::PrimaryPoints &primaries)
static bool compareElement (const QColorSpacePrivate::TransferElement &element, const QColorSpacePrivate::TransferElement &other)
static bool compareElement (const QColorMatrix &element, const QColorMatrix &other)
static bool compareElement (const QColorVector &element, const QColorVector &other)
static bool compareElement (const QColorCLUT &element, const QColorCLUT &other)
template<typename T>
static bool compareElements (const T &element, const QColorSpacePrivate::Element &other)
QDataStreamoperator<< (QDataStream &s, const QColorSpace &image)
QDataStreamoperator>> (QDataStream &s, QColorSpace &colorSpace)
QDebug operator<< (QDebug dbg, const QColorSpacePrivate::TransferElement &)
QDebug operator<< (QDebug dbg, const QColorMatrix &)
QDebug operator<< (QDebug dbg, const QColorVector &)
QDebug operator<< (QDebug dbg, const QColorCLUT &)
QDebug operator<< (QDebug dbg, const QList< QColorSpacePrivate::Element > &elements)
QDebug operator<< (QDebug dbg, const QColorSpace &colorSpace)

Variables

static Q_CONSTINIT QAtomicPointer< QColorSpacePrivates_predefinedColorspacePrivates [QColorSpace::Bt2100Hlg] = {}

Function Documentation

◆ cleanupPredefinedColorspaces()

void cleanupPredefinedColorspaces ( )
static

Definition at line 25 of file qcolorspace.cpp.

◆ compareElement() [1/4]

bool compareElement ( const QColorCLUT & element,
const QColorCLUT & other )
static

Definition at line 1301 of file qcolorspace.cpp.

◆ compareElement() [2/4]

bool compareElement ( const QColorMatrix & element,
const QColorMatrix & other )
static

Definition at line 1289 of file qcolorspace.cpp.

◆ compareElement() [3/4]

bool compareElement ( const QColorSpacePrivate::TransferElement & element,
const QColorSpacePrivate::TransferElement & other )
static

Definition at line 1280 of file qcolorspace.cpp.

◆ compareElement() [4/4]

bool compareElement ( const QColorVector & element,
const QColorVector & other )
static

Definition at line 1295 of file qcolorspace.cpp.

◆ compareElements()

template<typename T>
bool compareElements ( const T & element,
const QColorSpacePrivate::Element & other )
static

Definition at line 1322 of file qcolorspace.cpp.

◆ operator<<() [1/7]

QDataStream & operator<< ( QDataStream & s,
const QColorSpace & image )
related

Definition at line 1493 of file qcolorspace.cpp.

◆ operator<<() [2/7]

QDebug operator<< ( QDebug dbg,
const QColorCLUT &  )

Definition at line 1531 of file qcolorspace.cpp.

◆ operator<<() [3/7]

QDebug operator<< ( QDebug dbg,
const QColorMatrix &  )

Definition at line 1523 of file qcolorspace.cpp.

◆ operator<<() [4/7]

QDebug operator<< ( QDebug dbg,
const QColorSpace & colorSpace )

Definition at line 1541 of file qcolorspace.cpp.

◆ operator<<() [5/7]

QDebug operator<< ( QDebug dbg,
const QColorSpacePrivate::TransferElement &  )

Definition at line 1519 of file qcolorspace.cpp.

◆ operator<<() [6/7]

QDebug operator<< ( QDebug dbg,
const QColorVector &  )

Definition at line 1527 of file qcolorspace.cpp.

◆ operator<<() [7/7]

QDebug operator<< ( QDebug dbg,
const QList< QColorSpacePrivate::Element > & elements )

Definition at line 1535 of file qcolorspace.cpp.

◆ operator>>()

QDataStream & operator>> ( QDataStream & s,
QColorSpace & colorSpace )
related

Definition at line 1509 of file qcolorspace.cpp.

◆ qColorSpacePrimaryPointsToXyzMatrix()

QColorMatrix qColorSpacePrimaryPointsToXyzMatrix ( const QColorSpace::PrimaryPoints & primaries)

Definition at line 89 of file qcolorspace.cpp.

References QColorMatrix::fromScale(), QColorMatrix::inverted(), QColorMatrix::map(), and QColorMatrix::operator*.

Here is the call graph for this function:

Variable Documentation

◆ s_predefinedColorspacePrivates

Q_CONSTINIT QAtomicPointer< QColorSpacePrivate > s_predefinedColorspacePrivates = {}
static

Definition at line 24 of file qcolorspace.cpp.