Qt 4.8
|
#include "qimage.h"
#include "qdatastream.h"
#include "qbuffer.h"
#include "qmap.h"
#include "qmatrix.h"
#include "qtransform.h"
#include "qimagereader.h"
#include "qimagewriter.h"
#include "qstringlist.h"
#include "qvariant.h"
#include "qimagepixmapcleanuphooks_p.h"
#include <ctype.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <private/qdrawhelper_p.h>
#include <private/qmemrotate_p.h>
#include <private/qpixmapdata_p.h>
#include <private/qimagescale_p.h>
#include <private/qsimd_p.h>
#include <qhash.h>
#include <private/qpaintengine_raster_p.h>
#include <private/qimage_p.h>
#include <private/qfont_p.h>
Go to the source code of this file.
Classes | |
struct | QRgbMap |
Macros | |
#define | CONVERT_DECL(DST, SRC) |
#define | CONVERT_PTR(DST, SRC) convert_##SRC##_to_##DST |
#define | DITHER(p, m) ((uchar) ((p * (m) + 127) / 255)) |
#define | DITHER(p, d, m) ((uchar) ((((256 * (m) + (m) + 1)) * (p) + (d)) >> 16)) |
#define | INDEXOF(r, g, b) (((r)*(MAX_G+1)+(g))*(MAX_B+1)+(b)) |
#define | IWX_LSB(b) |
#define | IWX_MSB(b) |
#define | IWX_PIX(b) |
#define | MAX_B 5 |
#define | MAX_G 5 |
#define | MAX_R 5 |
#define | PIX(x, y) (*((QRgb*)scanLine(y)+x) & 0x00ffffff) |
#define | QIMAGE_SANITYCHECK_MEMORY(image) |
Typedefs | |
typedef void(* | Image_Converter) (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
typedef bool(* | InPlace_Image_Converter) (QImageData *data, Qt::ImageConversionFlags) |
Functions | |
static bool | checkPixelSize (const QImage::Format format) |
static int | closestMatch (QRgb pixel, const QVector< QRgb > &clut) |
static void | convert_ARGB_PM_to_ARGB (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
static void | convert_ARGB_PM_to_Indexed8 (QImageData *dst, const QImageData *src, Qt::ImageConversionFlags flags) |
static void | convert_ARGB_PM_to_Mono (QImageData *dst, const QImageData *src, Qt::ImageConversionFlags flags) |
static void | convert_ARGB_PM_to_RGB (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
static void | convert_ARGB_to_ARGB_PM (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
static bool | convert_ARGB_to_ARGB_PM_inplace (QImageData *data, Qt::ImageConversionFlags) |
static void | convert_ARGB_to_Indexed8 (QImageData *dst, const QImageData *src, Qt::ImageConversionFlags flags) |
static bool | convert_indexed8_to_ARGB_PM_inplace (QImageData *data, Qt::ImageConversionFlags) |
static bool | convert_indexed8_to_RGB16_inplace (QImageData *data, Qt::ImageConversionFlags) |
static bool | convert_indexed8_to_RGB_inplace (QImageData *data, Qt::ImageConversionFlags) |
static void | convert_Indexed8_to_X32 (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
static void | convert_Mono_to_Indexed8 (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
static void | convert_Mono_to_X32 (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
static void | convert_RGB_to_Indexed8 (QImageData *dst, const QImageData *src, Qt::ImageConversionFlags flags) |
static bool | convert_RGB_to_RGB16_inplace (QImageData *data, Qt::ImageConversionFlags) |
static void | convert_X_to_Mono (QImageData *dst, const QImageData *src, Qt::ImageConversionFlags flags) |
static QImage | convertWithPalette (const QImage &src, QImage::Format format, const QVector< QRgb > &clut) |
static void | dither_to_Mono (QImageData *dst, const QImageData *src, Qt::ImageConversionFlags flags, bool fromalpha) |
static QVector< QRgb > | fix_color_table (const QVector< QRgb > &ctbl, QImage::Format format) |
static void | mask_alpha_converter (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
QDataStream & | operator<< (QDataStream &s, const QImage &image) |
QDataStream & | operator>> (QDataStream &s, QImage &image) |
static int | pixel_distance (QRgb p1, QRgb p2) |
void | qGamma_correct_back_to_linear_cs (QImage *image) |
void | qInitImageConversions () |
const uchar * | qt_get_bitflip_array () |
const QVector< QRgb > * | qt_image_colortable (const QImage &image) |
Q_GUI_EXPORT qint64 | qt_image_id (const QImage &image) |
bool | qt_read_xpm_image_or_array (QIODevice *device, const char *const *source, QImage &image) |
bool | qt_xForm_helper (const QTransform &trueMat, int xoffset, int type, int depth, uchar *dptr, int dbpl, int p_inc, int dHeight, const uchar *sptr, int sbpl, int sWidth, int sHeight) |
static QImage | rotated180 (const QImage &src) |
static QImage | rotated270 (const QImage &src) |
static QImage | rotated90 (const QImage &src) |
static QImage | smoothScaled (const QImage &source, int w, int h) |
static void | swap_bit_order (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
Variables | |
static const uchar | bitflip [256] |
static Image_Converter | converter_map [QImage::NImageFormats][QImage::NImageFormats] |
static InPlace_Image_Converter | inplace_converter_map [QImage::NImageFormats][QImage::NImageFormats] |
QBasicAtomicInt | qimage_serial_number = Q_BASIC_ATOMIC_INITIALIZER(1) |
#define CONVERT_DECL | ( | DST, | |
SRC | |||
) |
Definition at line 3456 of file qimage.cpp.
#define CONVERT_PTR | ( | DST, | |
SRC | |||
) | convert_##SRC##_to_##DST |
Definition at line 3490 of file qimage.cpp.
#define DITHER | ( | p, | |
m | |||
) | ((uchar) ((p * (m) + 127) / 255)) |
Referenced by convert_RGB_to_Indexed8().
Referenced by convert_RGB_to_Indexed8().
#define IWX_LSB | ( | b | ) |
Definition at line 6083 of file qimage.cpp.
Referenced by qt_xForm_helper().
#define IWX_MSB | ( | b | ) |
Definition at line 6074 of file qimage.cpp.
Referenced by qt_xForm_helper().
#define IWX_PIX | ( | b | ) |
Definition at line 6092 of file qimage.cpp.
Referenced by qt_xForm_helper().
#define MAX_B 5 |
Referenced by convert_RGB_to_Indexed8().
#define MAX_G 5 |
Referenced by convert_RGB_to_Indexed8().
#define MAX_R 5 |
Referenced by convert_RGB_to_Indexed8().
#define PIX | ( | x, | |
y | |||
) | (*((QRgb*)scanLine(y)+x) & 0x00ffffff) |
Referenced by QImage::createHeuristicMask(), and QX11PixmapData::fromImage().
#define QIMAGE_SANITYCHECK_MEMORY | ( | image | ) |
Definition at line 105 of file qimage.cpp.
Referenced by QImage::alphaChannel(), QImage::convertToFormat(), convertWithPalette(), QImage::createHeuristicMask(), QImage::createMaskFromColor(), QImage::mirrored(), QImage::rgbSwapped(), rotated270(), rotated90(), QImage::setPixel(), and QImage::transformed().
typedef void(* Image_Converter) (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
Definition at line 2432 of file qimage.cpp.
typedef bool(* InPlace_Image_Converter) (QImageData *data, Qt::ImageConversionFlags) |
Definition at line 2434 of file qimage.cpp.
|
inlinestatic |
Definition at line 76 of file qimage.cpp.
Referenced by QImageData::create().
Definition at line 4015 of file qimage.cpp.
Referenced by convertWithPalette(), QIconLoaderEngine::entryForSize(), and QNetworkAuthenticationCache::insert().
|
static |
Definition at line 2663 of file qimage.cpp.
Referenced by convert_ARGB_PM_to_Indexed8(), and convert_ARGB_PM_to_Mono().
|
static |
Definition at line 3329 of file qimage.cpp.
|
static |
Definition at line 3049 of file qimage.cpp.
|
static |
Definition at line 2687 of file qimage.cpp.
|
static |
Definition at line 2436 of file qimage.cpp.
|
static |
Definition at line 2460 of file qimage.cpp.
|
static |
Definition at line 3336 of file qimage.cpp.
|
static |
Definition at line 2479 of file qimage.cpp.
|
static |
Definition at line 2580 of file qimage.cpp.
|
static |
Definition at line 2531 of file qimage.cpp.
|
static |
Definition at line 3341 of file qimage.cpp.
|
static |
Definition at line 3416 of file qimage.cpp.
|
static |
Definition at line 3374 of file qimage.cpp.
|
static |
Definition at line 3071 of file qimage.cpp.
Referenced by convert_ARGB_PM_to_Indexed8(), and convert_ARGB_to_Indexed8().
|
static |
Definition at line 2635 of file qimage.cpp.
|
static |
Definition at line 3044 of file qimage.cpp.
|
static |
Definition at line 4028 of file qimage.cpp.
Referenced by QImage::convertToFormat().
|
static |
Definition at line 2774 of file qimage.cpp.
Referenced by convert_ARGB_PM_to_Mono(), convert_RGB_to_Indexed8(), convert_X_to_Mono(), and QImage::createAlphaMask().
|
static |
Definition at line 2754 of file qimage.cpp.
Referenced by convert_Indexed8_to_X32(), and convert_Mono_to_X32().
|
static |
Definition at line 2732 of file qimage.cpp.
|
related |
Definition at line 5406 of file qimage.cpp.
Referenced by QImage::setPixel().
|
related |
Definition at line 5435 of file qimage.cpp.
Referenced by QImage::setPixel().
Definition at line 4001 of file qimage.cpp.
Referenced by closestMatch().
void qGamma_correct_back_to_linear_cs | ( | QImage * | image | ) |
Definition at line 3938 of file qimage.cpp.
Referenced by QFontEngineMac::alphaRGBMapForGlyph().
void qInitImageConversions | ( | ) |
Definition at line 3909 of file qimage.cpp.
Referenced by QApplication::QApplication().
const uchar* qt_get_bitflip_array | ( | ) |
Definition at line 765 of file qimage.cpp.
Referenced by QX11PixmapData::bitmap_to_mask().
Q_GUI_EXPORT qint64 qt_image_id | ( | const QImage & | image | ) |
Definition at line 117 of file qimage.cpp.
Definition at line 1025 of file qxpmhandler.cpp.
Referenced by QImage::QImage().
bool qt_xForm_helper | ( | const QTransform & | trueMat, |
int | xoffset, | ||
int | type, | ||
int | depth, | ||
uchar * | dptr, | ||
int | dbpl, | ||
int | p_inc, | ||
int | dHeight, | ||
const uchar * | sptr, | ||
int | sbpl, | ||
int | sWidth, | ||
int | sHeight | ||
) |
Definition at line 6100 of file qimage.cpp.
Referenced by QMacPixmapData::macCreatePixels(), QX11PixmapData::transformed(), and QImage::transformed().
Definition at line 6681 of file qimage.cpp.
Referenced by QImage::transformed().
Definition at line 6686 of file qimage.cpp.
Referenced by QImage::transformed().
Definition at line 6626 of file qimage.cpp.
Referenced by QImage::transformed().
Definition at line 6611 of file qimage.cpp.
Referenced by QImage::transformed().
|
static |
Definition at line 2711 of file qimage.cpp.
|
static |
Definition at line 736 of file qimage.cpp.
Referenced by dither_to_Mono(), QImage::mirrored(), qt_get_bitflip_array(), QImage::setPixel(), and swap_bit_order().
|
static |
Definition at line 3513 of file qimage.cpp.
|
static |
Definition at line 3812 of file qimage.cpp.
QBasicAtomicInt qimage_serial_number = Q_BASIC_ATOMIC_INITIALIZER(1) |
Definition at line 127 of file qimage.cpp.