#include <QtCore/qglobal.h>
#include <QVector>
#include <QMap>
Go to the source code of this file.
◆ qGamma_correct_back_to_linear_cs()
Definition at line 3938 of file qimage.cpp.
Referenced by QFontEngineMac::alphaRGBMapForGlyph().
3944 int w = image->
width();
3946 for (
int y=0; y<h; ++y) {
3948 for (
int x=0; x<w; ++x) {
3950 uint r = qt_pow_rgb_gamma[
qRed(p)];
3953 pixels[x] = (r << 16) | (g << 8) | b | 0xff000000;
uchar qt_pow_rgb_gamma[256]
int qRed(QRgb rgb)
Returns the red component of the ARGB quadruplet rgb.
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
int qGreen(QRgb rgb)
Returns the green component of the ARGB quadruplet rgb.
int qBlue(QRgb rgb)
Returns the blue component of the ARGB quadruplet rgb.
uchar * scanLine(int)
Returns a pointer to the pixel data at the scanline with index i.
◆ qInitImageConversions()
void qInitImageConversions |
( |
| ) |
|
Definition at line 3909 of file qimage.cpp.
3915 if (features &
SSE2) {
3916 extern bool convert_ARGB_to_ARGB_PM_inplace_sse2(
QImageData *
data, Qt::ImageConversionFlags);
3920 #ifdef QT_HAVE_SSSE3 3921 if (features &
SSSE3) {
3922 extern void convert_RGB888_to_RGB32_ssse3(
QImageData *dest,
const QImageData *src, Qt::ImageConversionFlags);
3929 if (features &
NEON) {
3930 extern void convert_RGB888_to_RGB32_neon(
QImageData *dest,
const QImageData *src, Qt::ImageConversionFlags);
static const char * data(const QByteArray &arr)
uint qDetectCPUFeatures()
static InPlace_Image_Converter inplace_converter_map[QImage::NImageFormats][QImage::NImageFormats]
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static Image_Converter converter_map[QImage::NImageFormats][QImage::NImageFormats]
◆ qt_depthForFormat()