![]() |
Qt 6.x
The Qt SDK
|
#include <qrgbafloat.h>
Public Types | |
using | Type = F |
using | FastType = float |
Public Member Functions | |
constexpr bool | isOpaque () const |
constexpr bool | isTransparent () const |
constexpr FastType | red () const |
constexpr FastType | green () const |
constexpr FastType | blue () const |
constexpr FastType | alpha () const |
void | setRed (FastType _red) |
void | setGreen (FastType _green) |
void | setBlue (FastType _blue) |
void | setAlpha (FastType _alpha) |
constexpr FastType | redNormalized () const |
constexpr FastType | greenNormalized () const |
constexpr FastType | blueNormalized () const |
constexpr FastType | alphaNormalized () const |
constexpr quint8 | red8 () const |
constexpr quint8 | green8 () const |
constexpr quint8 | blue8 () const |
constexpr quint8 | alpha8 () const |
constexpr uint | toArgb32 () const |
constexpr quint16 | red16 () const |
constexpr quint16 | green16 () const |
constexpr quint16 | blue16 () const |
constexpr quint16 | alpha16 () const |
constexpr Q_ALWAYS_INLINE QRgbaFloat | premultiplied () const |
constexpr Q_ALWAYS_INLINE QRgbaFloat | unpremultiplied () const |
constexpr bool | operator== (QRgbaFloat f) const |
constexpr bool | operator!= (QRgbaFloat f) const |
Static Public Member Functions | |
static constexpr QRgbaFloat | fromRgba64 (quint16 red, quint16 green, quint16 blue, quint16 alpha) |
static constexpr QRgbaFloat | fromRgba (quint8 red, quint8 green, quint8 blue, quint8 alpha) |
static constexpr QRgbaFloat | fromArgb32 (uint rgb) |
Public Attributes | |
F | r |
F | g |
F | b |
F | a |
Definition at line 17 of file qrgbafloat.h.
using QRgbaFloat< F >::FastType = float |
Definition at line 27 of file qrgbafloat.h.
using QRgbaFloat< F >::Type = F |
Definition at line 21 of file qrgbafloat.h.
|
inlineconstexpr |
Definition at line 67 of file qrgbafloat.h.
References QRgbaFloat< F >::a.
|
inlineconstexpr |
Definition at line 90 of file qrgbafloat.h.
References QRgbaFloat< F >::alphaNormalized(), and qRound().
|
inlineconstexpr |
Definition at line 81 of file qrgbafloat.h.
References QRgbaFloat< F >::alphaNormalized(), and qRound().
Referenced by QRgbaFloat< F >::toArgb32().
|
inlineconstexpr |
Definition at line 76 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::alpha16(), and QRgbaFloat< F >::alpha8().
|
inlineconstexpr |
Definition at line 66 of file qrgbafloat.h.
References QRgbaFloat< F >::b.
|
inlineconstexpr |
Definition at line 89 of file qrgbafloat.h.
References QRgbaFloat< F >::blueNormalized(), and qRound().
|
inlineconstexpr |
Definition at line 80 of file qrgbafloat.h.
References QRgbaFloat< F >::blueNormalized(), and qRound().
Referenced by QRgbaFloat< F >::toArgb32().
|
inlineconstexpr |
Definition at line 75 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::blue16(), and QRgbaFloat< F >::blue8().
|
inlinestaticconstexpr |
Definition at line 56 of file qrgbafloat.h.
References QRgbaFloat< F >::fromRgba(), and rgb.
Referenced by convertPixelToRGB32F(), convertPixelToRGBA32F(), fetchIndexedToRGBA32F(), QImage::fill(), QImage::setPixel(), storeRGB16FFromRGB32(), storeRGB32FFromRGB32(), storeRGBA16FFromARGB32PM(), and storeRGBA32FFromARGB32PM().
|
inlinestaticconstexpr |
Definition at line 46 of file qrgbafloat.h.
References QRgbaFloat< F >::red().
Referenced by QRgbaFloat< F >::fromArgb32().
|
inlinestaticconstexpr |
Definition at line 35 of file qrgbafloat.h.
References QRgbaFloat< F >::red().
Referenced by qConvertRgb64ToRgbaF16(), and qConvertRgb64ToRgbaF32().
|
inlineconstexpr |
Definition at line 65 of file qrgbafloat.h.
References QRgbaFloat< F >::g.
|
inlineconstexpr |
Definition at line 88 of file qrgbafloat.h.
References QRgbaFloat< F >::greenNormalized(), and qRound().
|
inlineconstexpr |
Definition at line 79 of file qrgbafloat.h.
References QRgbaFloat< F >::greenNormalized(), and qRound().
Referenced by QRgbaFloat< F >::toArgb32().
|
inlineconstexpr |
Definition at line 74 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::green16(), and QRgbaFloat< F >::green8().
|
inlineconstexpr |
Definition at line 61 of file qrgbafloat.h.
|
inlineconstexpr |
Definition at line 62 of file qrgbafloat.h.
|
inlineconstexpr |
Definition at line 109 of file qrgbafloat.h.
|
inlineconstexpr |
Definition at line 105 of file qrgbafloat.h.
|
inlineconstexpr |
Definition at line 92 of file qrgbafloat.h.
References QRgbaFloat< F >::a.
Referenced by fetchIndexedToRGBA32F(), fetchRGBA16FToRGBA64PM(), and fetchRGBA32FToRGBA64PM().
|
inlineconstexpr |
Definition at line 64 of file qrgbafloat.h.
References QRgbaFloat< F >::r.
Referenced by QRgbaFloat< F >::fromRgba(), and QRgbaFloat< F >::fromRgba64().
|
inlineconstexpr |
Definition at line 87 of file qrgbafloat.h.
References qRound(), and QRgbaFloat< F >::redNormalized().
|
inlineconstexpr |
Definition at line 78 of file qrgbafloat.h.
References qRound(), and QRgbaFloat< F >::redNormalized().
Referenced by QRgbaFloat< F >::toArgb32().
|
inlineconstexpr |
Definition at line 73 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::red16(), and QRgbaFloat< F >::red8().
|
inline |
Definition at line 71 of file qrgbafloat.h.
Referenced by convert_RGBA16FPM_to_RGBA16F(), and convert_RGBA16FPM_to_RGBA16F_inplace().
|
inline |
Definition at line 70 of file qrgbafloat.h.
|
inline |
Definition at line 69 of file qrgbafloat.h.
|
inline |
Definition at line 68 of file qrgbafloat.h.
|
inlineconstexpr |
Definition at line 82 of file qrgbafloat.h.
References QRgbaFloat< F >::alpha8(), QRgbaFloat< F >::blue8(), QRgbaFloat< F >::green8(), and QRgbaFloat< F >::red8().
Referenced by fetch1Pixel< QPixelLayout::BPP16FPx4 >(), fetch1Pixel< QPixelLayout::BPP32FPx4 >(), fetchPixel< QPixelLayout::BPP16FPx4 >(), fetchPixel< QPixelLayout::BPP32FPx4 >(), fetchRGBA16FToARGB32PM(), and fetchRGBA32FToARGB32PM().
|
inlineconstexpr |
Definition at line 96 of file qrgbafloat.h.
References QRgbaFloat< F >::a.
Referenced by convert_RGBA16FPM_to_RGBA16F(), convert_RGBA16FPM_to_RGBA16F_inplace(), QImage::pixelColor(), storeRGBA16FFromARGB32PM(), storeRGBA16FFromRGBA64PM(), storeRGBA32FFromARGB32PM(), storeRGBA32FFromRGBA64PM(), storeRGBX16FFromRGBA64PM(), and storeRGBX32FFromRGBA64PM().
F QRgbaFloat< F >::a |
Definition at line 32 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::alpha(), loadPremultiplied< QRgbaFloat32 >(), QRgbaFloat< F >::premultiplied(), and QRgbaFloat< F >::unpremultiplied().
F QRgbaFloat< F >::b |
Definition at line 31 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::blue(), QColorTransform::map(), and QColorTransform::map().
F QRgbaFloat< F >::g |
Definition at line 30 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::green(), QColorTransform::map(), and QColorTransform::map().
F QRgbaFloat< F >::r |
Definition at line 29 of file qrgbafloat.h.
Referenced by QColorTransform::map(), QColorTransform::map(), and QRgbaFloat< F >::red().