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
QColorTransferTable Class Reference

#include <qcolortransfertable_p.h>

+ Collaboration diagram for QColorTransferTable:

Public Types

enum  Type : uint8_t { TwoWay = 0 , OneWay }
 

Public Member Functions

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

Public Attributes

Type m_type = TwoWay
 
uint32_t m_tableSize = 0
 
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.

Member Enumeration Documentation

◆ Type

enum QColorTransferTable::Type : uint8_t
Enumerator
TwoWay 
OneWay 

Definition at line 32 of file qcolortransfertable_p.h.

Constructor & Destructor Documentation

◆ QColorTransferTable() [1/3]

QColorTransferTable::QColorTransferTable ( )
defaultnoexcept

◆ QColorTransferTable() [2/3]

QColorTransferTable::QColorTransferTable ( uint32_t size,
const QList< uint8_t > & table,
Type type = TwoWay )
inlinenoexcept

Definition at line 37 of file qcolortransfertable_p.h.

References Q_ASSERT.

◆ QColorTransferTable() [3/3]

QColorTransferTable::QColorTransferTable ( uint32_t size,
const QList< uint16_t > & table,
Type type = TwoWay )
inlinenoexcept

Definition at line 42 of file qcolortransfertable_p.h.

References Q_ASSERT.

Member Function Documentation

◆ apply()

float QColorTransferTable::apply ( float x) const
inline

Definition at line 98 of file qcolortransfertable_p.h.

◆ applyInverse()

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

Definition at line 115 of file qcolortransfertable_p.h.

References Q_ASSERT.

◆ asColorTransferFunction()

bool QColorTransferTable::asColorTransferFunction ( QColorTransferFunction * transferFn)
inline

Definition at line 130 of file qcolortransfertable_p.h.

References QColorTransferFunction::fromSRgb(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ checkInvertibility()

bool QColorTransferTable::checkInvertibility ( ) const
inline

Definition at line 76 of file qcolortransfertable_p.h.

References i.

◆ checkValidity()

bool QColorTransferTable::checkValidity ( ) const
inline

Definition at line 64 of file qcolortransfertable_p.h.

◆ isEmpty()

bool QColorTransferTable::isEmpty ( ) const
inlinenoexcept

Definition at line 48 of file qcolortransfertable_p.h.

◆ isIdentity()

bool QColorTransferTable::isIdentity ( ) const
inline

Definition at line 53 of file qcolortransfertable_p.h.

Friends And Related Symbol Documentation

◆ operator!=

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

Definition at line 210 of file qcolortransfertable_p.h.

◆ operator==

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

Definition at line 235 of file qcolortransfertable_p.h.

Member Data Documentation

◆ m_table16

QList<uint16_t> QColorTransferTable::m_table16

Definition at line 189 of file qcolortransfertable_p.h.

Referenced by QIcc::writeColorTrc().

◆ m_table8

QList<uint8_t> QColorTransferTable::m_table8

Definition at line 188 of file qcolortransfertable_p.h.

Referenced by QIcc::writeColorTrc().

◆ m_tableSize

uint32_t QColorTransferTable::m_tableSize = 0

Definition at line 187 of file qcolortransfertable_p.h.

Referenced by QIcc::writeColorTrc().

◆ m_type

Type QColorTransferTable::m_type = TwoWay

Definition at line 186 of file qcolortransfertable_p.h.


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