Qt 4.8
|
#include <qglobal.h>
#include <QDebug>
#include "qpainter.h"
#include "qpixmap.h"
#include "qpixmapfilter_p.h"
#include "qvarlengtharray.h"
#include "private/qapplication_p.h"
#include "private/qgraphicssystem_p.h"
#include "private/qpaintengineex_p.h"
#include "private/qpaintengine_raster_p.h"
#include "qmath.h"
#include "private/qmath_p.h"
#include "private/qmemrotate_p.h"
#include "private/qdrawhelper_p.h"
Go to the source code of this file.
Classes | |
class | QPixmapBlurFilterPrivate |
class | QPixmapColorizeFilterPrivate |
class | QPixmapConvolutionFilterPrivate |
class | QPixmapDropShadowFilterPrivate |
class | QPixmapFilterPrivate |
Macros | |
#define | AVG(a, b) ( ((((a)^(b)) & 0xfefefefeUL) >> 1) + ((a)&(b)) ) |
#define | AVG16(a, b) ( ((((a)^(b)) & 0xf7deUL) >> 1) + ((a)&(b)) ) |
#define | Z_MASK (0xff << zprec) |
#define | ZA_MASK (0xff << (zprec + aprec)) |
Functions | |
static void | convolute (QImage *destImage, const QPointF &pos, const QImage &srcImage, const QRectF &srcRect, QPainter::CompositionMode mode, qreal *kernel, int kernelWidth, int kernelHeight) |
template<int aprec, int zprec, bool alphaOnly> | |
void | expblur (QImage &img, qreal radius, bool improvedQuality=false, int transposed=0) |
static void | grayscale (const QImage &image, QImage &dest, const QRect &rect=QRect()) |
Q_GUI_EXPORT void | qt_blurImage (QPainter *p, QImage &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed=0) |
Q_GUI_EXPORT void | qt_blurImage (QImage &blurImage, qreal radius, bool quality, int transposed=0) |
template<int aprec, int zprec> | |
void | qt_blurinner (uchar *bptr, int &zR, int &zG, int &zB, int &zA, int alpha) |
template<int aprec, int zprec> | |
void | qt_blurinner_alphaOnly (uchar *bptr, int &z, int alpha) |
template<int aprec, int zprec, bool alphaOnly> | |
void | qt_blurrow (QImage &im, int line, int alpha) |
Q_GUI_EXPORT QImage | qt_halfScaled (const QImage &source) |
Q_GUI_EXPORT bool | qt_scaleForTransform (const QTransform &transform, qreal *scale) |
template<int shift> | |
int | qt_static_shift (int value) |
Variables | |
const int | alphaIndex = (QSysInfo::ByteOrder == QSysInfo::BigEndian ? 0 : 3) |
const qreal | radiusScale = qreal(2.5) |
Definition at line 794 of file qpixmapfilter.cpp.
Referenced by qt_halfScaled().
Definition at line 795 of file qpixmapfilter.cpp.
Referenced by qt_halfScaled().
#define Z_MASK (0xff << zprec) |
Referenced by qt_blurinner().
#define ZA_MASK (0xff << (zprec + aprec)) |
Referenced by qt_blurinner().
|
static |
Definition at line 322 of file qpixmapfilter.cpp.
Referenced by QPixmapConvolutionFilter::draw().
void expblur | ( | QImage & | img, |
qreal | radius, | ||
bool | improvedQuality = false , |
||
int | transposed = 0 |
||
) |
Definition at line 721 of file qpixmapfilter.cpp.
Definition at line 977 of file qpixmapfilter.cpp.
Referenced by QPixmapColorizeFilter::draw(), and QTiffHandler::read().
Q_GUI_EXPORT void qt_blurImage | ( | QPainter * | p, |
QImage & | blurImage, | ||
qreal | radius, | ||
bool | quality, | ||
bool | alphaOnly, | ||
int | transposed = 0 |
||
) |
Definition at line 885 of file qpixmapfilter.cpp.
Referenced by QPixmapBlurFilter::draw(), and QPixmapDropShadowFilter::draw().
Q_GUI_EXPORT void qt_blurImage | ( | QImage & | blurImage, |
qreal | radius, | ||
bool | quality, | ||
int | transposed = 0 |
||
) |
Definition at line 912 of file qpixmapfilter.cpp.
Referenced by QGLPixmapBlurFilter::processGL(), and QGLPixmapDropShadowFilter::processGL().
|
inline |
Definition at line 631 of file qpixmapfilter.cpp.
|
inline |
Definition at line 664 of file qpixmapfilter.cpp.
|
inline |
Definition at line 673 of file qpixmapfilter.cpp.
Q_GUI_EXPORT QImage qt_halfScaled | ( | const QImage & | source | ) |
Definition at line 797 of file qpixmapfilter.cpp.
Referenced by QGLBlurTextureInfo::paddedImage(), QGLPixmapBlurFilter::processGL(), QGLPixmapDropShadowFilter::processGL(), and qt_blurImage().
Q_GUI_EXPORT bool qt_scaleForTransform | ( | const QTransform & | transform, |
qreal * | scale | ||
) |
Definition at line 2407 of file qtransform.cpp.
Referenced by QPixmapBlurFilter::draw(), qt_blurImage(), and QX11PaintEngine::updateMatrix().
|
inline |
Definition at line 620 of file qpixmapfilter.cpp.
Referenced by qt_blurinner().
const int alphaIndex = (QSysInfo::ByteOrder == QSysInfo::BigEndian ? 0 : 3) |
Definition at line 661 of file qpixmapfilter.cpp.
Referenced by qt_blurrow().
Definition at line 607 of file qpixmapfilter.cpp.
Referenced by QPixmapBlurFilter::boundingRectFor(), and QPixmapBlurFilter::draw().