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>.
|
#include <qrgbafloat.h>
Public Types | |
using | Type = F |
using | FastType = float |
Public Member Functions | |
constexpr bool | isOpaque () const |
constexpr bool | isTransparent () const |
constexpr float | red () const |
constexpr float | green () const |
constexpr float | blue () const |
constexpr float | alpha () const |
void | setRed (float _red) |
void | setGreen (float _green) |
void | setBlue (float _blue) |
void | setAlpha (float _alpha) |
constexpr float | redNormalized () const |
constexpr float | greenNormalized () const |
constexpr float | blueNormalized () const |
constexpr float | 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 fetchRGBA16FToRGBA64PM(), fetchRGBA32FToRGBA64PM(), QImage::fill(), and QImage::setPixelColor().
|
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.
|
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(), and QImage::pixelColor().
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().
F QRgbaFloat< F >::g |
Definition at line 30 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::green().
F QRgbaFloat< F >::r |
Definition at line 29 of file qrgbafloat.h.
Referenced by QRgbaFloat< F >::red().