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.cpp File Reference

(7c6be5e884db0be343fe767683c6b0a8c194ce45)

#include <qmath.h>
#include "qblendfunctions_p.h"
+ Include dependency graph for qblendfunctions.cpp:

Go to the source code of this file.

Classes

struct  SourceOnlyAlpha
 
struct  SourceAndConstAlpha
 
struct  Blend_RGB16_on_RGB16_NoAlpha
 
struct  Blend_RGB16_on_RGB16_ConstAlpha
 
struct  Blend_ARGB32_on_RGB16_SourceAlpha
 
struct  Blend_ARGB32_on_RGB16_SourceAndConstAlpha
 
struct  Blend_RGB32_on_RGB32_NoAlpha
 
struct  Blend_RGB32_on_RGB32_ConstAlpha
 
struct  Blend_ARGB32_on_ARGB32_SourceAlpha
 
struct  Blend_ARGB32_on_ARGB32_SourceAndConstAlpha
 

Functions

void qt_scale_image_rgb16_on_rgb16 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int srch, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, int const_alpha)
 
void qt_scale_image_argb32_on_rgb16 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int srch, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, int const_alpha)
 
void qt_blend_rgb16_on_rgb16 (uchar *dst, int dbpl, const uchar *src, int sbpl, int w, int h, int const_alpha)
 
void qt_blend_argb32_on_rgb16_const_alpha (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int w, int h, int const_alpha)
 
static void qt_blend_argb32_on_rgb16 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int w, int h, int const_alpha)
 
static void qt_blend_rgb32_on_rgb16 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int w, int h, int const_alpha)
 
static void qt_blend_argb32_on_argb32 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int w, int h, int const_alpha)
 
void qt_blend_rgb32_on_rgb32 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int w, int h, int const_alpha)
 
void qt_scale_image_rgb32_on_rgb32 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int srch, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, int const_alpha)
 
void qt_scale_image_argb32_on_argb32 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, int srch, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, int const_alpha)
 
void qt_transform_image_rgb16_on_rgb16 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, const QTransform &targetRectTransform, int const_alpha)
 
void qt_transform_image_argb32_on_rgb16 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, const QTransform &targetRectTransform, int const_alpha)
 
void qt_transform_image_rgb32_on_rgb32 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, const QTransform &targetRectTransform, int const_alpha)
 
void qt_transform_image_argb32_on_argb32 (uchar *destPixels, int dbpl, const uchar *srcPixels, int sbpl, const QRectF &targetRect, const QRectF &sourceRect, const QRect &clip, const QTransform &targetRectTransform, int const_alpha)
 
void qInitBlendFunctions ()
 

Variables

SrcOverScaleFunc qScaleFunctions [QImage::NImageFormats][QImage::NImageFormats]
 
SrcOverBlendFunc qBlendFunctions [QImage::NImageFormats][QImage::NImageFormats]
 
SrcOverTransformFunc qTransformFunctions [QImage::NImageFormats][QImage::NImageFormats]
 

Function Documentation

◆ qInitBlendFunctions()

◆ qt_blend_argb32_on_argb32()

static void qt_blend_argb32_on_argb32 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int w,
int h,
int const_alpha )
static

Definition at line 295 of file qblendfunctions.cpp.

References BYTE_MUL(), and qAlpha().

Referenced by qInitBlendFunctions().

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

◆ qt_blend_argb32_on_rgb16()

static void qt_blend_argb32_on_rgb16 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int w,
int h,
int const_alpha )
static

Definition at line 199 of file qblendfunctions.cpp.

References db, qConvertRgb32To16(), and qt_blend_argb32_on_rgb16_const_alpha().

Referenced by qInitBlendFunctions(), and qt_blend_rgb32_on_rgb16().

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

◆ qt_blend_argb32_on_rgb16_const_alpha()

void qt_blend_argb32_on_rgb16_const_alpha ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int w,
int h,
int const_alpha )

Definition at line 176 of file qblendfunctions.cpp.

References BYTE_MUL(), BYTE_MUL_RGB16(), i, qAlpha(), and qConvertRgb32To16().

