![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtGui/private/qtguiglobal_p.h>
#include "QtCore/qmath.h"
#include "QtGui/qcolor.h"
#include "QtGui/qpainter.h"
#include "QtGui/qimage.h"
#include "QtGui/qrgba64.h"
#include "private/qpixellayout_p.h"
#include "private/qrasterdefs_p.h"
#include <private/qsimd_p.h>
#include <memory>
#include <variant>
Go to the source code of this file.
Classes | |
struct | DrawHelper |
struct | quint24 |
struct | LinearGradientValues |
struct | RadialGradientValues |
struct | Operator |
struct | QLinearGradientData |
struct | QRadialGradientData |
struct | QConicalGradientData |
struct | QGradientData |
struct | QTextureData |
struct | QSpanData |
class | QRadialFetchSimd< Simd > |
struct | IntermediateBuffer |
Macros | |
#define | QT_FT_BEGIN_HEADER |
#define | QT_FT_END_HEADER |
#define | Q_DECL_RESTRICT |
#define | Q_DECL_VECTORCALL |
#define | GRADIENT_STOPTABLE_SIZE 1024 |
#define | GRADIENT_STOPTABLE_SIZE_SHIFT 10 |
#define | FETCH_RADIAL_LOOP_PROLOGUE |
#define | FETCH_RADIAL_LOOP_CLAMP_REPEAT index_vec.v = Simd::v_and(v_repeat_mask, Simd::v_toInt(v_index)); |
#define | FETCH_RADIAL_LOOP_CLAMP_REFLECT |
#define | FETCH_RADIAL_LOOP_CLAMP_PAD index_vec.v = Simd::v_toInt(Simd::v_min(v_max, Simd::v_max(v_min, v_index))); |
#define | FETCH_RADIAL_LOOP_EPILOGUE |
#define | FETCH_RADIAL_LOOP(FETCH_RADIAL_LOOP_CLAMP) |
#define | ARGB_COMBINE_ALPHA(argb, alpha) |
#define | AMIX(mask) |
#define | MIX(mask) |
Typedefs | |
typedef QRgbaFloat< float > | QRgbaFloat32 |
typedef QT_FT_SpanFunc | ProcessSpans |
typedef void(* | BitmapBlitFunc) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 &color, const uchar *bitmap, int mapWidth, int mapHeight, int mapStride) |
typedef void(* | AlphamapBlitFunc) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 &color, const uchar *bitmap, int mapWidth, int mapHeight, int mapStride, const QClipData *clip, bool useGammaCorrection) |
typedef void(* | AlphaRGBBlitFunc) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 &color, const uint *rgbmask, int mapWidth, int mapHeight, int mapStride, const QClipData *clip, bool useGammaCorrection) |
typedef void(* | RectFillFunc) (QRasterBuffer *rasterBuffer, int x, int y, int width, int height, const QRgba64 &color) |
typedef void(* | SrcOverBlendFunc) (uchar *destPixels, int dbpl, const uchar *src, int spbl, int w, int h, int const_alpha) |
typedef void(* | SrcOverScaleFunc) (uchar *destPixels, int dbpl, const uchar *src, int spbl, int srch, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clipRect, int const_alpha) |
typedef void(* | SrcOverTransformFunc) (uchar *destPixels, int dbpl, const uchar *src, int spbl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clipRect, const QTransform &targetRectTransform, int const_alpha) |
typedef void(QT_FASTCALL * | CompositionFunction) (uint *Q_DECL_RESTRICT dest, const uint *Q_DECL_RESTRICT src, int length, uint const_alpha) |
typedef void(QT_FASTCALL * | CompositionFunction64) (QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, uint const_alpha) |
typedef void(QT_FASTCALL * | CompositionFunctionFP) (QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, uint const_alpha) |
typedef void(QT_FASTCALL * | CompositionFunctionSolid) (uint *dest, int length, uint color, uint const_alpha) |
typedef void(QT_FASTCALL * | CompositionFunctionSolid64) (QRgba64 *dest, int length, QRgba64 color, uint const_alpha) |
typedef void(QT_FASTCALL * | CompositionFunctionSolidFP) (QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha) |
typedef uint *(QT_FASTCALL * | DestFetchProc) (uint *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length) |
typedef QRgba64 *(QT_FASTCALL * | DestFetchProc64) (QRgba64 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length) |
typedef QRgbaFloat32 *(QT_FASTCALL * | DestFetchProcFP) (QRgbaFloat32 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length) |
typedef void(QT_FASTCALL * | DestStoreProc) (QRasterBuffer *rasterBuffer, int x, int y, const uint *buffer, int length) |
typedef void(QT_FASTCALL * | DestStoreProc64) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 *buffer, int length) |
typedef void(QT_FASTCALL * | DestStoreProcFP) (QRasterBuffer *rasterBuffer, int x, int y, const QRgbaFloat32 *buffer, int length) |
typedef const uint *(QT_FASTCALL * | SourceFetchProc) (uint *buffer, const Operator *o, const QSpanData *data, int y, int x, int length) |
typedef const QRgba64 *(QT_FASTCALL * | SourceFetchProc64) (QRgba64 *buffer, const Operator *o, const QSpanData *data, int y, int x, int length) |
typedef const QRgbaFloat32 *(QT_FASTCALL * | SourceFetchProcFP) (QRgbaFloat32 *buffer, const Operator *o, const QSpanData *data, int y, int x, int length) |
Variables | |
static const uint | AMASK = 0xff000000 |
static const uint | RMASK = 0x00ff0000 |
static const uint | GMASK = 0x0000ff00 |
static const uint | BMASK = 0x000000ff |
SrcOverBlendFunc | qBlendFunctions [QImage::NImageFormats][QImage::NImageFormats] |
SrcOverScaleFunc | qScaleFunctions [QImage::NImageFormats][QImage::NImageFormats] |
SrcOverTransformFunc | qTransformFunctions [QImage::NImageFormats][QImage::NImageFormats] |
DrawHelper | qDrawHelper [QImage::NImageFormats] |
const uint | qt_bayer_matrix [16][16] |
static constexpr int | BufferSize = 2048 |
#define AMIX | ( | mask | ) |
Definition at line 1015 of file qdrawhelper_p.h.
#define ARGB_COMBINE_ALPHA | ( | argb, | |
alpha ) |
Definition at line 1006 of file qdrawhelper_p.h.
#define FETCH_RADIAL_LOOP | ( | FETCH_RADIAL_LOOP_CLAMP | ) |
#define FETCH_RADIAL_LOOP_CLAMP_PAD index_vec.v = Simd::v_toInt(Simd::v_min(v_max, Simd::v_max(v_min, v_index))); |
#define FETCH_RADIAL_LOOP_CLAMP_REFLECT |
#define FETCH_RADIAL_LOOP_CLAMP_REPEAT index_vec.v = Simd::v_and(v_repeat_mask, Simd::v_toInt(v_index)); |
#define FETCH_RADIAL_LOOP_EPILOGUE |
#define FETCH_RADIAL_LOOP_PROLOGUE |
#define GRADIENT_STOPTABLE_SIZE 1024 |
Definition at line 267 of file qdrawhelper_p.h.
#define GRADIENT_STOPTABLE_SIZE_SHIFT 10 |
Definition at line 268 of file qdrawhelper_p.h.
#define MIX | ( | mask | ) |
#define Q_DECL_RESTRICT |
Definition at line 48 of file qdrawhelper_p.h.
#define Q_DECL_VECTORCALL |
Definition at line 49 of file qdrawhelper_p.h.
#define QT_FT_BEGIN_HEADER |
Definition at line 25 of file qdrawhelper_p.h.
#define QT_FT_END_HEADER |
Definition at line 26 of file qdrawhelper_p.h.
typedef void(* AlphamapBlitFunc) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 &color, const uchar *bitmap, int mapWidth, int mapHeight, int mapStride, const QClipData *clip, bool useGammaCorrection) |
Definition at line 78 of file qdrawhelper_p.h.
typedef void(* AlphaRGBBlitFunc) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 &color, const uint *rgbmask, int mapWidth, int mapHeight, int mapStride, const QClipData *clip, bool useGammaCorrection) |
Definition at line 84 of file qdrawhelper_p.h.
typedef void(* BitmapBlitFunc) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 &color, const uchar *bitmap, int mapWidth, int mapHeight, int mapStride) |
Definition at line 73 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * CompositionFunction) (uint *Q_DECL_RESTRICT dest, const uint *Q_DECL_RESTRICT src, int length, uint const_alpha) |
Definition at line 156 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * CompositionFunction64) (QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, uint const_alpha) |
Definition at line 157 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * CompositionFunctionFP) (QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, uint const_alpha) |
Definition at line 158 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * CompositionFunctionSolid) (uint *dest, int length, uint color, uint const_alpha) |
Definition at line 159 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * CompositionFunctionSolid64) (QRgba64 *dest, int length, QRgba64 color, uint const_alpha) |
Definition at line 160 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * CompositionFunctionSolidFP) (QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha) |
Definition at line 161 of file qdrawhelper_p.h.
typedef uint *(QT_FASTCALL * DestFetchProc) (uint *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length) |
Definition at line 182 of file qdrawhelper_p.h.
typedef QRgba64 *(QT_FASTCALL * DestFetchProc64) (QRgba64 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length) |
Definition at line 183 of file qdrawhelper_p.h.
typedef QRgbaFloat32 *(QT_FASTCALL * DestFetchProcFP) (QRgbaFloat32 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length) |
Definition at line 184 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * DestStoreProc) (QRasterBuffer *rasterBuffer, int x, int y, const uint *buffer, int length) |
Definition at line 185 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * DestStoreProc64) (QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 *buffer, int length) |
Definition at line 186 of file qdrawhelper_p.h.
typedef void(QT_FASTCALL * DestStoreProcFP) (QRasterBuffer *rasterBuffer, int x, int y, const QRgbaFloat32 *buffer, int length) |
Definition at line 187 of file qdrawhelper_p.h.
typedef QT_FT_SpanFunc ProcessSpans |
Definition at line 72 of file qdrawhelper_p.h.
typedef QRgbaFloat<float> QRgbaFloat32 |
Definition at line 70 of file qdrawhelper_p.h.
typedef void(* RectFillFunc) (QRasterBuffer *rasterBuffer, int x, int y, int width, int height, const QRgba64 &color) |
Definition at line 90 of file qdrawhelper_p.h.
typedef const uint *(QT_FASTCALL * SourceFetchProc) (uint *buffer, const Operator *o, const QSpanData *data, int y, int x, int length) |
Definition at line 188 of file qdrawhelper_p.h.
typedef const QRgba64 *(QT_FASTCALL * SourceFetchProc64) (QRgba64 *buffer, const Operator *o, const QSpanData *data, int y, int x, int length) |
Definition at line 189 of file qdrawhelper_p.h.
typedef const QRgbaFloat32 *(QT_FASTCALL * SourceFetchProcFP) (QRgbaFloat32 *buffer, const Operator *o, const QSpanData *data, int y, int x, int length) |
Definition at line 190 of file qdrawhelper_p.h.
typedef void(* SrcOverBlendFunc) (uchar *destPixels, int dbpl, const uchar *src, int spbl, int w, int h, int const_alpha) |
Definition at line 94 of file qdrawhelper_p.h.
typedef void(* SrcOverScaleFunc) (uchar *destPixels, int dbpl, const uchar *src, int spbl, int srch, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clipRect, int const_alpha) |
Definition at line 99 of file qdrawhelper_p.h.
typedef void(* SrcOverTransformFunc) (uchar *destPixels, int dbpl, const uchar *src, int spbl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clipRect, const QTransform &targetRectTransform, int const_alpha) |
Definition at line 106 of file qdrawhelper_p.h.
Definition at line 636 of file qdrawhelper_p.h.
Definition at line 644 of file qdrawhelper_p.h.
Definition at line 623 of file qdrawhelper_p.h.
Definition at line 871 of file qdrawhelper_p.h.
Definition at line 878 of file qdrawhelper_p.h.
Definition at line 1025 of file qdrawhelper_p.h.
|
inline |
Definition at line 1019 of file qdrawhelper_p.h.
|
inlinestaticconstexpr |
Definition at line 745 of file qdrawhelper_p.h.
Definition at line 756 of file qdrawhelper_p.h.
Definition at line 740 of file qdrawhelper_p.h.
|
inlinestatic |
Definition at line 731 of file qdrawhelper_p.h.
|
inlinestatic |
Definition at line 808 of file qdrawhelper_p.h.
Definition at line 581 of file qdrawhelper_p.h.
Definition at line 612 of file qdrawhelper_p.h.
Definition at line 749 of file qdrawhelper_p.h.
void qBlendGradient | ( | int | count, |
const QT_FT_Span * | spans, | ||
void * | userData ) |
Definition at line 5247 of file qdrawhelper.cpp.
References blend_color_generic(), and QSpanData::rasterBuffer.
void qBlendTexture | ( | int | count, |
const QT_FT_Span * | spans, | ||
void * | userData ) |
Definition at line 5106 of file qdrawhelper.cpp.
References getBlendType(), processTextureSpansARGB32PM, processTextureSpansGeneric, processTextureSpansRGB16, and QSpanData::rasterBuffer.
Definition at line 963 of file qdrawhelper_p.h.
Definition at line 956 of file qdrawhelper_p.h.
Definition at line 383 of file qdrawhelper_p.h.
|
inlinestaticconstexpr |
Definition at line 885 of file qdrawhelper_p.h.
Referenced by color_burn_op(), color_dodge_op(), hardlight_op(), mix_alpha(), multiply_op(), Argb32OperationsC::multiplyAlpha8bit(), and overlay_op().
Definition at line 887 of file qdrawhelper_p.h.
Definition at line 886 of file qdrawhelper_p.h.
Definition at line 888 of file qdrawhelper_p.h.
|
static |
Definition at line 389 of file qdrawhelper_p.h.
|
inlinestatic |
Definition at line 344 of file qdrawhelper_p.h.
Referenced by qt_gradient_pixel().
|
inlinestatic |
Definition at line 369 of file qdrawhelper_p.h.
References qt_gradient_clamp().
Definition at line 930 of file qdrawhelper_p.h.
Definition at line 925 of file qdrawhelper_p.h.
Definition at line 920 of file qdrawhelper_p.h.
Definition at line 915 of file qdrawhelper_p.h.
Definition at line 935 of file qdrawhelper_p.h.
Definition at line 910 of file qdrawhelper_p.h.
Definition at line 6581 of file qdrawhelper.cpp.
Definition at line 6535 of file qdrawhelper.cpp.
|
extern |
Definition at line 6600 of file qdrawhelper.cpp.
Definition at line 6526 of file qdrawhelper.cpp.
Definition at line 890 of file qdrawhelper_p.h.
|
inlinestatic |
Definition at line 941 of file qdrawhelper_p.h.
|
static |
Definition at line 52 of file qdrawhelper_p.h.
|
static |
Definition at line 55 of file qdrawhelper_p.h.
|
staticconstexpr |
Definition at line 1035 of file qdrawhelper_p.h.
Referenced by blend_color_generic(), blend_tiled_argb(), blend_tiled_generic(), blend_tiled_rgb565(), blend_untransformed_generic(), handleSpans(), qt_alphamapblit_generic(), and qt_alphargbblit_generic().
|
static |
Definition at line 54 of file qdrawhelper_p.h.
|
extern |
Definition at line 549 of file qblendfunctions.cpp.
|
extern |
Definition at line 6242 of file qdrawhelper.cpp.
|
extern |
Definition at line 548 of file qblendfunctions.cpp.
const uint qt_bayer_matrix[16][16] |
Definition at line 971 of file qdrawhelper_p.h.
|
extern |
Definition at line 550 of file qblendfunctions.cpp.
|
static |
Definition at line 53 of file qdrawhelper_p.h.