Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QColorTrcLut Class Reference

#include <qcolortrclut_p.h>

+ Collaboration diagram for QColorTrcLut:

Public Member Functions

QRgba64 toLinear64 (QRgb rgb32) const
 
QRgba64 toLinear64 (QRgba64) const =delete
 
QRgb toLinear (QRgb rgb32) const
 
QRgba64 toLinear (QRgba64 rgb64) const
 
float u8ToLinearF32 (int c) const
 
float u16ToLinearF32 (int c) const
 
float toLinear (float f) const
 
QRgb fromLinear64 (QRgba64 rgb64) const
 
QRgb fromLinear (QRgb rgb32) const
 
QRgba64 fromLinear (QRgba64 rgb64) const
 
int u8FromLinearF32 (float f) const
 
int u16FromLinearF32 (float f) const
 
float fromLinear (float f) const
 

Static Public Member Functions

static std::shared_ptr< QColorTrcLutfromGamma (qreal gamma)
 
static std::shared_ptr< QColorTrcLutfromTransferFunction (const QColorTransferFunction &transfn)
 
static std::shared_ptr< QColorTrcLutfromTransferTable (const QColorTransferTable &transTable)
 

Public Attributes

ushort m_toLinear [(255 *16)+1]
 
ushort m_fromLinear [(255 *16)+1]
 

Detailed Description

Definition at line 36 of file qcolortrclut_p.h.

Member Function Documentation

◆ fromGamma()

std::shared_ptr< QColorTrcLut > QColorTrcLut::fromGamma ( qreal  gamma)
static

Definition at line 16 of file qcolortrclut.cpp.

References i, qPow(), and qRound().

Referenced by QGuiApplicationPrivate::colorProfileForA32Text(), and QGuiApplicationPrivate::colorProfileForA8Text().

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

◆ fromLinear() [1/3]

float QColorTrcLut::fromLinear ( float  f) const
inline

Definition at line 181 of file qcolortrclut_p.h.

◆ fromLinear() [2/3]

QRgb QColorTrcLut::fromLinear ( QRgb  rgb32) const
inline

Definition at line 161 of file qcolortrclut_p.h.

◆ fromLinear() [3/3]

QRgba64 QColorTrcLut::fromLinear ( QRgba64  rgb64) const
inline

Definition at line 166 of file qcolortrclut_p.h.

◆ fromLinear64()

QRgb QColorTrcLut::fromLinear64 ( QRgba64  rgb64) const
inline

Definition at line 116 of file qcolortrclut_p.h.

References QRgba64::alpha(), QRgba64::blue(), QRgba64::green(), and QRgba64::red().

Referenced by grayBlendPixel(), and rgbBlendPixel().

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

◆ fromTransferFunction()

std::shared_ptr< QColorTrcLut > QColorTrcLut::fromTransferFunction ( const QColorTransferFunction transfn)
static

Definition at line 28 of file qcolortrclut.cpp.

References QColorTransferFunction::apply(), fun, i, and qRound().

Referenced by lutFromTrc().

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

◆ fromTransferTable()

std::shared_ptr< QColorTrcLut > QColorTrcLut::fromTransferTable ( const QColorTransferTable transTable)
static

Definition at line 41 of file qcolortrclut.cpp.

References i, qBound(), and qRound().

Referenced by lutFromTrc().

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

◆ toLinear() [1/3]

float QColorTrcLut::toLinear ( float  f) const
inline

Definition at line 110 of file qcolortrclut_p.h.

◆ toLinear() [2/3]

QRgb QColorTrcLut::toLinear ( QRgb  rgb32) const
inline

Definition at line 87 of file qcolortrclut_p.h.

Referenced by qGamma_correct_back_to_linear_cs(), qt_alphamapblit_argb32(), qt_alphamapblit_generic(), qt_alphargbblit_argb32(), and qt_alphargbblit_generic().

+ Here is the caller graph for this function:

◆ toLinear() [3/3]

QRgba64 QColorTrcLut::toLinear ( QRgba64  rgb64) const
inline

Definition at line 92 of file qcolortrclut_p.h.

◆ toLinear64() [1/2]

QRgba64 QColorTrcLut::toLinear64 ( QRgb  rgb32) const
inline

Definition at line 45 of file qcolortrclut_p.h.

References QRgba64::fromRgba64(), qAlpha(), qBlue(), qGreen(), and qRed().

Referenced by alphamapblend_argb32(), alphargbblend_argb32(), grayBlendPixel(), and rgbBlendPixel().

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

◆ toLinear64() [2/2]

QRgba64 QColorTrcLut::toLinear64 ( QRgba64  ) const
delete

◆ u16FromLinearF32()

int QColorTrcLut::u16FromLinearF32 ( float  f) const
inline

Definition at line 176 of file qcolortrclut_p.h.

◆ u16ToLinearF32()

float QColorTrcLut::u16ToLinearF32 ( int  c) const
inline

Definition at line 103 of file qcolortrclut_p.h.

◆ u8FromLinearF32()

int QColorTrcLut::u8FromLinearF32 ( float  f) const
inline

Definition at line 171 of file qcolortrclut_p.h.

◆ u8ToLinearF32()

float QColorTrcLut::u8ToLinearF32 ( int  c) const
inline

Definition at line 97 of file qcolortrclut_p.h.

Member Data Documentation

◆ m_fromLinear

ushort QColorTrcLut::m_fromLinear[(255 *16)+1]

Definition at line 192 of file qcolortrclut_p.h.

◆ m_toLinear

ushort QColorTrcLut::m_toLinear[(255 *16)+1]

Definition at line 191 of file qcolortrclut_p.h.


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