Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QColorTransferTable Class Reference

#include <qcolortransfertable_p.h>

+ Collaboration diagram for QColorTransferTable:

Public Member Functions

 QColorTransferTable () noexcept
 
 QColorTransferTable (uint32_t size, const QList< uint8_t > &table) noexcept
 
 QColorTransferTable (uint32_t size, const QList< uint16_t > &table) noexcept
 
bool isEmpty () const
 
bool checkValidity () const
 
float apply (float x) const
 
float applyInverse (float x, float resultLargerThan=0.0f) const
 
bool asColorTransferFunction (QColorTransferFunction *transferFn)
 

Public Attributes

uint32_t m_tableSize
 
QList< uint8_t > m_table8
 
QList< uint16_t > m_table16
 

Friends

bool operator!= (const QColorTransferTable &t1, const QColorTransferTable &t2)
 
bool operator== (const QColorTransferTable &t1, const QColorTransferTable &t2)
 

Detailed Description

Definition at line 29 of file qcolortransfertable_p.h.

Constructor & Destructor Documentation

◆ QColorTransferTable() [1/3]

QColorTransferTable::QColorTransferTable ( )
inlinenoexcept

Definition at line 32 of file qcolortransfertable_p.h.

◆ QColorTransferTable() [2/3]

QColorTransferTable::QColorTransferTable ( uint32_t  size,
const QList< uint8_t > &  table 
)
inlinenoexcept

Definition at line 35 of file qcolortransfertable_p.h.

References Q_ASSERT.

◆ QColorTransferTable() [3/3]

QColorTransferTable::QColorTransferTable ( uint32_t  size,
const QList< uint16_t > &  table 
)
inlinenoexcept

Definition at line 40 of file qcolortransfertable_p.h.

References Q_ASSERT.

Member Function Documentation

◆ apply()

float QColorTransferTable::apply ( float  x) const
inline

Definition at line 81 of file qcolortransfertable_p.h.

◆ applyInverse()

float QColorTransferTable::applyInverse ( float  x,
float  resultLargerThan = 0.0f 
) const
inline

Definition at line 96 of file qcolortransfertable_p.h.

References QSet< T >::cbegin(), i, it, and Q_ASSERT.

+ Here is the call graph for this function:

◆ asColorTransferFunction()

bool QColorTransferTable::asColorTransferFunction ( QColorTransferFunction transferFn)
inline

Definition at line 137 of file qcolortransfertable_p.h.

References QColorTransferFunction::fromSRgb(), and Q_ASSERT.

Referenced by QColorSpacePrivate::setTransferFunctionTables().

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

◆ checkValidity()

bool QColorTransferTable::checkValidity ( ) const
inline

Definition at line 51 of file qcolortransfertable_p.h.

References i.

Referenced by QColorSpacePrivate::setTransferFunctionTables().

+ Here is the caller graph for this function:

◆ isEmpty()

bool QColorTransferTable::isEmpty ( ) const
inline

Definition at line 46 of file qcolortransfertable_p.h.

Referenced by QColorSpacePrivate::setTransferFunctionTables().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QColorTransferTable t1,
const QColorTransferTable t2 
)
friend

Definition at line 194 of file qcolortransfertable_p.h.

◆ operator==

bool operator== ( const QColorTransferTable t1,
const QColorTransferTable t2 
)
friend

Definition at line 217 of file qcolortransfertable_p.h.

Member Data Documentation

◆ m_table16

QList<uint16_t> QColorTransferTable::m_table16

Definition at line 191 of file qcolortransfertable_p.h.

Referenced by QIcc::writeColorTrc().

◆ m_table8

QList<uint8_t> QColorTransferTable::m_table8

Definition at line 190 of file qcolortransfertable_p.h.

Referenced by QIcc::writeColorTrc().

◆ m_tableSize

uint32_t QColorTransferTable::m_tableSize

Definition at line 189 of file qcolortransfertable_p.h.

Referenced by QIcc::writeColorTrc().


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