Referenced by qt_blend_argb32_on_rgb16().

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

◆ qt_blend_rgb16_on_rgb16()

void qt_blend_rgb16_on_rgb16 ( uchar * dst,
int dbpl,
const uchar * src,
int sbpl,
int w,
int h,
int const_alpha )

Definition at line 143 of file qblendfunctions.cpp.

References BYTE_MUL_RGB16(), and d.

Referenced by qInitBlendFunctions().

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

◆ qt_blend_rgb32_on_rgb16()

static void qt_blend_rgb32_on_rgb16 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int w,
int h,
int const_alpha )
static

Definition at line 252 of file qblendfunctions.cpp.

References qConvertRgb32To16(), and qt_blend_argb32_on_rgb16().

Referenced by qInitBlendFunctions().

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

◆ qt_blend_rgb32_on_rgb32()

void qt_blend_rgb32_on_rgb32 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int w,
int h,
int const_alpha )

Definition at line 334 of file qblendfunctions.cpp.

References INTERPOLATE_PIXEL_255().

Referenced by qInitBlendFunctions().

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

◆ qt_scale_image_argb32_on_argb32()

void qt_scale_image_argb32_on_argb32 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int srch,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
int const_alpha )

Definition at line 438 of file qblendfunctions.cpp.

References QRectF::height(), qt_scale_image_32bit(), QRectF::width(), QRectF::x(), and QRectF::y().

Referenced by qInitBlendFunctions().

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

◆ qt_scale_image_argb32_on_rgb16()

void qt_scale_image_argb32_on_rgb16 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int srch,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
int const_alpha )

Definition at line 118 of file qblendfunctions.cpp.

References QRectF::height(), QRectF::width(), QRectF::x(), and QRectF::y().

Referenced by qInitBlendFunctions().

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

◆ qt_scale_image_rgb16_on_rgb16()

void qt_scale_image_rgb16_on_rgb16 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int srch,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
int const_alpha )

Definition at line 93 of file qblendfunctions.cpp.

References QRectF::height(), QRectF::width(), QRectF::x(), and QRectF::y().

Referenced by qInitBlendFunctions().

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

◆ qt_scale_image_rgb32_on_rgb32()

void qt_scale_image_rgb32_on_rgb32 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
int srch,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
int const_alpha )

Definition at line 413 of file qblendfunctions.cpp.

References QRectF::height(), qt_scale_image_32bit(), QRectF::width(), QRectF::x(), and QRectF::y().

Referenced by qInitBlendFunctions().

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

◆ qt_transform_image_argb32_on_argb32()

void qt_transform_image_argb32_on_argb32 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
const QTransform & targetRectTransform,
int const_alpha )

Definition at line 527 of file qblendfunctions.cpp.

References qt_transform_image().

Referenced by qInitBlendFunctions().

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

◆ qt_transform_image_argb32_on_rgb16()

void qt_transform_image_argb32_on_rgb16 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
const QTransform & targetRectTransform,
int const_alpha )

Definition at line 484 of file qblendfunctions.cpp.

References qt_transform_image().

Referenced by qInitBlendFunctions().

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

◆ qt_transform_image_rgb16_on_rgb16()

void qt_transform_image_rgb16_on_rgb16 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
const QTransform & targetRectTransform,
int const_alpha )

Definition at line 463 of file qblendfunctions.cpp.

References qt_transform_image().

Referenced by qInitBlendFunctions().

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

◆ qt_transform_image_rgb32_on_rgb32()

void qt_transform_image_rgb32_on_rgb32 ( uchar * destPixels,
int dbpl,
const uchar * srcPixels,
int sbpl,
const QRectF & targetRect,
const QRectF & sourceRect,
const QRect & clip,
const QTransform & targetRectTransform,
int const_alpha )

Definition at line 506 of file qblendfunctions.cpp.

References qt_transform_image().

Referenced by qInitBlendFunctions().

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

Variable Documentation

◆ qBlendFunctions

◆ qScaleFunctions

◆ qTransformFunctions