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>.
|
#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 31 of file qimage_p.h.
QImageData::QImageData | ( | ) |
Definition at line 91 of file qimage.cpp.
Referenced by create().
QImageData::~QImageData | ( | ) |
Definition at line 156 of file qimage.cpp.
References cleanupFunction, cleanupInfo, detach_no, QImagePixmapCleanupHooks::executeImageHooks(), is_cached, own_data, paintEngine, and ser_no.
|
inlinestatic |
Definition at line 89 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 172 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_CMYK8888, 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.
bool QImageData::convertInPlace | ( | QImage::Format | newFormat, |
Qt::ImageConversionFlags | flags ) |
Definition at line 5850 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().
|
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 829 of file qimage.cpp.
References QImageData(), calculateImageParameters(), cleanupFunction, cleanupInfo, d, data, depth, format, height, QImage::NImageFormats, qt_depthForFormat(), QBasicAtomicInteger< T >::ref(), ref, and width.
bool QImageData::doImageIO | ( | const QImage * | image, |
QImageWriter * | io, | ||
int | quality ) const |
Definition at line 3926 of file qimage.cpp.
References qMin(), qPrintable, and qWarning.
|
inlinestaticnoexcept |
Definition at line 38 of file qimage_p.h.
|
inlinestaticnoexcept |
Definition at line 37 of file qimage_p.h.
Referenced by convertWithPalette().
qsizetype QImageData::bytes_per_line |
Definition at line 50 of file qimage_p.h.
Referenced by calculateImageParameters(), checkForAlphaPixels(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_CMYK8888(), 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(), mask_alpha_converter(), mask_alpha_converter_RGBx(), and swap_bit_order().
QImageCleanupFunction QImageData::cleanupFunction |
Definition at line 63 of file qimage_p.h.
Referenced by ~QImageData(), and create().
void* QImageData::cleanupInfo |
Definition at line 64 of file qimage_p.h.
Referenced by ~QImageData(), and create().
QColorSpace QImageData::colorSpace |
Definition at line 78 of file qimage_p.h.
Definition at line 47 of file qimage_p.h.
Referenced by QImage::colorTransformed(), convert_Alpha8_to_Indexed8(), convert_Grayscale8_to_Indexed8(), convert_Mono_to_Indexed8(), and swap_bit_order().
uchar* QImageData::data |
Definition at line 48 of file qimage_p.h.
Referenced by checkForAlphaPixels(), QImage::colorTransformed(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_CMYK8888(), 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(), mask_alpha_converter(), mask_alpha_converter_RGBx(), and swap_bit_order().
int QImageData::depth |
Definition at line 44 of file qimage_p.h.
Referenced by calculateImageParameters(), and create().
int QImageData::detach_no |
Definition at line 52 of file qimage_p.h.
Referenced by ~QImageData().
qreal QImageData::devicePixelRatio |
Definition at line 46 of file qimage_p.h.
qreal QImageData::dpmx |
Definition at line 54 of file qimage_p.h.
qreal QImageData::dpmy |
Definition at line 55 of file qimage_p.h.
QImage::Format QImageData::format |
Definition at line 49 of file qimage_p.h.
Referenced by convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_Alpha8_to_Indexed8(), convert_ARGB32_to_CMYK8888(), 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(), create(), and swap_bit_order().
uint QImageData::has_alpha_clut |
Definition at line 60 of file qimage_p.h.
Referenced by checkForAlphaPixels(), and convert_Mono_to_Indexed8().
int QImageData::height |
Definition at line 43 of file qimage_p.h.
Referenced by convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_CMYK8888(), 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(), create(), mask_alpha_converter(), mask_alpha_converter_RGBx(), and swap_bit_order().
uint QImageData::is_cached |
Definition at line 61 of file qimage_p.h.
Referenced by ~QImageData().
qsizetype QImageData::nbytes |
Definition at line 45 of file qimage_p.h.
Referenced by swap_bit_order().
QPoint QImageData::offset |
Definition at line 56 of file qimage_p.h.
uint QImageData::own_data |
Definition at line 58 of file qimage_p.h.
Referenced by ~QImageData(), and convertInPlace().
QPaintEngine* QImageData::paintEngine |
Definition at line 76 of file qimage_p.h.
Referenced by QPixmapCacheEntry::QPixmapCacheEntry(), and ~QImageData().
QAtomicInt QImageData::ref |
Definition at line 40 of file qimage_p.h.
Referenced by create().
uint QImageData::ro_data |
Definition at line 59 of file qimage_p.h.
int QImageData::ser_no |
Definition at line 51 of file qimage_p.h.
Referenced by ~QImageData().
Definition at line 72 of file qimage_p.h.
int QImageData::width |
Definition at line 42 of file qimage_p.h.
Referenced by checkForAlphaPixels(), convert_A2RGB30_PM_to_ARGB(), convert_A2RGB30_PM_to_RGB30(), convert_ARGB32_to_CMYK8888(), 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(), create(), mask_alpha_converter(), mask_alpha_converter_RGBx(), and swap_bit_order().