Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcolorspace.cpp File Reference

(abed1a41e1dfc6b1cc6eaa7cc8072c6638230811)

#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 ()
 
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::ProPhotoRgb] = {}
 

Function Documentation

◆ cleanupPredefinedColorspaces()

static void cleanupPredefinedColorspaces ( )
static

Definition at line 25 of file qcolorspace.cpp.

References ptr(), and s_predefinedColorspacePrivates.

+ Here is the call graph for this function:

◆ compareElement() [1/4]

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

Definition at line 1178 of file qcolorspace.cpp.

References QColorCLUT::gridPointsW, QColorCLUT::gridPointsX, QColorCLUT::gridPointsY, QColorCLUT::gridPointsZ, i, other(), QList< T >::size(), and QColorCLUT::table.

+ Here is the call graph for this function:

◆ compareElement() [2/4]

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

Definition at line 1166 of file qcolorspace.cpp.

References other().

+ Here is the call graph for this function:

◆ compareElement() [3/4]

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

Definition at line 1157 of file qcolorspace.cpp.

References other(), and QColorSpacePrivate::TransferElement::trc.

Referenced by compareElements().

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

◆ compareElement() [4/4]

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

Definition at line 1172 of file qcolorspace.cpp.

References other().

+ Here is the call graph for this function:

◆ compareElements()

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

Definition at line 1199 of file qcolorspace.cpp.

References compareElement(), and other().

Referenced by QColorSpacePrivate::equals().

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

◆ operator<<() [1/7]

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

Definition at line 1370 of file qcolorspace.cpp.

◆ operator<<() [2/7]

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

Definition at line 1408 of file qcolorspace.cpp.

◆ operator<<() [3/7]

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

Definition at line 1400 of file qcolorspace.cpp.

◆ operator<<() [4/7]

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

Definition at line 1418 of file qcolorspace.cpp.

References initialize().

+ Here is the call graph for this function:

◆ operator<<() [5/7]

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

Definition at line 1396 of file qcolorspace.cpp.

◆ operator<<() [6/7]

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

Definition at line 1404 of file qcolorspace.cpp.

◆ operator<<() [7/7]

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

Definition at line 1412 of file qcolorspace.cpp.

References elements.

◆ operator>>()

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

Definition at line 1386 of file qcolorspace.cpp.

Variable Documentation

◆ s_predefinedColorspacePrivates

Q_CONSTINIT QAtomicPointer<QColorSpacePrivate> s_predefinedColorspacePrivates[QColorSpace::ProPhotoRgb] = {}
static

Definition at line 24 of file qcolorspace.cpp.

Referenced by QColorSpace::QColorSpace(), and cleanupPredefinedColorspaces().