Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 917343 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/gui/image/qimage.cpp (-3 / +3 lines)
Lines 2189-2195 QImage QImage::convertToFormat_helper(Format format, Qt::ImageConversionFlags fl Link Here
2189
    if (!converter && format > QImage::Format_Indexed8 && d->format > QImage::Format_Indexed8) {
2189
    if (!converter && format > QImage::Format_Indexed8 && d->format > QImage::Format_Indexed8) {
2190
        if (qt_highColorPrecision(d->format, !destLayout->hasAlphaChannel)
2190
        if (qt_highColorPrecision(d->format, !destLayout->hasAlphaChannel)
2191
                && qt_highColorPrecision(format, !hasAlphaChannel())) {
2191
                && qt_highColorPrecision(format, !hasAlphaChannel())) {
2192
#if QT_CONFIG(raster_fp)
2192
#if 0
2193
            if (qt_fpColorPrecision(d->format) && qt_fpColorPrecision(format))
2193
            if (qt_fpColorPrecision(d->format) && qt_fpColorPrecision(format))
2194
                converter = convert_generic_over_rgba32f;
2194
                converter = convert_generic_over_rgba32f;
2195
            else
2195
            else
Lines 4663-4669 QImage QImage::smoothScaled(int w, int h) const Link Here
4663
        src.convertTo(QImage::Format_RGBA64_Premultiplied);
4663
        src.convertTo(QImage::Format_RGBA64_Premultiplied);
4664
        break;
4664
        break;
4665
#endif
4665
#endif
4666
#if QT_CONFIG(raster_fp)
4666
#if 0
4667
    case QImage::Format_RGBX32FPx4:
4667
    case QImage::Format_RGBX32FPx4:
4668
    case QImage::Format_RGBA32FPx4_Premultiplied:
4668
    case QImage::Format_RGBA32FPx4_Premultiplied:
4669
        break;
4669
        break;
Lines 5214-5220 bool QImageData::convertInPlace(QImage::Format newFormat, Qt::ImageConversionFla Link Here
5214
        // any direct ones are probably better even if not inplace.
5214
        // any direct ones are probably better even if not inplace.
5215
        if (qt_highColorPrecision(newFormat, !qPixelLayouts[newFormat].hasAlphaChannel)
5215
        if (qt_highColorPrecision(newFormat, !qPixelLayouts[newFormat].hasAlphaChannel)
5216
                && qt_highColorPrecision(format, !qPixelLayouts[format].hasAlphaChannel)) {
5216
                && qt_highColorPrecision(format, !qPixelLayouts[format].hasAlphaChannel)) {
5217
#if QT_CONFIG(raster_fp)
5217
#if 0
5218
            if (qt_fpColorPrecision(format) && qt_fpColorPrecision(newFormat))
5218
            if (qt_fpColorPrecision(format) && qt_fpColorPrecision(newFormat))
5219
                return convert_generic_inplace_over_rgba32f(this, newFormat, flags);
5219
                return convert_generic_inplace_over_rgba32f(this, newFormat, flags);
5220
#endif
5220
#endif
(-)a/src/gui/image/qimage_conversions.cpp (-2 / +2 lines)
Lines 279-285 void convert_generic_over_rgb64(QImageData *dest, const QImageData *src, Qt::Ima Link Here
279
#endif
279
#endif
280
}
280
}
281
281
282
#if QT_CONFIG(raster_fp)
282
#if 0
283
void convert_generic_over_rgba32f(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags)
283
void convert_generic_over_rgba32f(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags)
284
{
284
{
285
    Q_ASSERT(dest->format >= QImage::Format_RGBX16FPx4);
285
    Q_ASSERT(dest->format >= QImage::Format_RGBX16FPx4);
Lines 556-562 bool convert_generic_inplace_over_rgb64(QImageData *data, QImage::Format dst_for Link Here
556
    return true;
556
    return true;
557
}
557
}
558
558
559
#if QT_CONFIG(raster_fp)
559
#if 0
560
bool convert_generic_inplace_over_rgba32f(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags)
560
bool convert_generic_inplace_over_rgba32f(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags)
561
{
561
{
562
    Q_ASSERT(data->format >= QImage::Format_RGBX16FPx4);
562
    Q_ASSERT(data->format >= QImage::Format_RGBX16FPx4);
(-)a/src/gui/image/qimage_p.h (-1 / +1 lines)
Lines 124-130 void convert_generic(QImageData *dest, const QImageData *src, Qt::ImageConversio Link Here
124
void convert_generic_over_rgb64(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags);
124
void convert_generic_over_rgb64(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags);
125
bool convert_generic_inplace(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags);
125
bool convert_generic_inplace(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags);
126
bool convert_generic_inplace_over_rgb64(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags);
126
bool convert_generic_inplace_over_rgb64(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags);
127
#if QT_CONFIG(raster_fp)
127
#if 0
128
void convert_generic_over_rgba32f(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags);
128
void convert_generic_over_rgba32f(QImageData *dest, const QImageData *src, Qt::ImageConversionFlags);
129
bool convert_generic_inplace_over_rgba32f(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags);
129
bool convert_generic_inplace_over_rgba32f(QImageData *data, QImage::Format dst_format, Qt::ImageConversionFlags);
130
#endif
130
#endif
(-)a/src/gui/painting/qcompositionfunctions.cpp (-42 / +42 lines)
Lines 290-296 typedef Rgba64OperationsC Rgba64Operations; Link Here
290
290
291
#endif // 0
291
#endif // 0
292
292
293
#if QT_CONFIG(raster_fp)
293
#if 0
294
294
295
static inline QRgbaFloat32 qRgbaFloat32(float r, float g, float b, float a)
295
static inline QRgbaFloat32 qRgbaFloat32(float r, float g, float b, float a)
296
{
296
{
Lines 468-474 typedef RgbaFPOperationsSSE2 RgbaFPOperations; Link Here
468
typedef RgbaFPOperationsC RgbaFPOperations;
468
typedef RgbaFPOperationsC RgbaFPOperations;
469
#endif
469
#endif
470
470
471
#endif // QT_CONFIG(raster_fp)
471
#endif // 0
472
472
473
/*
473
/*
474
  result = 0
474
  result = 0
Lines 509-515 void QT_FASTCALL comp_func_Clear_rgb64(QRgba64 *dest, const QRgba64 *, int lengt Link Here
509
}
509
}
510
#endif
510
#endif
511
511
512
#if QT_CONFIG(raster_fp)
512
#if 0
513
void QT_FASTCALL comp_func_solid_Clear_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32, uint const_alpha)
513
void QT_FASTCALL comp_func_solid_Clear_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32, uint const_alpha)
514
{
514
{
515
    comp_func_Clear_template<RgbaFPOperations>(dest, length, const_alpha);
515
    comp_func_Clear_template<RgbaFPOperations>(dest, length, const_alpha);
Lines 579-585 void QT_FASTCALL comp_func_Source_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const QRg Link Here
579
}
579
}
580
#endif
580
#endif
581
581
582
#if QT_CONFIG(raster_fp)
582
#if 0
583
void QT_FASTCALL comp_func_solid_Source_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
583
void QT_FASTCALL comp_func_solid_Source_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
584
{
584
{
585
    comp_func_solid_Source_template<RgbaFPOperations>(dest, length, color, const_alpha);
585
    comp_func_solid_Source_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 609-615 void QT_FASTCALL comp_func_Destination_rgb64(QRgba64 *, const QRgba64 *, int, ui Link Here
609
}
609
}
610
#endif
610
#endif
611
611
612
#if QT_CONFIG(raster_fp)
612
#if 0
613
void QT_FASTCALL comp_func_solid_Destination_rgbafp(QRgbaFloat32 *, int, QRgbaFloat32, uint)
613
void QT_FASTCALL comp_func_solid_Destination_rgbafp(QRgbaFloat32 *, int, QRgbaFloat32, uint)
614
{
614
{
615
}
615
}
Lines 689-695 void QT_FASTCALL comp_func_SourceOver_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
689
}
689
}
690
#endif
690
#endif
691
691
692
#if QT_CONFIG(raster_fp)
692
#if 0
693
void QT_FASTCALL comp_func_solid_SourceOver_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
693
void QT_FASTCALL comp_func_solid_SourceOver_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
694
{
694
{
695
    comp_func_solid_SourceOver_template<RgbaFPOperations>(dest, length, color, const_alpha);
695
    comp_func_solid_SourceOver_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 763-769 void QT_FASTCALL comp_func_DestinationOver_rgb64(QRgba64 *Q_DECL_RESTRICT dest, Link Here
763
}
763
}
764
#endif
764
#endif
765
765
766
#if QT_CONFIG(raster_fp)
766
#if 0
767
void QT_FASTCALL comp_func_solid_DestinationOver_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
767
void QT_FASTCALL comp_func_solid_DestinationOver_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
768
{
768
{
769
    comp_func_solid_DestinationOver_template<RgbaFPOperations>(dest, length, color, const_alpha);
769
    comp_func_solid_DestinationOver_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 841-847 void QT_FASTCALL comp_func_SourceIn_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Q Link Here
841
}
841
}
842
#endif
842
#endif
843
843
844
#if QT_CONFIG(raster_fp)
844
#if 0
845
void QT_FASTCALL comp_func_solid_SourceIn_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
845
void QT_FASTCALL comp_func_solid_SourceIn_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
846
{
846
{
847
    comp_func_solid_SourceIn_template<RgbaFPOperations>(dest, length, color, const_alpha);
847
    comp_func_solid_SourceIn_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 914-920 void QT_FASTCALL comp_func_DestinationIn_rgb64(QRgba64 *Q_DECL_RESTRICT dest, co Link Here
914
}
914
}
915
#endif
915
#endif
916
916
917
#if QT_CONFIG(raster_fp)
917
#if 0
918
void QT_FASTCALL comp_func_solid_DestinationIn_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
918
void QT_FASTCALL comp_func_solid_DestinationIn_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
919
{
919
{
920
    comp_func_solid_DestinationIn_template<RgbaFPOperations>(dest, length, color, const_alpha);
920
    comp_func_solid_DestinationIn_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 990-996 void QT_FASTCALL comp_func_SourceOut_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
990
}
990
}
991
#endif
991
#endif
992
992
993
#if QT_CONFIG(raster_fp)
993
#if 0
994
void QT_FASTCALL comp_func_solid_SourceOut_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
994
void QT_FASTCALL comp_func_solid_SourceOut_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
995
{
995
{
996
    comp_func_solid_SourceOut_template<RgbaFPOperations>(dest, length, color, const_alpha);
996
    comp_func_solid_SourceOut_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 1063-1069 void QT_FASTCALL comp_func_DestinationOut_rgb64(QRgba64 *Q_DECL_RESTRICT dest, c Link Here
1063
}
1063
}
1064
#endif
1064
#endif
1065
1065
1066
#if QT_CONFIG(raster_fp)
1066
#if 0
1067
void QT_FASTCALL comp_func_solid_DestinationOut_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1067
void QT_FASTCALL comp_func_solid_DestinationOut_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1068
{
1068
{
1069
    comp_func_solid_DestinationOut_template<RgbaFPOperations>(dest, length, color, const_alpha);
1069
    comp_func_solid_DestinationOut_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 1136-1142 void QT_FASTCALL comp_func_SourceAtop_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
1136
}
1136
}
1137
#endif
1137
#endif
1138
1138
1139
#if QT_CONFIG(raster_fp)
1139
#if 0
1140
void QT_FASTCALL comp_func_solid_SourceAtop_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1140
void QT_FASTCALL comp_func_solid_SourceAtop_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1141
{
1141
{
1142
    comp_func_solid_SourceAtop_template<RgbaFPOperations>(dest, length, color, const_alpha);
1142
    comp_func_solid_SourceAtop_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 1214-1220 void QT_FASTCALL comp_func_DestinationAtop_rgb64(QRgba64 *Q_DECL_RESTRICT dest, Link Here
1214
}
1214
}
1215
#endif
1215
#endif
1216
1216
1217
#if QT_CONFIG(raster_fp)
1217
#if 0
1218
void QT_FASTCALL comp_func_solid_DestinationAtop_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1218
void QT_FASTCALL comp_func_solid_DestinationAtop_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1219
{
1219
{
1220
    comp_func_solid_DestinationAtop_template<RgbaFPOperations>(dest, length, color, const_alpha);
1220
    comp_func_solid_DestinationAtop_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 1288-1294 void QT_FASTCALL comp_func_XOR_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const QRgba6 Link Here
1288
}
1288
}
1289
#endif
1289
#endif
1290
1290
1291
#if QT_CONFIG(raster_fp)
1291
#if 0
1292
void QT_FASTCALL comp_func_solid_XOR_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1292
void QT_FASTCALL comp_func_solid_XOR_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1293
{
1293
{
1294
    comp_func_solid_XOR_template<RgbaFPOperations>(dest, length, color, const_alpha);
1294
    comp_func_solid_XOR_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 1311-1317 struct QFullCoverage { Link Here
1311
        *dest = src;
1311
        *dest = src;
1312
    }
1312
    }
1313
#endif
1313
#endif
1314
#if QT_CONFIG(raster_fp)
1314
#if 0
1315
    inline void store(QRgbaFloat32 *dest, const QRgbaFloat32 src) const
1315
    inline void store(QRgbaFloat32 *dest, const QRgbaFloat32 src) const
1316
    {
1316
    {
1317
        *dest = src;
1317
        *dest = src;
Lines 1341-1347 struct QPartialCoverage { Link Here
1341
        store_template<Rgba64Operations>(dest, src);
1341
        store_template<Rgba64Operations>(dest, src);
1342
    }
1342
    }
1343
#endif
1343
#endif
1344
#if QT_CONFIG(raster_fp)
1344
#if 0
1345
    inline void store(QRgbaFloat32 *dest, const QRgbaFloat32 src) const
1345
    inline void store(QRgbaFloat32 *dest, const QRgbaFloat32 src) const
1346
    {
1346
    {
1347
        store_template<RgbaFPOperations>(dest, src);
1347
        store_template<RgbaFPOperations>(dest, src);
Lines 1365-1371 static inline uint mix_alpha_rgb64(uint da, uint sa) Link Here
1365
}
1365
}
1366
#endif
1366
#endif
1367
1367
1368
#if QT_CONFIG(raster_fp)
1368
#if 0
1369
static inline float mix_alpha_rgbafp(float da, float sa)
1369
static inline float mix_alpha_rgbafp(float da, float sa)
1370
{
1370
{
1371
    return 1.0f - (1.0f - sa) * (1.0f - da);
1371
    return 1.0f - (1.0f - sa) * (1.0f - da);
Lines 1441-1447 void QT_FASTCALL comp_func_Plus_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const QRgba Link Here
1441
}
1441
}
1442
#endif
1442
#endif
1443
1443
1444
#if QT_CONFIG(raster_fp)
1444
#if 0
1445
void QT_FASTCALL comp_func_solid_Plus_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1445
void QT_FASTCALL comp_func_solid_Plus_rgbafp(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, uint const_alpha)
1446
{
1446
{
1447
    comp_func_solid_Plus_template<RgbaFPOperations>(dest, length, color, const_alpha);
1447
    comp_func_solid_Plus_template<RgbaFPOperations>(dest, length, color, const_alpha);
Lines 1530-1536 void QT_FASTCALL comp_func_solid_Multiply_rgb64(QRgba64 *dest, int length, QRgba Link Here
1530
}
1530
}
1531
#endif
1531
#endif
1532
1532
1533
#if QT_CONFIG(raster_fp)
1533
#if 0
1534
static inline float multiply_op_rgbafp(float dst, float src, float da, float sa)
1534
static inline float multiply_op_rgbafp(float dst, float src, float da, float sa)
1535
{
1535
{
1536
    return src * dst + src * (1.0f - da) + dst * (1.0f - sa);
1536
    return src * dst + src * (1.0f - da) + dst * (1.0f - sa);
Lines 1629-1635 void QT_FASTCALL comp_func_Multiply_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Q Link Here
1629
}
1629
}
1630
#endif
1630
#endif
1631
1631
1632
#if QT_CONFIG(raster_fp)
1632
#if 0
1633
template <typename T>
1633
template <typename T>
1634
static inline void comp_func_Multiply_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
1634
static inline void comp_func_Multiply_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
1635
{
1635
{
Lines 1728-1734 void QT_FASTCALL comp_func_solid_Screen_rgb64(QRgba64 *dest, int length, QRgba64 Link Here
1728
}
1728
}
1729
#endif
1729
#endif
1730
1730
1731
#if QT_CONFIG(raster_fp)
1731
#if 0
1732
template <typename T>
1732
template <typename T>
1733
static inline void comp_func_solid_Screen_impl(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, const T &coverage)
1733
static inline void comp_func_solid_Screen_impl(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, const T &coverage)
1734
{
1734
{
Lines 1821-1827 void QT_FASTCALL comp_func_Screen_rgb64(QRgba64 *dest, const QRgba64 *src, int l Link Here
1821
}
1821
}
1822
#endif
1822
#endif
1823
1823
1824
#if QT_CONFIG(raster_fp)
1824
#if 0
1825
template <typename T>
1825
template <typename T>
1826
static inline void comp_func_Screen_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
1826
static inline void comp_func_Screen_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
1827
{
1827
{
Lines 1940-1946 void QT_FASTCALL comp_func_solid_Overlay_rgb64(QRgba64 *dest, int length, QRgba6 Link Here
1940
}
1940
}
1941
#endif
1941
#endif
1942
1942
1943
#if QT_CONFIG(raster_fp)
1943
#if 0
1944
static inline float overlay_op_rgbafp(float dst, float src, float da, float sa)
1944
static inline float overlay_op_rgbafp(float dst, float src, float da, float sa)
1945
{
1945
{
1946
    const float temp = src * (1.0f - da) + dst * (1.0f - sa);
1946
    const float temp = src * (1.0f - da) + dst * (1.0f - sa);
Lines 2042-2048 void QT_FASTCALL comp_func_Overlay_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const QR Link Here
2042
}
2042
}
2043
#endif
2043
#endif
2044
2044
2045
#if QT_CONFIG(raster_fp)
2045
#if 0
2046
template <typename T>
2046
template <typename T>
2047
static inline void comp_func_Overlay_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2047
static inline void comp_func_Overlay_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2048
{
2048
{
Lines 2151-2157 void QT_FASTCALL comp_func_solid_Darken_rgb64(QRgba64 *dest, int length, QRgba64 Link Here
2151
}
2151
}
2152
#endif
2152
#endif
2153
2153
2154
#if QT_CONFIG(raster_fp)
2154
#if 0
2155
static inline float darken_op_rgbafp(float dst, float src, float da, float sa)
2155
static inline float darken_op_rgbafp(float dst, float src, float da, float sa)
2156
{
2156
{
2157
    return qMin(src * da, dst * sa) + src * (1.0f - da) + dst * (1.0f - sa);
2157
    return qMin(src * da, dst * sa) + src * (1.0f - da) + dst * (1.0f - sa);
Lines 2249-2255 void QT_FASTCALL comp_func_Darken_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const QRg Link Here
2249
}
2249
}
2250
#endif
2250
#endif
2251
2251
2252
#if QT_CONFIG(raster_fp)
2252
#if 0
2253
template <typename T>
2253
template <typename T>
2254
static inline void comp_func_Darken_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2254
static inline void comp_func_Darken_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2255
{
2255
{
Lines 2359-2365 void QT_FASTCALL comp_func_solid_Lighten_rgb64(QRgba64 *dest, int length, QRgba6 Link Here
2359
}
2359
}
2360
#endif
2360
#endif
2361
2361
2362
#if QT_CONFIG(raster_fp)
2362
#if 0
2363
static inline float lighten_op_rgbafp(float dst, float src, float da, float sa)
2363
static inline float lighten_op_rgbafp(float dst, float src, float da, float sa)
2364
{
2364
{
2365
    return qMax(src * da, dst * sa) + src * (1.0f - da) + dst * (1.0f - sa);
2365
    return qMax(src * da, dst * sa) + src * (1.0f - da) + dst * (1.0f - sa);
Lines 2457-2463 void QT_FASTCALL comp_func_Lighten_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const QR Link Here
2457
}
2457
}
2458
#endif
2458
#endif
2459
2459
2460
#if QT_CONFIG(raster_fp)
2460
#if 0
2461
template <typename T>
2461
template <typename T>
2462
static inline void comp_func_Lighten_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2462
static inline void comp_func_Lighten_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2463
{
2463
{
Lines 2590-2596 void QT_FASTCALL comp_func_solid_ColorDodge_rgb64(QRgba64 *dest, int length, QRg Link Here
2590
}
2590
}
2591
#endif
2591
#endif
2592
2592
2593
#if QT_CONFIG(raster_fp)
2593
#if 0
2594
static inline float color_dodge_op_rgbafp(float dst, float src, float da, float sa)
2594
static inline float color_dodge_op_rgbafp(float dst, float src, float da, float sa)
2595
{
2595
{
2596
    const float sa_da = sa * da;
2596
    const float sa_da = sa * da;
Lines 2698-2704 void QT_FASTCALL comp_func_ColorDodge_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
2698
}
2698
}
2699
#endif
2699
#endif
2700
2700
2701
#if QT_CONFIG(raster_fp)
2701
#if 0
2702
template <typename T>
2702
template <typename T>
2703
static inline void comp_func_ColorDodge_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2703
static inline void comp_func_ColorDodge_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2704
{
2704
{
Lines 2831-2837 void QT_FASTCALL comp_func_solid_ColorBurn_rgb64(QRgba64 *dest, int length, QRgb Link Here
2831
}
2831
}
2832
#endif
2832
#endif
2833
2833
2834
#if QT_CONFIG(raster_fp)
2834
#if 0
2835
static inline float color_burn_op_rgbafp(float dst, float src, float da, float sa)
2835
static inline float color_burn_op_rgbafp(float dst, float src, float da, float sa)
2836
{
2836
{
2837
    const float src_da = src * da;
2837
    const float src_da = src * da;
Lines 2939-2945 void QT_FASTCALL comp_func_ColorBurn_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
2939
}
2939
}
2940
#endif
2940
#endif
2941
2941
2942
#if QT_CONFIG(raster_fp)
2942
#if 0
2943
template <typename T>
2943
template <typename T>
2944
static inline void comp_func_ColorBurn_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2944
static inline void comp_func_ColorBurn_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
2945
{
2945
{
Lines 3060-3066 void QT_FASTCALL comp_func_solid_HardLight_rgb64(QRgba64 *dest, int length, QRgb Link Here
3060
}
3060
}
3061
#endif
3061
#endif
3062
3062
3063
#if QT_CONFIG(raster_fp)
3063
#if 0
3064
static inline float hardlight_op_rgbafp(float dst, float src, float da, float sa)
3064
static inline float hardlight_op_rgbafp(float dst, float src, float da, float sa)
3065
{
3065
{
3066
    const float temp = src * (1.0f - da) + dst * (1.0f - sa);
3066
    const float temp = src * (1.0f - da) + dst * (1.0f - sa);
Lines 3163-3169 void QT_FASTCALL comp_func_HardLight_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
3163
}
3163
}
3164
#endif
3164
#endif
3165
3165
3166
#if QT_CONFIG(raster_fp)
3166
#if 0
3167
template <typename T>
3167
template <typename T>
3168
static inline void comp_func_HardLight_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3168
static inline void comp_func_HardLight_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3169
{
3169
{
Lines 3298-3304 void QT_FASTCALL comp_func_solid_SoftLight_rgb64(QRgba64 *dest, int length, QRgb Link Here
3298
3298
3299
#endif
3299
#endif
3300
3300
3301
#if QT_CONFIG(raster_fp)
3301
#if 0
3302
static inline float soft_light_op_rgbafp(float dst, float src, float da, float sa)
3302
static inline float soft_light_op_rgbafp(float dst, float src, float da, float sa)
3303
{
3303
{
3304
    const float src2 = src * 2;
3304
    const float src2 = src * 2;
Lines 3406-3412 void QT_FASTCALL comp_func_SoftLight_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
3406
}
3406
}
3407
#endif
3407
#endif
3408
3408
3409
#if QT_CONFIG(raster_fp)
3409
#if 0
3410
template <typename T>
3410
template <typename T>
3411
static inline void comp_func_SoftLight_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3411
static inline void comp_func_SoftLight_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3412
{
3412
{
Lines 3515-3521 void QT_FASTCALL comp_func_solid_Difference_rgb64(QRgba64 *dest, int length, QRg Link Here
3515
}
3515
}
3516
#endif
3516
#endif
3517
3517
3518
#if QT_CONFIG(raster_fp)
3518
#if 0
3519
static inline float difference_op_rgbafp(float dst, float src, float da, float sa)
3519
static inline float difference_op_rgbafp(float dst, float src, float da, float sa)
3520
{
3520
{
3521
    return src + dst - (2 * qMin(src * da, dst * sa));
3521
    return src + dst - (2 * qMin(src * da, dst * sa));
Lines 3613-3619 void QT_FASTCALL comp_func_Difference_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
3613
}
3613
}
3614
#endif
3614
#endif
3615
3615
3616
#if QT_CONFIG(raster_fp)
3616
#if 0
3617
template <typename T>
3617
template <typename T>
3618
static inline void comp_func_Difference_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3618
static inline void comp_func_Difference_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3619
{
3619
{
Lines 3711-3717 void QT_FASTCALL comp_func_solid_Exclusion_rgb64(QRgba64 *dest, int length, QRgb Link Here
3711
}
3711
}
3712
#endif
3712
#endif
3713
3713
3714
#if QT_CONFIG(raster_fp)
3714
#if 0
3715
template <typename T>
3715
template <typename T>
3716
static inline void QT_FASTCALL comp_func_solid_Exclusion_impl(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, const T &coverage)
3716
static inline void QT_FASTCALL comp_func_solid_Exclusion_impl(QRgbaFloat32 *dest, int length, QRgbaFloat32 color, const T &coverage)
3717
{
3717
{
Lines 3804-3810 void QT_FASTCALL comp_func_Exclusion_rgb64(QRgba64 *Q_DECL_RESTRICT dest, const Link Here
3804
}
3804
}
3805
#endif
3805
#endif
3806
3806
3807
#if QT_CONFIG(raster_fp)
3807
#if 0
3808
template <typename T>
3808
template <typename T>
3809
static inline void comp_func_Exclusion_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3809
static inline void comp_func_Exclusion_impl(QRgbaFloat32 *Q_DECL_RESTRICT dest, const QRgbaFloat32 *Q_DECL_RESTRICT src, int length, const T &coverage)
3810
{
3810
{
Lines 4218-4224 CompositionFunctionSolid64 qt_functionForModeSolid64_C[] = { Link Here
4218
};
4218
};
4219
4219
4220
CompositionFunctionSolidFP qt_functionForModeSolidFP_C[] = {
4220
CompositionFunctionSolidFP qt_functionForModeSolidFP_C[] = {
4221
#if QT_CONFIG(raster_fp)
4221
#if 0
4222
        comp_func_solid_SourceOver_rgbafp,
4222
        comp_func_solid_SourceOver_rgbafp,
4223
        comp_func_solid_DestinationOver_rgbafp,
4223
        comp_func_solid_DestinationOver_rgbafp,
4224
        comp_func_solid_Clear_rgbafp,
4224
        comp_func_solid_Clear_rgbafp,
Lines 4328-4334 CompositionFunction64 qt_functionForMode64_C[] = { Link Here
4328
};
4328
};
4329
4329
4330
CompositionFunctionFP qt_functionForModeFP_C[] = {
4330
CompositionFunctionFP qt_functionForModeFP_C[] = {
4331
#if QT_CONFIG(raster_fp)
4331
#if 0
4332
        comp_func_SourceOver_rgbafp,
4332
        comp_func_SourceOver_rgbafp,
4333
        comp_func_DestinationOver_rgbafp,
4333
        comp_func_DestinationOver_rgbafp,
4334
        comp_func_Clear_rgbafp,
4334
        comp_func_Clear_rgbafp,
(-)a/src/gui/painting/qdrawhelper.cpp (-38 / +38 lines)
Lines 216-222 static Convert64Func convert64ToRGBA64PM[QImage::NImageFormats] = { Link Here
216
};
216
};
217
#endif
217
#endif
218
218
219
#if QT_CONFIG(raster_fp)
219
#if 0
220
static void QT_FASTCALL convertRGBA64PMToRGBA32F(QRgbaFloat32 *buffer, const quint64 *src, int count)
220
static void QT_FASTCALL convertRGBA64PMToRGBA32F(QRgbaFloat32 *buffer, const quint64 *src, int count)
221
{
221
{
222
    const auto *in = reinterpret_cast<const QRgba64 *>(src);
222
    const auto *in = reinterpret_cast<const QRgba64 *>(src);
Lines 451-457 static DestFetchProc64 destFetchProc64[QImage::NImageFormats] = Link Here
451
};
451
};
452
#endif
452
#endif
453
453
454
#if QT_CONFIG(raster_fp)
454
#if 0
455
static QRgbaFloat32 *QT_FASTCALL destFetchFP(QRgbaFloat32 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length)
455
static QRgbaFloat32 *QT_FASTCALL destFetchFP(QRgbaFloat32 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length)
456
{
456
{
457
    return const_cast<QRgbaFloat32 *>(qFetchToRGBA32F[rasterBuffer->format](buffer, rasterBuffer->scanLine(y), x, length, nullptr, nullptr));
457
    return const_cast<QRgbaFloat32 *>(qFetchToRGBA32F[rasterBuffer->format](buffer, rasterBuffer->scanLine(y), x, length, nullptr, nullptr));
Lines 798-804 static DestStoreProc64 destStoreProc64[QImage::NImageFormats] = Link Here
798
};
798
};
799
#endif
799
#endif
800
800
801
#if QT_CONFIG(raster_fp)
801
#if 0
802
static void QT_FASTCALL destStoreFP(QRasterBuffer *rasterBuffer, int x, int y, const QRgbaFloat32 *buffer, int length)
802
static void QT_FASTCALL destStoreFP(QRasterBuffer *rasterBuffer, int x, int y, const QRgbaFloat32 *buffer, int length)
803
{
803
{
804
    auto store = qStoreFromRGBA32F[rasterBuffer->format];
804
    auto store = qStoreFromRGBA32F[rasterBuffer->format];
Lines 872-878 static const QRgba64 *QT_FASTCALL fetchUntransformedRGBA64PM(QRgba64 *, const Op Link Here
872
}
872
}
873
#endif
873
#endif
874
874
875
#if QT_CONFIG(raster_fp)
875
#if 0
876
static const QRgbaFloat32 *QT_FASTCALL fetchUntransformedFP(QRgbaFloat32 *buffer, const Operator *,
876
static const QRgbaFloat32 *QT_FASTCALL fetchUntransformedFP(QRgbaFloat32 *buffer, const Operator *,
877
                                                        const QSpanData *data, int y, int x, int length)
877
                                                        const QSpanData *data, int y, int x, int length)
878
{
878
{
Lines 1110-1116 static const QRgba64 *QT_FASTCALL fetchTransformed64(QRgba64 *buffer, const Oper Link Here
1110
}
1110
}
1111
#endif
1111
#endif
1112
1112
1113
#if QT_CONFIG(raster_fp)
1113
#if 0
1114
template<TextureBlendType blendType>  /* either BlendTransformed or BlendTransformedTiled */
1114
template<TextureBlendType blendType>  /* either BlendTransformed or BlendTransformedTiled */
1115
static const QRgbaFloat32 *QT_FASTCALL fetchTransformedFP(QRgbaFloat32 *buffer, const Operator *, const QSpanData *data,
1115
static const QRgbaFloat32 *QT_FASTCALL fetchTransformedFP(QRgbaFloat32 *buffer, const Operator *, const QSpanData *data,
1116
                                                      int y, int x, int length)
1116
                                                      int y, int x, int length)
Lines 2809-2815 static const QRgba64 *QT_FASTCALL fetchTransformedBilinear64(QRgba64 *buffer, co Link Here
2809
}
2809
}
2810
#endif
2810
#endif
2811
2811
2812
#if QT_CONFIG(raster_fp)
2812
#if 0
2813
static void interpolate_simple_rgba32f(QRgbaFloat32 *b, const QRgbaFloat32 *buf1, const QRgbaFloat32 *buf2, int len,
2813
static void interpolate_simple_rgba32f(QRgbaFloat32 *b, const QRgbaFloat32 *buf1, const QRgbaFloat32 *buf2, int len,
2814
                                       int &fx, int fdx,
2814
                                       int &fx, int fdx,
2815
                                       int &fy, int fdy)
2815
                                       int &fy, int fdy)
Lines 3067-3073 static const QRgbaFloat32 *QT_FASTCALL fetchTransformedBilinearFP(QRgbaFloat32 * Link Here
3067
        return fetchTransformedBilinearFP_uint32<blendType>(buffer, data, y, x, length);
3067
        return fetchTransformedBilinearFP_uint32<blendType>(buffer, data, y, x, length);
3068
    }
3068
    }
3069
}
3069
}
3070
#endif // QT_CONFIG(raster_fp)
3070
#endif // 0
3071
3071
3072
// FetchUntransformed can have more specialized methods added depending on SIMD features.
3072
// FetchUntransformed can have more specialized methods added depending on SIMD features.
3073
static SourceFetchProc sourceFetchUntransformed[QImage::NImageFormats] = {
3073
static SourceFetchProc sourceFetchUntransformed[QImage::NImageFormats] = {
Lines 3185-3191 static inline SourceFetchProc64 getSourceFetch64(TextureBlendType blendType, QIm Link Here
3185
}
3185
}
3186
#endif
3186
#endif
3187
3187
3188
#if QT_CONFIG(raster_fp)
3188
#if 0
3189
static const SourceFetchProcFP sourceFetchGenericFP[NBlendTypes] = {
3189
static const SourceFetchProcFP sourceFetchGenericFP[NBlendTypes] = {
3190
    fetchUntransformedFP,                                     // Untransformed
3190
    fetchUntransformedFP,                                     // Untransformed
3191
    fetchUntransformedFP,                                     // Tiled
3191
    fetchUntransformedFP,                                     // Tiled
Lines 3219-3225 static const QRgba64& qt_gradient_pixel64_fixed(const QGradientData *data, int f Link Here
3219
}
3219
}
3220
#endif
3220
#endif
3221
3221
3222
#if QT_CONFIG(raster_fp)
3222
#if 0
3223
static inline QRgbaFloat32 qt_gradient_pixelFP(const QGradientData *data, qreal pos)
3223
static inline QRgbaFloat32 qt_gradient_pixelFP(const QGradientData *data, qreal pos)
3224
{
3224
{
3225
    int ipos = int(pos * (GRADIENT_STOPTABLE_SIZE - 1) + qreal(0.5));
3225
    int ipos = int(pos * (GRADIENT_STOPTABLE_SIZE - 1) + qreal(0.5));
Lines 3290-3296 class GradientBase64 Link Here
3290
};
3290
};
3291
#endif
3291
#endif
3292
3292
3293
#if QT_CONFIG(raster_fp)
3293
#if 0
3294
class GradientBaseFP
3294
class GradientBaseFP
3295
{
3295
{
3296
public:
3296
public:
Lines 3399-3405 static const QRgba64 * QT_FASTCALL qt_fetch_linear_gradient_rgb64(QRgba64 *buffe Link Here
3399
    return qt_fetch_linear_gradient_template<GradientBase64, QRgba64>(buffer, op, data, y, x, length);
3399
    return qt_fetch_linear_gradient_template<GradientBase64, QRgba64>(buffer, op, data, y, x, length);
3400
}
3400
}
3401
#endif
3401
#endif
3402
#if QT_CONFIG(raster_fp)
3402
#if 0
3403
static const QRgbaFloat32 * QT_FASTCALL qt_fetch_linear_gradient_rgbfp(QRgbaFloat32 *buffer, const Operator *op, const QSpanData *data,
3403
static const QRgbaFloat32 * QT_FASTCALL qt_fetch_linear_gradient_rgbfp(QRgbaFloat32 *buffer, const Operator *op, const QSpanData *data,
3404
                                                                   int y, int x, int length)
3404
                                                                   int y, int x, int length)
3405
{
3405
{
Lines 3480-3486 const QRgba64 * QT_FASTCALL qt_fetch_radial_gradient_rgb64(QRgba64 *buffer, cons Link Here
3480
}
3480
}
3481
#endif
3481
#endif
3482
3482
3483
#if QT_CONFIG(raster_fp)
3483
#if 0
3484
static const QRgbaFloat32 * QT_FASTCALL qt_fetch_radial_gradient_rgbfp(QRgbaFloat32 *buffer, const Operator *op, const QSpanData *data,
3484
static const QRgbaFloat32 * QT_FASTCALL qt_fetch_radial_gradient_rgbfp(QRgbaFloat32 *buffer, const Operator *op, const QSpanData *data,
3485
                                                                   int y, int x, int length)
3485
                                                                   int y, int x, int length)
3486
{
3486
{
Lines 3553-3559 static const QRgba64 * QT_FASTCALL qt_fetch_conical_gradient_rgb64(QRgba64 *buff Link Here
3553
}
3553
}
3554
#endif
3554
#endif
3555
3555
3556
#if QT_CONFIG(raster_fp)
3556
#if 0
3557
static const QRgbaFloat32 * QT_FASTCALL qt_fetch_conical_gradient_rgbfp(QRgbaFloat32 *buffer, const Operator *, const QSpanData *data,
3557
static const QRgbaFloat32 * QT_FASTCALL qt_fetch_conical_gradient_rgbfp(QRgbaFloat32 *buffer, const Operator *, const QSpanData *data,
3558
                                                                    int y, int x, int length)
3558
                                                                    int y, int x, int length)
3559
{
3559
{
Lines 3569-3575 static const CompositionFunctionSolid *functionForModeSolid = qt_functionForMode Link Here
3569
#if 0
3569
#if 0
3570
static const CompositionFunctionSolid64 *functionForModeSolid64 = qt_functionForModeSolid64_C;
3570
static const CompositionFunctionSolid64 *functionForModeSolid64 = qt_functionForModeSolid64_C;
3571
#endif
3571
#endif
3572
#if QT_CONFIG(raster_fp)
3572
#if 0
3573
static const CompositionFunctionSolidFP *functionForModeSolidFP = qt_functionForModeSolidFP_C;
3573
static const CompositionFunctionSolidFP *functionForModeSolidFP = qt_functionForModeSolidFP_C;
3574
#endif
3574
#endif
3575
3575
Lines 3581-3587 static const CompositionFunction *functionForMode = qt_functionForMode_C; Link Here
3581
#if 0
3581
#if 0
3582
static const CompositionFunction64 *functionForMode64 = qt_functionForMode64_C;
3582
static const CompositionFunction64 *functionForMode64 = qt_functionForMode64_C;
3583
#endif
3583
#endif
3584
#if QT_CONFIG(raster_fp)
3584
#if 0
3585
static const CompositionFunctionFP *functionForModeFP = qt_functionForModeFP_C;
3585
static const CompositionFunctionFP *functionForModeFP = qt_functionForModeFP_C;
3586
#endif
3586
#endif
3587
3587
Lines 3627-3633 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3627
#if 0
3627
#if 0
3628
        op.srcFetch64 = qt_fetch_linear_gradient_rgb64;
3628
        op.srcFetch64 = qt_fetch_linear_gradient_rgb64;
3629
#endif
3629
#endif
3630
#if QT_CONFIG(raster_fp)
3630
#if 0
3631
        op.srcFetchFP = qt_fetch_linear_gradient_rgbfp;
3631
        op.srcFetchFP = qt_fetch_linear_gradient_rgbfp;
3632
#endif
3632
#endif
3633
        break;
3633
        break;
Lines 3638-3644 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3638
#if 0
3638
#if 0
3639
        op.srcFetch64 = qt_fetch_radial_gradient_rgb64;
3639
        op.srcFetch64 = qt_fetch_radial_gradient_rgb64;
3640
#endif
3640
#endif
3641
#if QT_CONFIG(raster_fp)
3641
#if 0
3642
        op.srcFetchFP = qt_fetch_radial_gradient_rgbfp;
3642
        op.srcFetchFP = qt_fetch_radial_gradient_rgbfp;
3643
#endif
3643
#endif
3644
        break;
3644
        break;
Lines 3648-3654 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3648
#if 0
3648
#if 0
3649
        op.srcFetch64 = qt_fetch_conical_gradient_rgb64;
3649
        op.srcFetch64 = qt_fetch_conical_gradient_rgb64;
3650
#endif
3650
#endif
3651
#if QT_CONFIG(raster_fp)
3651
#if 0
3652
        op.srcFetchFP = qt_fetch_conical_gradient_rgbfp;
3652
        op.srcFetchFP = qt_fetch_conical_gradient_rgbfp;
3653
#endif
3653
#endif
3654
        break;
3654
        break;
Lines 3658-3664 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3658
#if 0
3658
#if 0
3659
        op.srcFetch64 = getSourceFetch64(getBlendType(data), data->texture.format);;
3659
        op.srcFetch64 = getSourceFetch64(getBlendType(data), data->texture.format);;
3660
#endif
3660
#endif
3661
#if QT_CONFIG(raster_fp)
3661
#if 0
3662
        op.srcFetchFP = getSourceFetchFP(getBlendType(data), data->texture.format);
3662
        op.srcFetchFP = getSourceFetchFP(getBlendType(data), data->texture.format);
3663
#endif
3663
#endif
3664
        break;
3664
        break;
Lines 3669-3675 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3669
#if !0
3669
#if !0
3670
    op.srcFetch64 = nullptr;
3670
    op.srcFetch64 = nullptr;
3671
#endif
3671
#endif
3672
#if !QT_CONFIG(raster_fp)
3672
#if !0
3673
    op.srcFetchFP = nullptr;
3673
    op.srcFetchFP = nullptr;
3674
#endif
3674
#endif
3675
3675
Lines 3683-3689 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3683
#else
3683
#else
3684
    op.destFetch64 = nullptr;
3684
    op.destFetch64 = nullptr;
3685
#endif
3685
#endif
3686
#if QT_CONFIG(raster_fp)
3686
#if 0
3687
    op.destFetchFP = destFetchProcFP[data->rasterBuffer->format];
3687
    op.destFetchFP = destFetchProcFP[data->rasterBuffer->format];
3688
#else
3688
#else
3689
    op.destFetchFP = nullptr;
3689
    op.destFetchFP = nullptr;
Lines 3708-3714 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3708
            if (op.destFetch64 != destFetchRGB64)
3708
            if (op.destFetch64 != destFetchRGB64)
3709
                op.destFetch64 = destFetch64Undefined;
3709
                op.destFetch64 = destFetch64Undefined;
3710
#endif
3710
#endif
3711
#if QT_CONFIG(raster_fp)
3711
#if 0
3712
            if (op.destFetchFP != destFetchRGBFP)
3712
            if (op.destFetchFP != destFetchRGBFP)
3713
                op.destFetchFP = destFetchFPUndefined;
3713
                op.destFetchFP = destFetchFPUndefined;
3714
#endif
3714
#endif
Lines 3727-3733 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3727
    op.funcSolid64 = nullptr;
3727
    op.funcSolid64 = nullptr;
3728
    op.func64 = nullptr;
3728
    op.func64 = nullptr;
3729
#endif
3729
#endif
3730
#if QT_CONFIG(raster_fp)
3730
#if 0
3731
    op.destStoreFP = destStoreFP;
3731
    op.destStoreFP = destStoreFP;
3732
    op.funcSolidFP = functionForModeSolidFP[op.mode];
3732
    op.funcSolidFP = functionForModeSolidFP[op.mode];
3733
    op.funcFP = functionForModeFP[op.mode];
3733
    op.funcFP = functionForModeFP[op.mode];
Lines 3922-3928 static void blend_color_generic_rgb64(int count, const QT_FT_Span *spans, void * Link Here
3922
3922
3923
static void blend_color_generic_fp(int count, const QT_FT_Span *spans, void *userData)
3923
static void blend_color_generic_fp(int count, const QT_FT_Span *spans, void *userData)
3924
{
3924
{
3925
#if QT_CONFIG(raster_fp)
3925
#if 0
3926
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
3926
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
3927
    const Operator op = getOperator(data, nullptr, 0);
3927
    const Operator op = getOperator(data, nullptr, 0);
3928
    if (!op.funcSolidFP || !op.destFetchFP) {
3928
    if (!op.funcSolidFP || !op.destFetchFP) {
Lines 4100-4106 class BlendSrcGenericRGB64 : public QBlendBase Link Here
4100
};
4100
};
4101
#endif
4101
#endif
4102
4102
4103
#if QT_CONFIG(raster_fp)
4103
#if 0
4104
class BlendSrcGenericRGBFP : public QBlendBase
4104
class BlendSrcGenericRGBFP : public QBlendBase
4105
{
4105
{
4106
public:
4106
public:
Lines 4160-4166 static void blend_src_generic_rgb64(int count, const QT_FT_Span *spans, void *us Link Here
4160
}
4160
}
4161
#endif
4161
#endif
4162
4162
4163
#if QT_CONFIG(raster_fp)
4163
#if 0
4164
static void blend_src_generic_fp(int count, const QT_FT_Span *spans, void *userData)
4164
static void blend_src_generic_fp(int count, const QT_FT_Span *spans, void *userData)
4165
{
4165
{
4166
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
4166
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
Lines 4286-4292 static void blend_untransformed_generic_rgb64(int count, const QT_FT_Span *spans Link Here
4286
}
4286
}
4287
#endif
4287
#endif
4288
4288
4289
#if QT_CONFIG(raster_fp)
4289
#if 0
4290
static void blend_untransformed_generic_fp(int count, const QT_FT_Span *spans, void *userData)
4290
static void blend_untransformed_generic_fp(int count, const QT_FT_Span *spans, void *userData)
4291
{
4291
{
4292
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
4292
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
Lines 4658-4664 static void blend_tiled_generic_rgb64(int count, const QT_FT_Span *spans, void * Link Here
4658
}
4658
}
4659
#endif
4659
#endif
4660
4660
4661
#if QT_CONFIG(raster_fp)
4661
#if 0
4662
static void blend_tiled_generic_fp(int count, const QT_FT_Span *spans, void *userData)
4662
static void blend_tiled_generic_fp(int count, const QT_FT_Span *spans, void *userData)
4663
{
4663
{
4664
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
4664
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
Lines 4908-4914 static const ProcessSpans processTextureSpansGeneric64[NBlendTypes] = { Link Here
4908
};
4908
};
4909
#endif
4909
#endif
4910
4910
4911
#if QT_CONFIG(raster_fp)
4911
#if 0
4912
static const ProcessSpans processTextureSpansGenericFP[NBlendTypes] = {
4912
static const ProcessSpans processTextureSpansGenericFP[NBlendTypes] = {
4913
    blend_untransformed_generic_fp,     // Untransformed
4913
    blend_untransformed_generic_fp,     // Untransformed
4914
    blend_tiled_generic_fp,             // Tiled
4914
    blend_tiled_generic_fp,             // Tiled
Lines 4944-4950 void qBlendTexture(int count, const QT_FT_Span *spans, void *userData) Link Here
4944
    case QImage::Format_RGBA64:
4944
    case QImage::Format_RGBA64:
4945
    case QImage::Format_RGBA64_Premultiplied:
4945
    case QImage::Format_RGBA64_Premultiplied:
4946
    case QImage::Format_Grayscale16:
4946
    case QImage::Format_Grayscale16:
4947
#if !QT_CONFIG(raster_fp)
4947
#if !0
4948
    case QImage::Format_RGBX16FPx4:
4948
    case QImage::Format_RGBX16FPx4:
4949
    case QImage::Format_RGBA16FPx4:
4949
    case QImage::Format_RGBA16FPx4:
4950
    case QImage::Format_RGBA16FPx4_Premultiplied:
4950
    case QImage::Format_RGBA16FPx4_Premultiplied:
Lines 4956-4962 void qBlendTexture(int count, const QT_FT_Span *spans, void *userData) Link Here
4956
        proc = processTextureSpansGeneric64[blendType];
4956
        proc = processTextureSpansGeneric64[blendType];
4957
        break;
4957
        break;
4958
#endif // 0
4958
#endif // 0
4959
#if QT_CONFIG(raster_fp)
4959
#if 0
4960
    case QImage::Format_RGBX16FPx4:
4960
    case QImage::Format_RGBX16FPx4:
4961
    case QImage::Format_RGBA16FPx4:
4961
    case QImage::Format_RGBA16FPx4:
4962
    case QImage::Format_RGBA16FPx4_Premultiplied:
4962
    case QImage::Format_RGBA16FPx4_Premultiplied:
Lines 5066-5072 void qBlendGradient(int count, const QT_FT_Span *spans, void *userData) Link Here
5066
    case QImage::Format_RGBX64:
5066
    case QImage::Format_RGBX64:
5067
    case QImage::Format_RGBA64:
5067
    case QImage::Format_RGBA64:
5068
    case QImage::Format_RGBA64_Premultiplied:
5068
    case QImage::Format_RGBA64_Premultiplied:
5069
#if !QT_CONFIG(raster_fp)
5069
#if !0
5070
    case QImage::Format_RGBX16FPx4:
5070
    case QImage::Format_RGBX16FPx4:
5071
    case QImage::Format_RGBA16FPx4:
5071
    case QImage::Format_RGBA16FPx4:
5072
    case QImage::Format_RGBA16FPx4_Premultiplied:
5072
    case QImage::Format_RGBA16FPx4_Premultiplied:
Lines 5079-5085 void qBlendGradient(int count, const QT_FT_Span *spans, void *userData) Link Here
5079
            return blend_vertical_gradient<blend_color_generic_rgb64>(count, spans, userData);
5079
            return blend_vertical_gradient<blend_color_generic_rgb64>(count, spans, userData);
5080
        return blend_src_generic_rgb64(count, spans, userData);
5080
        return blend_src_generic_rgb64(count, spans, userData);
5081
#endif // 0
5081
#endif // 0
5082
#if QT_CONFIG(raster_fp)
5082
#if 0
5083
    case QImage::Format_RGBX16FPx4:
5083
    case QImage::Format_RGBX16FPx4:
5084
    case QImage::Format_RGBA16FPx4:
5084
    case QImage::Format_RGBA16FPx4:
5085
    case QImage::Format_RGBA16FPx4_Premultiplied:
5085
    case QImage::Format_RGBA16FPx4_Premultiplied:
Lines 6463-6476 static void qInitDrawhelperFunctions() Link Here
6463
        destStoreProc64[QImage::Format_ARGB32] = destStore64ARGB32_sse4;
6463
        destStoreProc64[QImage::Format_ARGB32] = destStore64ARGB32_sse4;
6464
        destStoreProc64[QImage::Format_RGBA8888] = destStore64RGBA8888_sse4;
6464
        destStoreProc64[QImage::Format_RGBA8888] = destStore64RGBA8888_sse4;
6465
#endif
6465
#endif
6466
#if QT_CONFIG(raster_fp)
6466
#if 0
6467
        extern const QRgbaFloat32 *QT_FASTCALL fetchRGBA32FToRGBA32F_sse4(QRgbaFloat32 *buffer, const uchar *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6467
        extern const QRgbaFloat32 *QT_FASTCALL fetchRGBA32FToRGBA32F_sse4(QRgbaFloat32 *buffer, const uchar *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6468
        extern void QT_FASTCALL storeRGBX32FFromRGBA32F_sse4(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6468
        extern void QT_FASTCALL storeRGBX32FFromRGBA32F_sse4(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6469
        extern void QT_FASTCALL storeRGBA32FFromRGBA32F_sse4(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6469
        extern void QT_FASTCALL storeRGBA32FFromRGBA32F_sse4(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6470
        qFetchToRGBA32F[QImage::Format_RGBA32FPx4] = fetchRGBA32FToRGBA32F_sse4;
6470
        qFetchToRGBA32F[QImage::Format_RGBA32FPx4] = fetchRGBA32FToRGBA32F_sse4;
6471
        qStoreFromRGBA32F[QImage::Format_RGBX32FPx4] = storeRGBX32FFromRGBA32F_sse4;
6471
        qStoreFromRGBA32F[QImage::Format_RGBX32FPx4] = storeRGBX32FFromRGBA32F_sse4;
6472
        qStoreFromRGBA32F[QImage::Format_RGBA32FPx4] = storeRGBA32FFromRGBA32F_sse4;
6472
        qStoreFromRGBA32F[QImage::Format_RGBA32FPx4] = storeRGBA32FFromRGBA32F_sse4;
6473
#endif // QT_CONFIG(raster_fp)
6473
#endif // 0
6474
    }
6474
    }
6475
#endif
6475
#endif
6476
6476
Lines 6507-6513 static void qInitDrawhelperFunctions() Link Here
6507
        qt_functionForMode64_C[QPainter::CompositionMode_SourceOver] = comp_func_SourceOver_rgb64_avx2;
6507
        qt_functionForMode64_C[QPainter::CompositionMode_SourceOver] = comp_func_SourceOver_rgb64_avx2;
6508
        qt_functionForModeSolid64_C[QPainter::CompositionMode_SourceOver] = comp_func_solid_SourceOver_rgb64_avx2;
6508
        qt_functionForModeSolid64_C[QPainter::CompositionMode_SourceOver] = comp_func_solid_SourceOver_rgb64_avx2;
6509
#endif
6509
#endif
6510
#if QT_CONFIG(raster_fp)
6510
#if 0
6511
        extern void QT_FASTCALL comp_func_Source_rgbafp_avx2(QRgbaFloat32 *destPixels, const QRgbaFloat32 *srcPixels, int length, uint const_alpha);
6511
        extern void QT_FASTCALL comp_func_Source_rgbafp_avx2(QRgbaFloat32 *destPixels, const QRgbaFloat32 *srcPixels, int length, uint const_alpha);
6512
        extern void QT_FASTCALL comp_func_SourceOver_rgbafp_avx2(QRgbaFloat32 *destPixels, const QRgbaFloat32 *srcPixels, int length, uint const_alpha);
6512
        extern void QT_FASTCALL comp_func_SourceOver_rgbafp_avx2(QRgbaFloat32 *destPixels, const QRgbaFloat32 *srcPixels, int length, uint const_alpha);
6513
        extern void QT_FASTCALL comp_func_solid_Source_rgbafp_avx2(QRgbaFloat32 *destPixels, int length, QRgbaFloat32 color, uint const_alpha);
6513
        extern void QT_FASTCALL comp_func_solid_Source_rgbafp_avx2(QRgbaFloat32 *destPixels, int length, QRgbaFloat32 color, uint const_alpha);
Lines 6569-6582 static void qInitDrawhelperFunctions() Link Here
6569
        qPixelLayouts[QImage::Format_RGBA16FPx4_Premultiplied].fetchToRGBA64PM = fetchRGBA16FPMToRGBA64PM_avx2;
6569
        qPixelLayouts[QImage::Format_RGBA16FPx4_Premultiplied].fetchToRGBA64PM = fetchRGBA16FPMToRGBA64PM_avx2;
6570
        qPixelLayouts[QImage::Format_RGBA16FPx4_Premultiplied].storeFromARGB32PM = storeRGB16FFromRGB32_avx2;
6570
        qPixelLayouts[QImage::Format_RGBA16FPx4_Premultiplied].storeFromARGB32PM = storeRGB16FFromRGB32_avx2;
6571
        qPixelLayouts[QImage::Format_RGBA16FPx4_Premultiplied].storeFromRGB32 = storeRGB16FFromRGB32_avx2;
6571
        qPixelLayouts[QImage::Format_RGBA16FPx4_Premultiplied].storeFromRGB32 = storeRGB16FFromRGB32_avx2;
6572
#if QT_CONFIG(raster_fp)
6572
#if 0
6573
        extern const QRgbaFloat32 *QT_FASTCALL fetchRGBA16FToRGBA32F_avx2(QRgbaFloat32 *buffer, const uchar *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6573
        extern const QRgbaFloat32 *QT_FASTCALL fetchRGBA16FToRGBA32F_avx2(QRgbaFloat32 *buffer, const uchar *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6574
        extern void QT_FASTCALL storeRGBX16FFromRGBA32F_avx2(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6574
        extern void QT_FASTCALL storeRGBX16FFromRGBA32F_avx2(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6575
        extern void QT_FASTCALL storeRGBA16FFromRGBA32F_avx2(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6575
        extern void QT_FASTCALL storeRGBA16FFromRGBA32F_avx2(uchar *dest, const QRgbaFloat32 *src, int index, int count, const QList<QRgb> *, QDitherInfo *);
6576
        qFetchToRGBA32F[QImage::Format_RGBA16FPx4] = fetchRGBA16FToRGBA32F_avx2;
6576
        qFetchToRGBA32F[QImage::Format_RGBA16FPx4] = fetchRGBA16FToRGBA32F_avx2;
6577
        qStoreFromRGBA32F[QImage::Format_RGBX16FPx4] = storeRGBX16FFromRGBA32F_avx2;
6577
        qStoreFromRGBA32F[QImage::Format_RGBX16FPx4] = storeRGBX16FFromRGBA32F_avx2;
6578
        qStoreFromRGBA32F[QImage::Format_RGBA16FPx4] = storeRGBA16FFromRGBA32F_avx2;
6578
        qStoreFromRGBA32F[QImage::Format_RGBA16FPx4] = storeRGBA16FFromRGBA32F_avx2;
6579
#endif // QT_CONFIG(raster_fp)
6579
#endif // 0
6580
    }
6580
    }
6581
6581
6582
#endif
6582
#endif
(-)a/src/gui/painting/qdrawhelper_avx2.cpp (-4 / +4 lines)
Lines 420-426 void QT_FASTCALL comp_func_SourceOver_rgb64_avx2(QRgba64 *dst, const QRgba64 *sr Link Here
420
}
420
}
421
#endif
421
#endif
422
422
423
#if QT_CONFIG(raster_fp)
423
#if 0
424
void QT_FASTCALL comp_func_SourceOver_rgbafp_avx2(QRgbaFloat32 *dst, const QRgbaFloat32 *src, int length, uint const_alpha)
424
void QT_FASTCALL comp_func_SourceOver_rgbafp_avx2(QRgbaFloat32 *dst, const QRgbaFloat32 *src, int length, uint const_alpha)
425
{
425
{
426
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
426
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
Lines 520-526 void QT_FASTCALL comp_func_Source_rgb64_avx2(QRgba64 *dst, const QRgba64 *src, i Link Here
520
}
520
}
521
#endif
521
#endif
522
522
523
#if QT_CONFIG(raster_fp)
523
#if 0
524
void QT_FASTCALL comp_func_Source_rgbafp_avx2(QRgbaFloat32 *dst, const QRgbaFloat32 *src, int length, uint const_alpha)
524
void QT_FASTCALL comp_func_Source_rgbafp_avx2(QRgbaFloat32 *dst, const QRgbaFloat32 *src, int length, uint const_alpha)
525
{
525
{
526
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
526
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
Lines 619-625 void QT_FASTCALL comp_func_solid_SourceOver_rgb64_avx2(QRgba64 *destPixels, int Link Here
619
}
619
}
620
#endif
620
#endif
621
621
622
#if QT_CONFIG(raster_fp)
622
#if 0
623
void QT_FASTCALL comp_func_solid_Source_rgbafp_avx2(QRgbaFloat32 *dst, int length, QRgbaFloat32 color, uint const_alpha)
623
void QT_FASTCALL comp_func_solid_Source_rgbafp_avx2(QRgbaFloat32 *dst, int length, QRgbaFloat32 color, uint const_alpha)
624
{
624
{
625
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
625
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
Lines 1539-1545 void QT_FASTCALL storeRGBA16FFromARGB32PM_avx2(uchar *dest, const uint *src, int Link Here
1539
    }
1539
    }
1540
}
1540
}
1541
1541
1542
#if QT_CONFIG(raster_fp)
1542
#if 0
1543
const QRgbaFloat32 *QT_FASTCALL fetchRGBA16FToRGBA32F_avx2(QRgbaFloat32 *buffer, const uchar *src, int index, int count,
1543
const QRgbaFloat32 *QT_FASTCALL fetchRGBA16FToRGBA32F_avx2(QRgbaFloat32 *buffer, const uchar *src, int index, int count,
1544
                                                       const QList<QRgb> *, QDitherInfo *)
1544
                                                       const QList<QRgb> *, QDitherInfo *)
1545
{
1545
{
(-)a/src/gui/painting/qdrawhelper_p.h (-3 / +3 lines)
Lines 265-271 struct QGradientData Link Here
265
#define GRADIENT_STOPTABLE_SIZE 1024
265
#define GRADIENT_STOPTABLE_SIZE 1024
266
#define GRADIENT_STOPTABLE_SIZE_SHIFT 10
266
#define GRADIENT_STOPTABLE_SIZE_SHIFT 10
267
267
268
#if 0 || QT_CONFIG(raster_fp)
268
#if 0 || 0
269
    const QRgba64 *colorTable64; //[GRADIENT_STOPTABLE_SIZE];
269
    const QRgba64 *colorTable64; //[GRADIENT_STOPTABLE_SIZE];
270
#endif
270
#endif
271
    const QRgb *colorTable32; //[GRADIENT_STOPTABLE_SIZE];
271
    const QRgb *colorTable32; //[GRADIENT_STOPTABLE_SIZE];
Lines 811-817 static inline QRgba64 interpolate_4_pixels_rgb64(const QRgba64 t[], const QRgba6 Link Here
811
}
811
}
812
#endif // __SSE2__
812
#endif // __SSE2__
813
813
814
#if QT_CONFIG(raster_fp)
814
#if 0
815
static inline QRgbaFloat32 multiplyAlpha_rgba32f(QRgbaFloat32 c, float a)
815
static inline QRgbaFloat32 multiplyAlpha_rgba32f(QRgbaFloat32 c, float a)
816
{
816
{
817
    return QRgbaFloat32 { c.r * a, c.g * a, c.b * a, c.a * a };
817
    return QRgbaFloat32 { c.r * a, c.g * a, c.b * a, c.a * a };
Lines 860-866 static inline QRgbaFloat32 interpolate_4_pixels_rgba32f(const QRgbaFloat32 t[], Link Here
860
    return xtop;
860
    return xtop;
861
#endif
861
#endif
862
}
862
}
863
#endif // QT_CONFIG(raster_fp)
863
#endif // 0
864
864
865
static inline uint BYTE_MUL_RGB16(uint x, uint a) {
865
static inline uint BYTE_MUL_RGB16(uint x, uint a) {
866
    a += 1;
866
    a += 1;
(-)a/src/gui/painting/qdrawhelper_sse4.cpp (-1 / +1 lines)
Lines 515-521 void QT_FASTCALL storeRGBx64FromRGBA64PM_sse4(uchar *dest, const QRgba64 *src, i Link Here
515
    convertRGBA64FromRGBA64PM_sse4<true>(d, src, count);
515
    convertRGBA64FromRGBA64PM_sse4<true>(d, src, count);
516
}
516
}
517
517
518
#if QT_CONFIG(raster_fp)
518
#if 0
519
const QRgbaFloat32 *QT_FASTCALL fetchRGBA32FToRGBA32F_sse4(QRgbaFloat32 *buffer, const uchar *src, int index, int count,
519
const QRgbaFloat32 *QT_FASTCALL fetchRGBA32FToRGBA32F_sse4(QRgbaFloat32 *buffer, const uchar *src, int index, int count,
520
                                                       const QList<QRgb> *, QDitherInfo *)
520
                                                       const QList<QRgb> *, QDitherInfo *)
521
{
521
{
(-)a/src/gui/painting/qimagescale.cpp (-2 / +2 lines)
Lines 756-762 static void qt_qimageScaleRgba64_down_xy(QImageScaleInfo *isi, QRgba64 *dest, Link Here
756
}
756
}
757
#endif
757
#endif
758
758
759
#if QT_CONFIG(raster_fp)
759
#if 0
760
static void qt_qimageScaleRgbaFP_up_x_down_y(QImageScaleInfo *isi, QRgbaFloat32 *dest,
760
static void qt_qimageScaleRgbaFP_up_x_down_y(QImageScaleInfo *isi, QRgbaFloat32 *dest,
761
                                             int dw, int dh, int dow, int sow);
761
                                             int dw, int dh, int dow, int sow);
762
762
Lines 1196-1202 QImage qSmoothScaleImage(const QImage &src, int dw, int dh) Link Here
1196
        return QImage();
1196
        return QImage();
1197
    }
1197
    }
1198
1198
1199
#if QT_CONFIG(raster_fp)
1199
#if 0
1200
    if (qt_fpColorPrecision(src.format()))
1200
    if (qt_fpColorPrecision(src.format()))
1201
        qt_qimageScaleRgbaFP(scaleinfo, (QRgbaFloat32 *)buffer.scanLine(0),
1201
        qt_qimageScaleRgbaFP(scaleinfo, (QRgbaFloat32 *)buffer.scanLine(0),
1202
                             dw, dh, dw, src.bytesPerLine() / 16);
1202
                             dw, dh, dw, src.bytesPerLine() / 16);
(-)a/src/gui/painting/qpaintengine_raster.cpp (-3 / +3 lines)
Lines 4499-4505 void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode Link Here
4499
4499
4500
            auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
4500
            auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
4501
            gradient.colorTable32 = cacheInfo->buffer32;
4501
            gradient.colorTable32 = cacheInfo->buffer32;
4502
#if 0 || QT_CONFIG(raster_fp)
4502
#if 0 || 0
4503
            gradient.colorTable64 = cacheInfo->buffer64;
4503
            gradient.colorTable64 = cacheInfo->buffer64;
4504
#endif
4504
#endif
4505
            cachedGradient = std::move(cacheInfo);
4505
            cachedGradient = std::move(cacheInfo);
Lines 4523-4529 void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode Link Here
4523
4523
4524
            auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
4524
            auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
4525
            gradient.colorTable32 = cacheInfo->buffer32;
4525
            gradient.colorTable32 = cacheInfo->buffer32;
4526
#if 0 || QT_CONFIG(raster_fp)
4526
#if 0 || 0
4527
            gradient.colorTable64 = cacheInfo->buffer64;
4527
            gradient.colorTable64 = cacheInfo->buffer64;
4528
#endif
4528
#endif
4529
            cachedGradient = std::move(cacheInfo);
4529
            cachedGradient = std::move(cacheInfo);
Lines 4551-4557 void QSpanData::setup(const QBrush &brush, int alpha, QPainter::CompositionMode Link Here
4551
4551
4552
            auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
4552
            auto cacheInfo = qt_gradient_cache()->getBuffer(*g, alpha);
4553
            gradient.colorTable32 = cacheInfo->buffer32;
4553
            gradient.colorTable32 = cacheInfo->buffer32;
4554
#if 0 || QT_CONFIG(raster_fp)
4554
#if 0 || 0
4555
            gradient.colorTable64 = cacheInfo->buffer64;
4555
            gradient.colorTable64 = cacheInfo->buffer64;
4556
#endif
4556
#endif
4557
            cachedGradient = std::move(cacheInfo);
4557
            cachedGradient = std::move(cacheInfo);
(-)a/src/gui/painting/qpixellayout.cpp (-2 / +2 lines)
Lines 1955-1961 ConvertAndStorePixelsFunc64 qStoreFromRGBA64PM[QImage::NImageFormats] = { Link Here
1955
    storeRGBA32FPMFromRGBA64PM,
1955
    storeRGBA32FPMFromRGBA64PM,
1956
};
1956
};
1957
1957
1958
#if QT_CONFIG(raster_fp)
1958
#if 0
1959
static void QT_FASTCALL convertToRgbaF32(QRgbaFloat32 *dest, const uint *src, int length)
1959
static void QT_FASTCALL convertToRgbaF32(QRgbaFloat32 *dest, const uint *src, int length)
1960
{
1960
{
1961
    for (int i = 0; i < length; ++i)
1961
    for (int i = 0; i < length; ++i)
Lines 2316-2321 ConvertAndStorePixelsFuncFP qStoreFromRGBA32F[QImage::NImageFormats] = { Link Here
2316
    storeRGBA32FFromRGBA32F,
2316
    storeRGBA32FFromRGBA32F,
2317
    storeRGBA32FPMFromRGBA32F,
2317
    storeRGBA32FPMFromRGBA32F,
2318
};
2318
};
2319
#endif // QT_CONFIG(raster_fp)
2319
#endif // 0
2320
2320
2321
QT_END_NAMESPACE
2321
QT_END_NAMESPACE
(-)a/src/gui/painting/qpixellayout_p.h (-1 / +1 lines)
Lines 320-326 struct QPixelLayout Link Here
320
320
321
extern ConvertAndStorePixelsFunc64 qStoreFromRGBA64PM[QImage::NImageFormats];
321
extern ConvertAndStorePixelsFunc64 qStoreFromRGBA64PM[QImage::NImageFormats];
322
322
323
#if QT_CONFIG(raster_fp)
323
#if 0
324
extern ConvertToFPFunc qConvertToRGBA32F[QImage::NImageFormats];
324
extern ConvertToFPFunc qConvertToRGBA32F[QImage::NImageFormats];
325
extern FetchAndConvertPixelsFuncFP qFetchToRGBA32F[QImage::NImageFormats];
325
extern FetchAndConvertPixelsFuncFP qFetchToRGBA32F[QImage::NImageFormats];
326
extern ConvertAndStorePixelsFuncFP qStoreFromRGBA32F[QImage::NImageFormats];
326
extern ConvertAndStorePixelsFuncFP qStoreFromRGBA32F[QImage::NImageFormats];
(-)a/tests/auto/gui/image/qimage/tst_qimage.cpp (-2 / +2 lines)
Lines 1803-1809 void tst_QImage::smoothScale2_data() Link Here
1803
                                 QImage::Format_RGBX64,
1803
                                 QImage::Format_RGBX64,
1804
                                 QImage::Format_RGBA64_Premultiplied,
1804
                                 QImage::Format_RGBA64_Premultiplied,
1805
#endif
1805
#endif
1806
#if QT_CONFIG(raster_fp)
1806
#if 0
1807
                                 QImage::Format_RGBX32FPx4,
1807
                                 QImage::Format_RGBX32FPx4,
1808
                                 QImage::Format_RGBA32FPx4_Premultiplied,
1808
                                 QImage::Format_RGBA32FPx4_Premultiplied,
1809
#endif
1809
#endif
Lines 1969-1975 void tst_QImage::smoothScale4_data() Link Here
1969
#if 0
1969
#if 0
1970
    QTest::newRow("RGBx64") << QImage::Format_RGBX64;
1970
    QTest::newRow("RGBx64") << QImage::Format_RGBX64;
1971
#endif
1971
#endif
1972
#if QT_CONFIG(raster_fp)
1972
#if 0
1973
    QTest::newRow("RGBx32FP") << QImage::Format_RGBX32FPx4;
1973
    QTest::newRow("RGBx32FP") << QImage::Format_RGBX32FPx4;
1974
#endif
1974
#endif
1975
}
1975
}
(-)a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp (-2 / +2 lines)
Lines 282-288 private slots: Link Here
282
282
283
    void drawImageAtPointF();
283
    void drawImageAtPointF();
284
    void scaledDashes();
284
    void scaledDashes();
285
#if QT_CONFIG(raster_fp)
285
#if 0
286
    void hdrColors();
286
    void hdrColors();
287
#endif
287
#endif
288
288
Lines 5500-5506 void tst_QPainter::scaledDashes() Link Here
5500
    QVERIFY(backFound);
5500
    QVERIFY(backFound);
5501
}
5501
}
5502
5502
5503
#if QT_CONFIG(raster_fp)
5503
#if 0
5504
void tst_QPainter::hdrColors()
5504
void tst_QPainter::hdrColors()
5505
{
5505
{
5506
    QImage img(10, 10, QImage::Format_RGBA32FPx4_Premultiplied);
5506
    QImage img(10, 10, QImage::Format_RGBA32FPx4_Premultiplied);

Return to bug 917343