![]() |
Qt 6.x
The Qt SDK
|
#include <QtGui/private/qtguiglobal_p.h>
#include <QtGui/qcolorspace.h>
#include <QtGui/qimage.h>
#include <QtCore/private/qnumeric_p.h>
#include <QtCore/qlist.h>
#include <QtCore/qmap.h>
Go to the source code of this file.
Classes | |
struct | QImageData |
struct | QImageData::ImageSizeParameters |
Typedefs | |
typedef void(* | Image_Converter) (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
typedef bool(* | InPlace_Image_Converter) (QImageData *data, Qt::ImageConversionFlags) |
Variables | |
Image_Converter | qimage_converter_map [QImage::NImageFormats][QImage::NImageFormats] |
InPlace_Image_Converter | qimage_inplace_converter_map [QImage::NImageFormats][QImage::NImageFormats] |
typedef void(* Image_Converter) (QImageData *dest, const QImageData *src, Qt::ImageConversionFlags) |
Definition at line 117 of file qimage_p.h.
typedef bool(* InPlace_Image_Converter) (QImageData *data, Qt::ImageConversionFlags) |
Definition at line 118 of file qimage_p.h.
void convert_generic | ( | QImageData * | dest, |
const QImageData * | src, | ||
Qt::ImageConversionFlags | flags | ||
) |
Definition at line 135 of file qimage_conversions.cpp.
References QSemaphore::acquire(), QPixelLayout::bpp, QPixelLayout::BPP32, BufferSize, QImageData::bytes_per_line, contains(), QThread::currentThread(), QImageData::data, Qt::Dither_Mask, fetchRGB32ToARGB32PM(), QPixelLayout::fetchToARGB32PM, QImageData::format, QImage::Format_Indexed8, QImage::Format_RGB32, QPixelLayout::hasAlphaChannel, i, Qt::PreferDither, QPixelLayout::premultiplied, ptr(), Q_ASSERT, qCpuHasFeature, qMin(), qPixelLayouts, QThreadPoolPrivate::qtGuiInstance(), QSemaphore::release(), QThreadPool::start(), QPixelLayout::storeFromARGB32PM, QPixelLayout::storeFromRGB32, storeRGB32FromARGB32(), storeRGB32FromARGB32PM(), Qt::ThresholdDither, QDitherInfo::x, and QDitherInfo::y.
Referenced by convert_ARGB_PM_to_Indexed8(), convert_ARGB_PM_to_Mono(), and QImage::convertToFormat_helper().
bool convert_generic_inplace | ( | QImageData * | data, |
QImage::Format | dst_format, | ||
Qt::ImageConversionFlags | flags | ||
) |
Definition at line 337 of file qimage_conversions.cpp.
References QSemaphore::acquire(), QPixelLayout::bpp, QPixelLayout::BPP32, QPixelLayout::BPP64, BufferSize, QImageData::calculateImageParameters(), QThreadPool::contains(), QThread::currentThread(), Qt::Dither_Mask, fetchRGB32ToARGB32PM(), QPixelLayout::fetchToARGB32PM, QImage::Format_Indexed8, QImage::Format_RGB32, QPixelLayout::hasAlphaChannel, i, Qt::PreferDither, QPixelLayout::premultiplied, ptr(), Q_ASSERT, qCpuHasFeature, qMin(), qPixelLayouts, qt_depthForFormat(), qt_highColorPrecision(), QThreadPoolPrivate::qtGuiInstance(), QSemaphore::release(), QThreadPool::start(), QPixelLayout::storeFromARGB32PM, QPixelLayout::storeFromRGB32, storeRGB32FromARGB32(), storeRGB32FromARGB32PM(), Qt::ThresholdDither, QDitherInfo::x, and QDitherInfo::y.
Referenced by QImageData::convertInPlace().
bool convert_generic_inplace_over_rgb64 | ( | QImageData * | data, |
QImage::Format | dst_format, | ||
Qt::ImageConversionFlags | |||
) |
Definition at line 465 of file qimage_conversions.cpp.
References QSemaphore::acquire(), QPixelLayout::bpp, QPixelLayout::BPP64, BufferSize, QImageData::calculateImageParameters(), QThreadPool::contains(), QThread::currentThread(), QPixelLayout::fetchToRGBA64PM, QImage::Format_Indexed8, QPixelLayout::hasAlphaChannel, i, QPixelLayout::premultiplied, ptr(), Q_ASSERT, qMin(), qPixelLayouts, qStoreFromRGBA64PM, qt_depthForFormat(), QThreadPoolPrivate::qtGuiInstance(), QSemaphore::release(), and QThreadPool::start().
Referenced by QImageData::convertInPlace().
void convert_generic_over_rgb64 | ( | QImageData * | dest, |
const QImageData * | src, | ||
Qt::ImageConversionFlags | |||
) |
Definition at line 227 of file qimage_conversions.cpp.
References QSemaphore::acquire(), QPixelLayout::bpp, QPixelLayout::BPP64, BufferSize, QImageData::bytes_per_line, contains(), QThread::currentThread(), QImageData::data, QPixelLayout::fetchToRGBA64PM, QImageData::format, QImage::Format_Indexed8, i, ptr(), Q_ASSERT, qMin(), qPixelLayouts, qStoreFromRGBA64PM, QThreadPoolPrivate::qtGuiInstance(), QSemaphore::release(), and QThreadPool::start().
Referenced by QImage::convertToFormat_helper().
void dither_to_Mono | ( | QImageData * | dst, |
const QImageData * | src, | ||
Qt::ImageConversionFlags | flags, | ||
bool | fromalpha | ||
) |
Definition at line 1612 of file qimage_conversions.cpp.
References Qt::AlphaDither_Mask, bitflip, d, QScopedPointer< T, Cleanup >::data(), Diffuse, Qt::DiffuseAlphaDither, Qt::Dither_Mask, QImage::Format_Mono, QImage::Format_MonoLSB, i, j, Qt::OrderedAlphaDither, Qt::OrderedDither, Q_ASSERT, qGray(), qt_bayer_matrix, and Qt::ThresholdDither.
Referenced by convert_ARGB_PM_to_Mono(), convert_RGB_to_Indexed8(), and convert_X_to_Mono().
Definition at line 79 of file qimage_conversions.cpp.
References QGuiApplicationPrivate::colorProfileForA32Text(), QGuiApplicationPrivate::instance(), QRgb, and QColorTrcLut::toLinear().
Referenced by QCoreTextFontEngine::imageForGlyph().
|
inline |
Definition at line 261 of file qimage_p.h.
References QImage::Format_A2BGR30_Premultiplied, QImage::Format_A2RGB30_Premultiplied, QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_ARGB4444_Premultiplied, QImage::Format_ARGB6666_Premultiplied, QImage::Format_ARGB8555_Premultiplied, QImage::Format_ARGB8565_Premultiplied, QImage::Format_BGR30, QImage::Format_BGR888, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Invalid, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB30, QImage::Format_RGB32, QImage::Format_RGB444, QImage::Format_RGB555, QImage::Format_RGB666, QImage::Format_RGB888, QImage::Format_RGBA16FPx4, QImage::Format_RGBA16FPx4_Premultiplied, QImage::Format_RGBA32FPx4, QImage::Format_RGBA32FPx4_Premultiplied, QImage::Format_RGBA64, QImage::Format_RGBA64_Premultiplied, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, QImage::Format_RGBX16FPx4, QImage::Format_RGBX32FPx4, QImage::Format_RGBX64, QImage::Format_RGBX8888, and QImage::NImageFormats.
Referenced by qt_alphaVersionForPainting(), and qt_maybeAlphaVersionWithSameDepth().
|
inline |
Definition at line 377 of file qimage_p.h.
References QImage::Format_ARGB32_Premultiplied, qt_alphaVersion(), and qt_depthForFormat().
Referenced by QRasterPlatformPixmap::createPixmapForImage(), QRasterPlatformPixmap::fill(), and QImage::setAlphaChannel().
|
inline |
Definition at line 140 of file qimage_p.h.
References QImage::Format_A2BGR30_Premultiplied, QImage::Format_A2RGB30_Premultiplied, QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_ARGB4444_Premultiplied, QImage::Format_ARGB6666_Premultiplied, QImage::Format_ARGB8555_Premultiplied, QImage::Format_ARGB8565_Premultiplied, QImage::Format_BGR30, QImage::Format_BGR888, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Invalid, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB30, QImage::Format_RGB32, QImage::Format_RGB444, QImage::Format_RGB555, QImage::Format_RGB666, QImage::Format_RGB888, QImage::Format_RGBA16FPx4, QImage::Format_RGBA16FPx4_Premultiplied, QImage::Format_RGBA32FPx4, QImage::Format_RGBA32FPx4_Premultiplied, QImage::Format_RGBA64, QImage::Format_RGBA64_Premultiplied, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, QImage::Format_RGBX16FPx4, QImage::Format_RGBX32FPx4, QImage::Format_RGBX64, QImage::Format_RGBX8888, and QImage::NImageFormats.
Referenced by QImageIOHandler::allocateImage(), QImage::bitPlaneCount(), QRasterPaintEnginePrivate::blitImage(), convert_generic_inplace(), convert_generic_inplace_over_rgb64(), QImageData::create(), qt_alphaVersionForPainting(), qt_maybeAlphaVersionWithSameDepth(), qt_opaqueVersionForPainting(), QImage::reinterpretAsFormat(), QDistanceField::toImage(), and QSharedImageLoaderPrivate::verifyMem().
|
inline |
Definition at line 346 of file qimage_p.h.
References QImage::Format_RGBA16FPx4, QImage::Format_RGBA16FPx4_Premultiplied, QImage::Format_RGBA32FPx4, QImage::Format_RGBA32FPx4_Premultiplied, QImage::Format_RGBX16FPx4, and QImage::Format_RGBX32FPx4.
Referenced by QImage::applyColorTransform(), QImageData::convertInPlace(), QImage::convertToFormat_helper(), and qSmoothScaleImage().
const uchar * qt_get_bitflip_array | ( | ) |
Definition at line 74 of file qimage_conversions.cpp.
References bitflip.
Referenced by do_mirror().
Q_GUI_EXPORT QMap< QString, QString > qt_getImageText | ( | const QImage & | image, |
const QString & | description | ||
) |
Definition at line 5753 of file qimage.cpp.
References QString::contains(), QString::insert(), qt_getImageTextFromDescription(), and text.
Referenced by set_text(), and set_text().
Definition at line 5764 of file qimage.cpp.
References QString::insert(), QString::left(), QString::split(), and text.
Referenced by QImageReaderPrivate::getText(), and qt_getImageText().
|
inline |
Definition at line 318 of file qimage_p.h.
References QImage::Format_A2BGR30_Premultiplied, QImage::Format_A2RGB30_Premultiplied, QImage::Format_ARGB32, QImage::Format_BGR30, QImage::Format_Grayscale16, QImage::Format_RGB30, QImage::Format_RGBA16FPx4, QImage::Format_RGBA16FPx4_Premultiplied, QImage::Format_RGBA32FPx4, QImage::Format_RGBA32FPx4_Premultiplied, QImage::Format_RGBA64, QImage::Format_RGBA64_Premultiplied, QImage::Format_RGBA8888, QImage::Format_RGBX16FPx4, QImage::Format_RGBX32FPx4, and QImage::Format_RGBX64.
Referenced by convert_generic_inplace(), QImageData::convertInPlace(), and QImage::convertToFormat_helper().
|
inline |
Definition at line 362 of file qimage_p.h.
References qt_alphaVersion(), and qt_depthForFormat().
Referenced by QRasterPaintEnginePrivate::canUseImageBlitting(), and QWindowsBackingStore::resize().
|
inline |
Definition at line 204 of file qimage_p.h.
References QImage::Format_A2BGR30_Premultiplied, QImage::Format_A2RGB30_Premultiplied, QImage::Format_Alpha8, QImage::Format_ARGB32, QImage::Format_ARGB32_Premultiplied, QImage::Format_ARGB4444_Premultiplied, QImage::Format_ARGB6666_Premultiplied, QImage::Format_ARGB8555_Premultiplied, QImage::Format_ARGB8565_Premultiplied, QImage::Format_BGR30, QImage::Format_BGR888, QImage::Format_Grayscale16, QImage::Format_Grayscale8, QImage::Format_Indexed8, QImage::Format_Invalid, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB16, QImage::Format_RGB30, QImage::Format_RGB32, QImage::Format_RGB444, QImage::Format_RGB555, QImage::Format_RGB666, QImage::Format_RGB888, QImage::Format_RGBA16FPx4, QImage::Format_RGBA16FPx4_Premultiplied, QImage::Format_RGBA32FPx4, QImage::Format_RGBA32FPx4_Premultiplied, QImage::Format_RGBA64, QImage::Format_RGBA64_Premultiplied, QImage::Format_RGBA8888, QImage::Format_RGBA8888_Premultiplied, QImage::Format_RGBX16FPx4, QImage::Format_RGBX32FPx4, QImage::Format_RGBX64, QImage::Format_RGBX8888, and QImage::NImageFormats.
Referenced by qt_opaqueVersionForPainting().
|
inline |
Definition at line 368 of file qimage_p.h.
References QImage::Format_RGB32, qt_depthForFormat(), and qt_opaqueVersion().
Referenced by QRasterPlatformPixmap::createPixmapForImage().
|
extern |
Definition at line 2461 of file qimage_conversions.cpp.
Referenced by QImageData::convertInPlace(), QImage::convertToFormat_helper(), and qInitImageConversions().
|
extern |
Definition at line 2462 of file qimage_conversions.cpp.
Referenced by QImageData::convertInPlace(), and qInitImageConversions().