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
qblendfunctions_p.h File Reference

(7c6be5e884db0be343fe767683c6b0a8c194ce45)

#include <QtGui/private/qtguiglobal_p.h>
#include <qmath.h>
#include "qdrawhelper_p.h"
+ Include dependency graph for qblendfunctions_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QTransformImageVertex
 

Functions

template<typename SRC , typename T >
QT_BEGIN_NAMESPACE void qt_scale_image_16bit (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int srch, const QRectF &targetRect, const QRectF &srcRect, const QRect &clip, T blender)
 
template<typename T >
void qt_scale_image_32bit (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int srch, const QRectF &targetRect, const QRectF &srcRect, const QRect &clip, T blender)
 
template<class SrcT , class DestT , class Blender >
void qt_transform_image_rasterize (DestT *destPixels, int dbpl, const SrcT *srcPixels, int sbpl, const QTransformImageVertex &topLeft, const QTransformImageVertex &bottomLeft, const QTransformImageVertex &topRight, const QTransformImageVertex &bottomRight, const QRect &sourceRect, const QRect &clip, qreal topY, qreal bottomY, int dudx, int dvdx, int dudy, int dvdy, int u0, int v0, Blender blender)
 
template<class SrcT , class DestT , class Blender >
void qt_transform_image (DestT *destPixels, int dbpl, const SrcT *srcPixels, int sbpl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, const QTransform &targetRectTransform, Blender blender)
 

Function Documentation

◆ qt_scale_image_16bit()

template<typename SRC , typename T >
QT_BEGIN_NAMESPACE void qt_scale_image_16bit ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int srch,
const QRectF & targetRect,
const QRectF & srcRect,
const QRect & clip,
T blender )

Definition at line 25 of file qblendfunctions_p.h.

References qCeil(), qFloor(), and tr.

+ Here is the call graph for this function:

◆ qt_scale_image_32bit()

template<typename T >
void qt_scale_image_32bit ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int srch,
const QRectF & targetRect,
const QRectF & srcRect,
const QRect & clip,
T blender )

Definition at line 116 of file qblendfunctions_p.h.

References qCeil(), qFloor(), and tr.

Referenced by qt_scale_image_argb32_on_argb32(), and qt_scale_image_rgb32_on_rgb32().

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

◆ qt_transform_image()

template<class SrcT , class DestT , class Blender >
void qt_transform_image ( DestT * destPixels,
int dbpl,
const SrcT * srcPixels,
int sbpl,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
const QTransform & targetRectTransform,
Blender blender )

Definition at line 339 of file qblendfunctions_p.h.

References QRectF::bottom(), BottomLeft, i, QRectF::left(), qCeil(), qFloor(), qSwap(), qt_transform_image_rasterize(), QRectF::right(), QRectF::top(), TopLeft, QTransformImageVertex::u, QTransformImageVertex::v, QTransformImageVertex::x, and QTransformImageVertex::y.

Referenced by qt_transform_image_argb32_on_argb32(), qt_transform_image_argb32_on_rgb16(), qt_transform_image_rgb16_on_rgb16(), and qt_transform_image_rgb32_on_rgb32().

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

◆ qt_transform_image_rasterize()

template<class SrcT , class DestT , class Blender >
void qt_transform_image_rasterize ( DestT * destPixels,
int dbpl,
const SrcT * srcPixels,
int sbpl,
const QTransformImageVertex & topLeft,
const QTransformImageVertex & bottomLeft,
const QTransformImageVertex & topRight,
const QTransformImageVertex & bottomRight,
const QRect & sourceRect,
const QRect & clip,
qreal topY,
qreal bottomY,
int dudx,
int dvdx,
int dudy,
int dvdy,
int u0,
int v0,
Blender blender )

Definition at line 203 of file qblendfunctions_p.h.

References QRect::height(), i, QRect::left(), line, Q_FALLTHROUGH, qBound(), qMax(), qMin(), qRound(), QRect::top(), v0, QRect::width(), QTransformImageVertex::x, and QTransformImageVertex::y.

Referenced by qt_transform_image().

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