![]() |
Qt 6.x
The Qt SDK
|
#include <qimage_p.h>
Classes | |
struct | ImageSizeParameters |
Public Member Functions | |
QImageData () | |
~QImageData () | |
bool | checkForAlphaPixels () const |
bool | convertInPlace (QImage::Format newFormat, Qt::ImageConversionFlags) |
bool | doImageIO (const QImage *image, QImageWriter *io, int quality) const |
Static Public Member Functions | |
static QImageData * | create (const QSize &size, QImage::Format format) |
static QImageData * | create (uchar *data, int w, int h, qsizetype bpl, QImage::Format format, bool readOnly, QImageCleanupFunction cleanupFunction=nullptr, void *cleanupInfo=nullptr) |
static QImageData * | get (QImage &img) noexcept |
static const QImageData * | get (const QImage &img) noexcept |
static ImageSizeParameters | calculateImageParameters (qsizetype width, qsizetype height, qsizetype depth) |
Public Attributes | |
QAtomicInt | ref |
int | width |
int | height |
int | depth |
qsizetype | nbytes |
qreal | devicePixelRatio |
QList< QRgb > | colortable |
uchar * | data |
QImage::Format | format |
qsizetype | bytes_per_line |
int | ser_no |
int | detach_no |
qreal | dpmx |
qreal | dpmy |
QPoint | offset |
uint | own_data: 1 |
uint | ro_data: 1 |
uint | has_alpha_clut: 1 |
uint | is_cached: 1 |
QImageCleanupFunction | cleanupFunction |
void * | cleanupInfo |
QMap< QString, QString > | text |
QPaintEngine * | paintEngine |
QColorSpace | colorSpace |
Definition at line 29 of file qimage_p.h.
QImageData::QImageData | ( | ) |
Definition at line 89 of file qimage.cpp.
Referenced by create().
QImageData::~QImageData | ( | ) |
Definition at line 154 of file qimage.cpp.
References cleanupFunction, cleanupInfo, detach_no, QImagePixmapCleanupHooks::executeImageHooks(), is_cached, own_data, paintEngine, and ser_no.
|
inlinestatic |
Definition at line 87 of file qimage_p.h.
References bytes_per_line, depth, qAddOverflow(), and qMulOverflow().
Referenced by QImageIOHandler::allocateImage(), convert_generic_inplace(), convert_generic_inplace_over_rgb64(), and create().
bool QImageData::checkForAlphaPixels | ( | ) | const |
Definition at line 170 of file qimage.cpp.
References bytes_per_line, data, 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, has_alpha_clut, QImage::NImageFormats, and width.
Referenced by QRasterPlatformPixmap::createPixmapForImage().
bool QImageData::convertInPlace | ( | QImage::Format | newFormat, |
Qt::ImageConversionFlags | flags | ||
) |
Definition at line 5183 of file qimage.cpp.
References convert_generic_inplace(), convert_generic_inplace_over_rgb64(), format, QImage::Format_Indexed8, own_data, qimage_converter_map, qimage_inplace_converter_map, qPixelLayouts, qt_fpColorPrecision(), and qt_highColorPrecision().
Referenced by QImage::convertToFormat_inplace(), and QImage::invertPixels().
|
static |
Creates a new image data. Returns \nullptr if invalid parameters are give or anything else failed.
Referenced by QImage::QImage(), QImage::QImage(), QImage::QImage(), QImage::QImage(), QImage::QImage(), convert_ARGB_PM_to_Indexed8(), convert_ARGB_PM_to_Mono(), and convert_RGB_to_Indexed8().
|
static |
Definition at line 804 of file qimage.cpp.
References QImageData(), calculateImageParameters(), cleanupFunction, cleanupInfo, d, data, depth, format, height, QImage::NImageFormats, qt_depthForFormat(), and width.
bool QImageData::doImageIO | ( | const QImage * | image, |
QImageWriter * | io, | ||
int | quality | ||
) | const |
Definition at line 3900 of file qimage.cpp.
References QImageWriter::errorString(), qMin(), qPrintable, qWarning, QImageWriter::setQuality(), and QImageWriter::write().
Referenced by QImage::save(), and QImage::save().
|
inlinestaticnoexcept |
Definition at line 36 of file qimage_p.h.
|
inlinestaticnoexcept |
Definition at line 35 of file qimage_p.h.
Referenced by convertWithPalette().
qsizetype QImageData::bytes_per_line |
Definition at line 48 of file qimage_p.h.
Referenced by QImage::applyColorTransform(), QImage::bytesPerLine(), calculateImageParameters(), checkForAlphaPixels(), QImage::constScanLine(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_RGBA64(), convert_ARGB_to_A2RGB30(), convert_ARGB_to_gray16(), convert_ARGB_to_gray8(), convert_ARGB_to_RGBA(), convert_ARGB_to_RGBx(), convert_generic(), convert_generic_over_rgb64(), convert_gray16_to_RGBA64(), convert_Indexed8_to_Alpha8(), convert_Indexed8_to_Grayscale8(), convert_Indexed8_to_X32(), convert_Mono_to_Indexed8(), convert_Mono_to_X32(), convert_passthrough(), convert_RGB888_to_RGB(), convert_RGB888_to_RGB32_mips_dspr2(), convert_RGBA16FPM_to_RGBA16F(), convert_RGBA64_to_ARGB32(), convert_RGBA64_to_gray16(), convert_RGBA64_to_gray8(), convert_RGBA64_to_RGBx64(), convert_RGBA_to_ARGB(), convert_RGBA_to_RGB(), convert_rgbswap_generic(), copy_8bit_pixels(), QImage::fill(), QImage::fill(), QImage::invertPixels(), mask_alpha_converter(), mask_alpha_converter_RGBx(), QImage::operator==(), QImage::pixel(), QImage::scanLine(), QImage::scanLine(), and swap_bit_order().
QImageCleanupFunction QImageData::cleanupFunction |
Definition at line 61 of file qimage_p.h.
Referenced by ~QImageData(), and create().
void* QImageData::cleanupInfo |
Definition at line 62 of file qimage_p.h.
Referenced by ~QImageData(), and create().
QColorSpace QImageData::colorSpace |
Definition at line 76 of file qimage_p.h.
Referenced by QImage::colorSpace(), QImage::convertedToColorSpace(), QImage::convertToColorSpace(), QImage::operator==(), and QImage::setColorSpace().
Definition at line 45 of file qimage_p.h.
Referenced by QImage::allGray(), QImage::applyColorTransform(), QImage::color(), QImage::colorTable(), convert_Alpha8_to_Indexed8(), convert_Grayscale8_to_Indexed8(), convert_Mono_to_Indexed8(), QImage::fill(), QImage::isGrayscale(), QImage::metric(), QImage::mirrored_helper(), QImage::operator==(), QImage::pixel(), QImage::setColor(), QImage::setColorCount(), QImage::setPixel(), and swap_bit_order().
uchar* QImageData::data |
Definition at line 46 of file qimage_p.h.
Referenced by QImage::applyColorTransform(), QImage::bits(), QImage::bits(), checkForAlphaPixels(), QImage::constBits(), QImage::constScanLine(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_RGBA64(), convert_ARGB_to_A2RGB30(), convert_ARGB_to_gray16(), convert_ARGB_to_gray8(), convert_ARGB_to_RGBA(), convert_ARGB_to_RGBx(), convert_generic(), convert_generic_over_rgb64(), convert_gray16_to_RGBA64(), convert_Indexed8_to_Alpha8(), convert_Indexed8_to_Grayscale8(), convert_Indexed8_to_X32(), convert_Mono_to_Indexed8(), convert_Mono_to_X32(), convert_passthrough(), convert_RGB888_to_RGB(), convert_RGB888_to_RGB32_mips_dspr2(), convert_RGBA16FPM_to_RGBA16F(), convert_RGBA64_to_ARGB32(), convert_RGBA64_to_gray16(), convert_RGBA64_to_gray8(), convert_RGBA64_to_RGBx64(), convert_RGBA_to_ARGB(), convert_RGBA_to_RGB(), convert_rgbswap_generic(), copy_8bit_pixels(), create(), QImage::fill(), QImage::fill(), QImage::invertPixels(), mask_alpha_converter(), mask_alpha_converter_RGBx(), QImage::pixel(), QImage::scanLine(), QImage::scanLine(), and swap_bit_order().
int QImageData::depth |
Definition at line 42 of file qimage_p.h.
Referenced by calculateImageParameters(), create(), QImage::fill(), QImage::invertPixels(), QImage::metric(), QImage::operator==(), QImage::pixelIndex(), QImage::setAlphaChannel(), and QImage::setColor().
int QImageData::detach_no |
Definition at line 50 of file qimage_p.h.
Referenced by ~QImageData(), QImage::cacheKey(), QImage::detach(), and QImage::detachMetadata().
qreal QImageData::devicePixelRatio |
Definition at line 44 of file qimage_p.h.
Referenced by QImage::deviceIndependentSize(), QImage::devicePixelRatio(), QImage::metric(), and QImage::setDevicePixelRatio().
qreal QImageData::dpmx |
Definition at line 52 of file qimage_p.h.
Referenced by QImage::dotsPerMeterX(), QImage::metric(), and QImage::setDotsPerMeterX().
qreal QImageData::dpmy |
Definition at line 53 of file qimage_p.h.
Referenced by QImage::dotsPerMeterY(), QImage::metric(), and QImage::setDotsPerMeterY().
QImage::Format QImageData::format |
Definition at line 47 of file qimage_p.h.
Referenced by QImage::allGray(), QImage::bitPlaneCount(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_Alpha8_to_Indexed8(), convert_ARGB32_to_RGBA64(), convert_ARGB_to_A2RGB30(), convert_ARGB_to_gray16(), convert_ARGB_to_gray8(), convert_ARGB_to_RGBA(), convert_ARGB_to_RGBx(), convert_generic(), convert_generic_over_rgb64(), convert_gray16_to_RGBA64(), convert_Grayscale8_to_Indexed8(), convert_Indexed8_to_Alpha8(), convert_Indexed8_to_Grayscale8(), convert_Indexed8_to_X32(), convert_Mono_to_Indexed8(), convert_Mono_to_X32(), convert_RGB888_to_RGB(), convert_RGB888_to_RGB32_mips_dspr2(), convert_RGBA16FPM_to_RGBA16F(), convert_RGBA64_to_ARGB32(), convert_RGBA64_to_gray16(), convert_RGBA64_to_gray8(), convert_RGBA64_to_RGBx64(), convert_RGBA_to_ARGB(), convert_RGBA_to_RGB(), convertInPlace(), QImage::convertTo(), QImage::convertToFormat(), QImage::convertToFormat_helper(), create(), QImage::fill(), QImage::fill(), QImage::format(), QImage::invertPixels(), QImage::isGrayscale(), QImage::mirrored_helper(), QImage::operator==(), QImage::pixel(), QImage::pixelColor(), QImage::pixelIndex(), QImage::reinterpretAsFormat(), QImage::setAlphaChannel(), QImage::setPixel(), QImage::setPixelColor(), and swap_bit_order().
uint QImageData::has_alpha_clut |
Definition at line 58 of file qimage_p.h.
Referenced by checkForAlphaPixels(), convert_Mono_to_Indexed8(), QImage::hasAlphaChannel(), QImage::mirrored_helper(), and QImage::setColor().
int QImageData::height |
Definition at line 41 of file qimage_p.h.
Referenced by QImage::allGray(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_RGBA64(), convert_ARGB_to_A2RGB30(), convert_ARGB_to_gray16(), convert_ARGB_to_gray8(), convert_ARGB_to_RGBA(), convert_ARGB_to_RGBx(), convert_gray16_to_RGBA64(), convert_Indexed8_to_X32(), convert_Mono_to_Indexed8(), convert_Mono_to_X32(), convert_passthrough(), convert_RGB888_to_RGB(), convert_RGB888_to_RGB32_mips_dspr2(), convert_RGBA16FPM_to_RGBA16F(), convert_RGBA64_to_ARGB32(), convert_RGBA64_to_gray16(), convert_RGBA64_to_gray8(), convert_RGBA64_to_RGBx64(), convert_RGBA_to_ARGB(), convert_RGBA_to_RGB(), convert_rgbswap_generic(), QImage::convertToFormat_helper(), create(), QImage::deviceIndependentSize(), QImage::fill(), QImage::fill(), QImage::invertPixels(), mask_alpha_converter(), mask_alpha_converter_RGBx(), QImage::metric(), QImage::mirrored_helper(), QImage::mirrored_inplace(), QImage::operator==(), QImage::pixel(), swap_bit_order(), and QImage::valid().
uint QImageData::is_cached |
Definition at line 59 of file qimage_p.h.
Referenced by ~QImageData(), QImage::detach(), and QImage::detachMetadata().
qsizetype QImageData::nbytes |
Definition at line 43 of file qimage_p.h.
Referenced by QImage::invertPixels(), QImage::operator==(), QImage::sizeInBytes(), and swap_bit_order().
QPoint QImageData::offset |
Definition at line 54 of file qimage_p.h.
Referenced by QImage::offset(), and QImage::setOffset().
uint QImageData::own_data |
Definition at line 56 of file qimage_p.h.
Referenced by ~QImageData(), convertInPlace(), and QImage::mirrored_inplace().
QPaintEngine* QImageData::paintEngine |
Definition at line 74 of file qimage_p.h.
Referenced by ~QImageData(), QImage::paintEngine(), and QImage::setAlphaChannel().
QAtomicInt QImageData::ref |
Definition at line 38 of file qimage_p.h.
Referenced by QImage::QImage(), QImage::~QImage(), QImage::detach(), QImage::detachMetadata(), QImage::isDetached(), QImage::operator=(), and QImage::reinterpretAsFormat().
uint QImageData::ro_data |
Definition at line 57 of file qimage_p.h.
Referenced by QImage::detach().
int QImageData::ser_no |
Definition at line 49 of file qimage_p.h.
Referenced by ~QImageData(), and QImage::cacheKey().
Definition at line 70 of file qimage_p.h.
Referenced by QImage::setText(), QImage::text(), and QImage::textKeys().
int QImageData::width |
Definition at line 40 of file qimage_p.h.
Referenced by QImage::allGray(), checkForAlphaPixels(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_RGBA64(), convert_ARGB_to_A2RGB30(), convert_ARGB_to_gray16(), convert_ARGB_to_gray8(), convert_ARGB_to_RGBA(), convert_ARGB_to_RGBx(), convert_gray16_to_RGBA64(), convert_Indexed8_to_X32(), convert_Mono_to_Indexed8(), convert_Mono_to_X32(), convert_passthrough(), convert_RGB888_to_RGB(), convert_RGB888_to_RGB32_mips_dspr2(), convert_RGBA16FPM_to_RGBA16F(), convert_RGBA64_to_ARGB32(), convert_RGBA64_to_gray16(), convert_RGBA64_to_gray8(), convert_RGBA64_to_RGBx64(), convert_RGBA_to_ARGB(), convert_RGBA_to_RGB(), convert_rgbswap_generic(), QImage::convertToFormat_helper(), create(), QImage::deviceIndependentSize(), QImage::fill(), QImage::fill(), QImage::invertPixels(), mask_alpha_converter(), mask_alpha_converter_RGBx(), QImage::metric(), QImage::mirrored_helper(), QImage::mirrored_inplace(), QImage::operator==(), QImage::pixel(), QImage::pixelColor(), QImage::pixelIndex(), swap_bit_order(), and QImage::valid().