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 (-2 / +2 lines)
Lines 4654-4660 QImage QImage::smoothScaled(int w, int h) const Link Here
4654
    case QImage::Format_RGBX8888:
4654
    case QImage::Format_RGBX8888:
4655
#endif
4655
#endif
4656
    case QImage::Format_RGBA8888_Premultiplied:
4656
    case QImage::Format_RGBA8888_Premultiplied:
4657
#if QT_CONFIG(raster_64bit)
4657
#if 0
4658
    case QImage::Format_RGBX64:
4658
    case QImage::Format_RGBX64:
4659
    case QImage::Format_RGBA64_Premultiplied:
4659
    case QImage::Format_RGBA64_Premultiplied:
4660
        break;
4660
        break;
Lines 4845-4851 QImage Q_TRACE_INSTRUMENT(qtgui) QImage::transformed(const QTransform &matrix, Q Link Here
4845
        case QImage::Format_RGBX8888:
4845
        case QImage::Format_RGBX8888:
4846
#endif
4846
#endif
4847
        case QImage::Format_RGBA8888_Premultiplied:
4847
        case QImage::Format_RGBA8888_Premultiplied:
4848
#if QT_CONFIG(raster_64bit)
4848
#if 0
4849
        case QImage::Format_RGBX64:
4849
        case QImage::Format_RGBX64:
4850
        case QImage::Format_RGBA64_Premultiplied:
4850
        case QImage::Format_RGBA64_Premultiplied:
4851
#endif
4851
#endif
(-)a/src/gui/painting/qcompositionfunctions.cpp (-42 / +42 lines)
Lines 105-111 struct Rgba64OperationsBase Link Here
105
    { ::memcpy(dest, src, len * sizeof(Type)); }
105
    { ::memcpy(dest, src, len * sizeof(Type)); }
106
};
106
};
107
107
108
#if QT_CONFIG(raster_64bit)
108
#if 0
109
const Rgba64OperationsBase::Type Rgba64OperationsBase::clear = QRgba64::fromRgba64(0);
109
const Rgba64OperationsBase::Type Rgba64OperationsBase::clear = QRgba64::fromRgba64(0);
110
110
111
struct Rgba64OperationsC : public Rgba64OperationsBase
111
struct Rgba64OperationsC : public Rgba64OperationsBase
Lines 288-294 typedef Rgba64OperationsNEON Rgba64Operations; Link Here
288
typedef Rgba64OperationsC Rgba64Operations;
288
typedef Rgba64OperationsC Rgba64Operations;
289
#endif
289
#endif
290
290
291
#endif // QT_CONFIG(raster_64bit)
291
#endif // 0
292
292
293
#if QT_CONFIG(raster_fp)
293
#if QT_CONFIG(raster_fp)
294
294
Lines 497-503 void QT_FASTCALL comp_func_Clear(uint *dest, const uint *, int length, uint cons Link Here
497
    comp_func_Clear_template<Argb32Operations>(dest, length, const_alpha);
497
    comp_func_Clear_template<Argb32Operations>(dest, length, const_alpha);
498
}
498
}
499
499
500
#if QT_CONFIG(raster_64bit)
500
#if 0
501
void QT_FASTCALL comp_func_solid_Clear_rgb64(QRgba64 *dest, int length, QRgba64, uint const_alpha)
501
void QT_FASTCALL comp_func_solid_Clear_rgb64(QRgba64 *dest, int length, QRgba64, uint const_alpha)
502
{
502
{
503
    comp_func_Clear_template<Rgba64Operations>(dest, length, const_alpha);
503
    comp_func_Clear_template<Rgba64Operations>(dest, length, const_alpha);
Lines 567-573 void QT_FASTCALL comp_func_Source(uint *Q_DECL_RESTRICT dest, const uint *Q_DECL Link Here
567
    comp_func_Source_template<Argb32Operations>(dest, src, length, const_alpha);
567
    comp_func_Source_template<Argb32Operations>(dest, src, length, const_alpha);
568
}
568
}
569
569
570
#if QT_CONFIG(raster_64bit)
570
#if 0
571
void QT_FASTCALL comp_func_solid_Source_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
571
void QT_FASTCALL comp_func_solid_Source_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
572
{
572
{
573
    comp_func_solid_Source_template<Rgba64Operations>(dest, length, color, const_alpha);
573
    comp_func_solid_Source_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 599-605 void QT_FASTCALL comp_func_Destination(uint *, const uint *, int, uint) Link Here
599
{
599
{
600
}
600
}
601
601
602
#if QT_CONFIG(raster_64bit)
602
#if 0
603
void QT_FASTCALL comp_func_solid_Destination_rgb64(QRgba64 *, int, QRgba64, uint)
603
void QT_FASTCALL comp_func_solid_Destination_rgb64(QRgba64 *, int, QRgba64, uint)
604
{
604
{
605
}
605
}
Lines 677-683 void QT_FASTCALL comp_func_SourceOver(uint *Q_DECL_RESTRICT dest, const uint *Q_ Link Here
677
    comp_func_SourceOver_template<Argb32Operations>(dest, src, length, const_alpha);
677
    comp_func_SourceOver_template<Argb32Operations>(dest, src, length, const_alpha);
678
}
678
}
679
679
680
#if QT_CONFIG(raster_64bit)
680
#if 0
681
void QT_FASTCALL comp_func_solid_SourceOver_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
681
void QT_FASTCALL comp_func_solid_SourceOver_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
682
{
682
{
683
    comp_func_solid_SourceOver_template<Rgba64Operations>(dest, length, color, const_alpha);
683
    comp_func_solid_SourceOver_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 751-757 void QT_FASTCALL comp_func_DestinationOver(uint *Q_DECL_RESTRICT dest, const uin Link Here
751
    comp_func_DestinationOver_template<Argb32Operations>(dest, src, length, const_alpha);
751
    comp_func_DestinationOver_template<Argb32Operations>(dest, src, length, const_alpha);
752
}
752
}
753
753
754
#if QT_CONFIG(raster_64bit)
754
#if 0
755
void QT_FASTCALL comp_func_solid_DestinationOver_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
755
void QT_FASTCALL comp_func_solid_DestinationOver_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
756
{
756
{
757
    comp_func_solid_DestinationOver_template<Rgba64Operations>(dest, length, color, const_alpha);
757
    comp_func_solid_DestinationOver_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 829-835 void QT_FASTCALL comp_func_SourceIn(uint *Q_DECL_RESTRICT dest, const uint *Q_DE Link Here
829
    comp_func_SourceIn_template<Argb32Operations>(dest, src, length, const_alpha);
829
    comp_func_SourceIn_template<Argb32Operations>(dest, src, length, const_alpha);
830
}
830
}
831
831
832
#if QT_CONFIG(raster_64bit)
832
#if 0
833
void QT_FASTCALL comp_func_solid_SourceIn_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
833
void QT_FASTCALL comp_func_solid_SourceIn_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
834
{
834
{
835
    comp_func_solid_SourceIn_template<Rgba64Operations>(dest, length, color, const_alpha);
835
    comp_func_solid_SourceIn_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 902-908 void QT_FASTCALL comp_func_DestinationIn(uint *Q_DECL_RESTRICT dest, const uint Link Here
902
    comp_func_DestinationIn_template<Argb32Operations>(dest, src, length, const_alpha);
902
    comp_func_DestinationIn_template<Argb32Operations>(dest, src, length, const_alpha);
903
}
903
}
904
904
905
#if QT_CONFIG(raster_64bit)
905
#if 0
906
void QT_FASTCALL comp_func_solid_DestinationIn_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
906
void QT_FASTCALL comp_func_solid_DestinationIn_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
907
{
907
{
908
    comp_func_solid_DestinationIn_template<Rgba64Operations>(dest, length, color, const_alpha);
908
    comp_func_solid_DestinationIn_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 978-984 void QT_FASTCALL comp_func_SourceOut(uint *Q_DECL_RESTRICT dest, const uint *Q_D Link Here
978
    comp_func_SourceOut_template<Argb32Operations>(dest, src, length, const_alpha);
978
    comp_func_SourceOut_template<Argb32Operations>(dest, src, length, const_alpha);
979
}
979
}
980
980
981
#if QT_CONFIG(raster_64bit)
981
#if 0
982
void QT_FASTCALL comp_func_solid_SourceOut_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
982
void QT_FASTCALL comp_func_solid_SourceOut_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
983
{
983
{
984
    comp_func_solid_SourceOut_template<Rgba64Operations>(dest, length, color, const_alpha);
984
    comp_func_solid_SourceOut_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 1051-1057 void QT_FASTCALL comp_func_DestinationOut(uint *Q_DECL_RESTRICT dest, const uint Link Here
1051
    comp_func_DestinationOut_template<Argb32Operations>(dest, src, length, const_alpha);
1051
    comp_func_DestinationOut_template<Argb32Operations>(dest, src, length, const_alpha);
1052
}
1052
}
1053
1053
1054
#if QT_CONFIG(raster_64bit)
1054
#if 0
1055
void QT_FASTCALL comp_func_solid_DestinationOut_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1055
void QT_FASTCALL comp_func_solid_DestinationOut_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1056
{
1056
{
1057
    comp_func_solid_DestinationOut_template<Rgba64Operations>(dest, length, color, const_alpha);
1057
    comp_func_solid_DestinationOut_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 1124-1130 void QT_FASTCALL comp_func_SourceAtop(uint *Q_DECL_RESTRICT dest, const uint *Q_ Link Here
1124
    comp_func_SourceAtop_template<Argb32Operations>(dest, src, length, const_alpha);
1124
    comp_func_SourceAtop_template<Argb32Operations>(dest, src, length, const_alpha);
1125
}
1125
}
1126
1126
1127
#if QT_CONFIG(raster_64bit)
1127
#if 0
1128
void QT_FASTCALL comp_func_solid_SourceAtop_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1128
void QT_FASTCALL comp_func_solid_SourceAtop_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1129
{
1129
{
1130
    comp_func_solid_SourceAtop_template<Rgba64Operations>(dest, length, color, const_alpha);
1130
    comp_func_solid_SourceAtop_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 1202-1208 void QT_FASTCALL comp_func_DestinationAtop(uint *Q_DECL_RESTRICT dest, const uin Link Here
1202
    comp_func_DestinationAtop_template<Argb32Operations>(dest, src, length, const_alpha);
1202
    comp_func_DestinationAtop_template<Argb32Operations>(dest, src, length, const_alpha);
1203
}
1203
}
1204
1204
1205
#if QT_CONFIG(raster_64bit)
1205
#if 0
1206
void QT_FASTCALL comp_func_solid_DestinationAtop_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1206
void QT_FASTCALL comp_func_solid_DestinationAtop_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1207
{
1207
{
1208
    comp_func_solid_DestinationAtop_template<Rgba64Operations>(dest, length, color, const_alpha);
1208
    comp_func_solid_DestinationAtop_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 1276-1282 void QT_FASTCALL comp_func_XOR(uint *Q_DECL_RESTRICT dest, const uint *Q_DECL_RE Link Here
1276
    comp_func_XOR_template<Argb32Operations>(dest, src, length, const_alpha);
1276
    comp_func_XOR_template<Argb32Operations>(dest, src, length, const_alpha);
1277
}
1277
}
1278
1278
1279
#if QT_CONFIG(raster_64bit)
1279
#if 0
1280
void QT_FASTCALL comp_func_solid_XOR_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1280
void QT_FASTCALL comp_func_solid_XOR_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1281
{
1281
{
1282
    comp_func_solid_XOR_template<Rgba64Operations>(dest, length, color, const_alpha);
1282
    comp_func_solid_XOR_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 1305-1311 struct QFullCoverage { Link Here
1305
    {
1305
    {
1306
        *dest = src;
1306
        *dest = src;
1307
    }
1307
    }
1308
#if QT_CONFIG(raster_64bit)
1308
#if 0
1309
    inline void store(QRgba64 *dest, const QRgba64 src) const
1309
    inline void store(QRgba64 *dest, const QRgba64 src) const
1310
    {
1310
    {
1311
        *dest = src;
1311
        *dest = src;
Lines 1335-1341 struct QPartialCoverage { Link Here
1335
    {
1335
    {
1336
        store_template<Argb32Operations>(dest, src);
1336
        store_template<Argb32Operations>(dest, src);
1337
    }
1337
    }
1338
#if QT_CONFIG(raster_64bit)
1338
#if 0
1339
    inline void store(QRgba64 *dest, const QRgba64 src) const
1339
    inline void store(QRgba64 *dest, const QRgba64 src) const
1340
    {
1340
    {
1341
        store_template<Rgba64Operations>(dest, src);
1341
        store_template<Rgba64Operations>(dest, src);
Lines 1358-1364 static inline int mix_alpha(int da, int sa) Link Here
1358
    return 255 - qt_div_255((255 - sa) * (255 - da));
1358
    return 255 - qt_div_255((255 - sa) * (255 - da));
1359
}
1359
}
1360
1360
1361
#if QT_CONFIG(raster_64bit)
1361
#if 0
1362
static inline uint mix_alpha_rgb64(uint da, uint sa)
1362
static inline uint mix_alpha_rgb64(uint da, uint sa)
1363
{
1363
{
1364
    return 65535U - qt_div_65535((65535U - sa) * (65535U - da));
1364
    return 65535U - qt_div_65535((65535U - sa) * (65535U - da));
Lines 1429-1435 void QT_FASTCALL comp_func_Plus(uint *Q_DECL_RESTRICT dest, const uint *Q_DECL_R Link Here
1429
    comp_func_Plus_template<Argb32Operations>(dest, src, length, const_alpha);
1429
    comp_func_Plus_template<Argb32Operations>(dest, src, length, const_alpha);
1430
}
1430
}
1431
1431
1432
#if QT_CONFIG(raster_64bit)
1432
#if 0
1433
void QT_FASTCALL comp_func_solid_Plus_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1433
void QT_FASTCALL comp_func_solid_Plus_rgb64(QRgba64 *dest, int length, QRgba64 color, uint const_alpha)
1434
{
1434
{
1435
    comp_func_solid_Plus_template<Rgba64Operations>(dest, length, color, const_alpha);
1435
    comp_func_solid_Plus_template<Rgba64Operations>(dest, length, color, const_alpha);
Lines 1492-1498 void QT_FASTCALL comp_func_solid_Multiply(uint *dest, int length, uint color, ui Link Here
1492
        comp_func_solid_Multiply_impl(dest, length, color, QPartialCoverage(const_alpha));
1492
        comp_func_solid_Multiply_impl(dest, length, color, QPartialCoverage(const_alpha));
1493
}
1493
}
1494
1494
1495
#if QT_CONFIG(raster_64bit)
1495
#if 0
1496
static inline uint multiply_op_rgb64(uint dst, uint src, uint da, uint sa)
1496
static inline uint multiply_op_rgb64(uint dst, uint src, uint da, uint sa)
1497
{
1497
{
1498
    return qt_div_65535(src * dst + src * (65535U - da) + dst * (65535U - sa));
1498
    return qt_div_65535(src * dst + src * (65535U - da) + dst * (65535U - sa));
Lines 1598-1604 void QT_FASTCALL comp_func_Multiply(uint *Q_DECL_RESTRICT dest, const uint *Q_DE Link Here
1598
        comp_func_Multiply_impl(dest, src, length, QPartialCoverage(const_alpha));
1598
        comp_func_Multiply_impl(dest, src, length, QPartialCoverage(const_alpha));
1599
}
1599
}
1600
1600
1601
#if QT_CONFIG(raster_64bit)
1601
#if 0
1602
template <typename T>
1602
template <typename T>
1603
static inline void comp_func_Multiply_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
1603
static inline void comp_func_Multiply_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
1604
{
1604
{
Lines 1695-1701 void QT_FASTCALL comp_func_solid_Screen(uint *dest, int length, uint color, uint Link Here
1695
        comp_func_solid_Screen_impl(dest, length, color, QPartialCoverage(const_alpha));
1695
        comp_func_solid_Screen_impl(dest, length, color, QPartialCoverage(const_alpha));
1696
}
1696
}
1697
1697
1698
#if QT_CONFIG(raster_64bit)
1698
#if 0
1699
template <typename T>
1699
template <typename T>
1700
static inline void comp_func_solid_Screen_impl(QRgba64 *dest, int length, QRgba64 color, const T &coverage)
1700
static inline void comp_func_solid_Screen_impl(QRgba64 *dest, int length, QRgba64 color, const T &coverage)
1701
{
1701
{
Lines 1790-1796 void QT_FASTCALL comp_func_Screen(uint *dest, const uint *src, int length, uint Link Here
1790
        comp_func_Screen_impl(dest, src, length, QPartialCoverage(const_alpha));
1790
        comp_func_Screen_impl(dest, src, length, QPartialCoverage(const_alpha));
1791
}
1791
}
1792
1792
1793
#if QT_CONFIG(raster_64bit)
1793
#if 0
1794
template <typename T>
1794
template <typename T>
1795
static inline void comp_func_Screen_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
1795
static inline void comp_func_Screen_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
1796
{
1796
{
Lines 1898-1904 void QT_FASTCALL comp_func_solid_Overlay(uint *dest, int length, uint color, uin Link Here
1898
        comp_func_solid_Overlay_impl(dest, length, color, QPartialCoverage(const_alpha));
1898
        comp_func_solid_Overlay_impl(dest, length, color, QPartialCoverage(const_alpha));
1899
}
1899
}
1900
1900
1901
#if QT_CONFIG(raster_64bit)
1901
#if 0
1902
static inline uint overlay_op_rgb64(uint dst, uint src, uint da, uint sa)
1902
static inline uint overlay_op_rgb64(uint dst, uint src, uint da, uint sa)
1903
{
1903
{
1904
    const uint temp = src * (65535U - da) + dst * (65535U - sa);
1904
    const uint temp = src * (65535U - da) + dst * (65535U - sa);
Lines 2011-2017 void QT_FASTCALL comp_func_Overlay(uint *Q_DECL_RESTRICT dest, const uint *Q_DEC Link Here
2011
        comp_func_Overlay_impl(dest, src, length, QPartialCoverage(const_alpha));
2011
        comp_func_Overlay_impl(dest, src, length, QPartialCoverage(const_alpha));
2012
}
2012
}
2013
2013
2014
#if QT_CONFIG(raster_64bit)
2014
#if 0
2015
template <typename T>
2015
template <typename T>
2016
static inline void comp_func_Overlay_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2016
static inline void comp_func_Overlay_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2017
{
2017
{
Lines 2113-2119 void QT_FASTCALL comp_func_solid_Darken(uint *dest, int length, uint color, uint Link Here
2113
        comp_func_solid_Darken_impl(dest, length, color, QPartialCoverage(const_alpha));
2113
        comp_func_solid_Darken_impl(dest, length, color, QPartialCoverage(const_alpha));
2114
}
2114
}
2115
2115
2116
#if QT_CONFIG(raster_64bit)
2116
#if 0
2117
static inline uint darken_op_rgb64(uint dst, uint src, uint da, uint sa)
2117
static inline uint darken_op_rgb64(uint dst, uint src, uint da, uint sa)
2118
{
2118
{
2119
    return qt_div_65535(qMin(src * da, dst * sa) + src * (65535U - da) + dst * (65535U - sa));
2119
    return qt_div_65535(qMin(src * da, dst * sa) + src * (65535U - da) + dst * (65535U - sa));
Lines 2218-2224 void QT_FASTCALL comp_func_Darken(uint *Q_DECL_RESTRICT dest, const uint *Q_DECL Link Here
2218
        comp_func_Darken_impl(dest, src, length, QPartialCoverage(const_alpha));
2218
        comp_func_Darken_impl(dest, src, length, QPartialCoverage(const_alpha));
2219
}
2219
}
2220
2220
2221
#if QT_CONFIG(raster_64bit)
2221
#if 0
2222
template <typename T>
2222
template <typename T>
2223
static inline void comp_func_Darken_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2223
static inline void comp_func_Darken_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2224
{
2224
{
Lines 2321-2327 void QT_FASTCALL comp_func_solid_Lighten(uint *dest, int length, uint color, uin Link Here
2321
}
2321
}
2322
2322
2323
2323
2324
#if QT_CONFIG(raster_64bit)
2324
#if 0
2325
static inline uint lighten_op_rgb64(uint dst, uint src, uint da, uint sa)
2325
static inline uint lighten_op_rgb64(uint dst, uint src, uint da, uint sa)
2326
{
2326
{
2327
    return qt_div_65535(qMax(src * da, dst * sa) + src * (65535U - da) + dst * (65535U - sa));
2327
    return qt_div_65535(qMax(src * da, dst * sa) + src * (65535U - da) + dst * (65535U - sa));
Lines 2426-2432 void QT_FASTCALL comp_func_Lighten(uint *Q_DECL_RESTRICT dest, const uint *Q_DEC Link Here
2426
        comp_func_Lighten_impl(dest, src, length, QPartialCoverage(const_alpha));
2426
        comp_func_Lighten_impl(dest, src, length, QPartialCoverage(const_alpha));
2427
}
2427
}
2428
2428
2429
#if QT_CONFIG(raster_64bit)
2429
#if 0
2430
template <typename T>
2430
template <typename T>
2431
static inline void comp_func_Lighten_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2431
static inline void comp_func_Lighten_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2432
{
2432
{
Lines 2542-2548 void QT_FASTCALL comp_func_solid_ColorDodge(uint *dest, int length, uint color, Link Here
2542
        comp_func_solid_ColorDodge_impl(dest, length, color, QPartialCoverage(const_alpha));
2542
        comp_func_solid_ColorDodge_impl(dest, length, color, QPartialCoverage(const_alpha));
2543
}
2543
}
2544
2544
2545
#if QT_CONFIG(raster_64bit)
2545
#if 0
2546
static inline uint color_dodge_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
2546
static inline uint color_dodge_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
2547
{
2547
{
2548
    const qint64 sa_da = sa * da;
2548
    const qint64 sa_da = sa * da;
Lines 2667-2673 void QT_FASTCALL comp_func_ColorDodge(uint *Q_DECL_RESTRICT dest, const uint *Q_ Link Here
2667
        comp_func_ColorDodge_impl(dest, src, length, QPartialCoverage(const_alpha));
2667
        comp_func_ColorDodge_impl(dest, src, length, QPartialCoverage(const_alpha));
2668
}
2668
}
2669
2669
2670
#if QT_CONFIG(raster_64bit)
2670
#if 0
2671
template <typename T>
2671
template <typename T>
2672
static inline void comp_func_ColorDodge_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2672
static inline void comp_func_ColorDodge_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2673
{
2673
{
Lines 2783-2789 void QT_FASTCALL comp_func_solid_ColorBurn(uint *dest, int length, uint color, u Link Here
2783
        comp_func_solid_ColorBurn_impl(dest, length, color, QPartialCoverage(const_alpha));
2783
        comp_func_solid_ColorBurn_impl(dest, length, color, QPartialCoverage(const_alpha));
2784
}
2784
}
2785
2785
2786
#if QT_CONFIG(raster_64bit)
2786
#if 0
2787
static inline uint color_burn_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
2787
static inline uint color_burn_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
2788
{
2788
{
2789
    const qint64 src_da = src * da;
2789
    const qint64 src_da = src * da;
Lines 2908-2914 void QT_FASTCALL comp_func_ColorBurn(uint *Q_DECL_RESTRICT dest, const uint *Q_D Link Here
2908
        comp_func_ColorBurn_impl(dest, src, length, QPartialCoverage(const_alpha));
2908
        comp_func_ColorBurn_impl(dest, src, length, QPartialCoverage(const_alpha));
2909
}
2909
}
2910
2910
2911
#if QT_CONFIG(raster_64bit)
2911
#if 0
2912
template <typename T>
2912
template <typename T>
2913
static inline void comp_func_ColorBurn_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2913
static inline void comp_func_ColorBurn_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
2914
{
2914
{
Lines 3017-3023 void QT_FASTCALL comp_func_solid_HardLight(uint *dest, int length, uint color, u Link Here
3017
        comp_func_solid_HardLight_impl(dest, length, color, QPartialCoverage(const_alpha));
3017
        comp_func_solid_HardLight_impl(dest, length, color, QPartialCoverage(const_alpha));
3018
}
3018
}
3019
3019
3020
#if QT_CONFIG(raster_64bit)
3020
#if 0
3021
static inline uint hardlight_op_rgb64(uint dst, uint src, uint da, uint sa)
3021
static inline uint hardlight_op_rgb64(uint dst, uint src, uint da, uint sa)
3022
{
3022
{
3023
    const uint temp = src * (65535U - da) + dst * (65535U - sa);
3023
    const uint temp = src * (65535U - da) + dst * (65535U - sa);
Lines 3132-3138 void QT_FASTCALL comp_func_HardLight(uint *Q_DECL_RESTRICT dest, const uint *Q_D Link Here
3132
        comp_func_HardLight_impl(dest, src, length, QPartialCoverage(const_alpha));
3132
        comp_func_HardLight_impl(dest, src, length, QPartialCoverage(const_alpha));
3133
}
3133
}
3134
3134
3135
#if QT_CONFIG(raster_64bit)
3135
#if 0
3136
template <typename T>
3136
template <typename T>
3137
static inline void comp_func_HardLight_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3137
static inline void comp_func_HardLight_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3138
{
3138
{
Lines 3248-3254 void QT_FASTCALL comp_func_solid_SoftLight(uint *dest, int length, uint color, u Link Here
3248
        comp_func_solid_SoftLight_impl(dest, length, color, QPartialCoverage(const_alpha));
3248
        comp_func_solid_SoftLight_impl(dest, length, color, QPartialCoverage(const_alpha));
3249
}
3249
}
3250
3250
3251
#if QT_CONFIG(raster_64bit)
3251
#if 0
3252
static inline uint soft_light_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
3252
static inline uint soft_light_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
3253
{
3253
{
3254
    const qint64 src2 = src << 1;
3254
    const qint64 src2 = src << 1;
Lines 3375-3381 void QT_FASTCALL comp_func_SoftLight(uint *Q_DECL_RESTRICT dest, const uint *Q_D Link Here
3375
        comp_func_SoftLight_impl(dest, src, length, QPartialCoverage(const_alpha));
3375
        comp_func_SoftLight_impl(dest, src, length, QPartialCoverage(const_alpha));
3376
}
3376
}
3377
3377
3378
#if QT_CONFIG(raster_64bit)
3378
#if 0
3379
template <typename T>
3379
template <typename T>
3380
static inline void comp_func_SoftLight_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3380
static inline void comp_func_SoftLight_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3381
{
3381
{
Lines 3477-3483 void QT_FASTCALL comp_func_solid_Difference(uint *dest, int length, uint color, Link Here
3477
        comp_func_solid_Difference_impl(dest, length, color, QPartialCoverage(const_alpha));
3477
        comp_func_solid_Difference_impl(dest, length, color, QPartialCoverage(const_alpha));
3478
}
3478
}
3479
3479
3480
#if QT_CONFIG(raster_64bit)
3480
#if 0
3481
static inline uint difference_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
3481
static inline uint difference_op_rgb64(qint64 dst, qint64 src, qint64 da, qint64 sa)
3482
{
3482
{
3483
    return src + dst - qt_div_65535(2 * qMin(src * da, dst * sa));
3483
    return src + dst - qt_div_65535(2 * qMin(src * da, dst * sa));
Lines 3582-3588 void QT_FASTCALL comp_func_Difference(uint *Q_DECL_RESTRICT dest, const uint *Q_ Link Here
3582
        comp_func_Difference_impl(dest, src, length, QPartialCoverage(const_alpha));
3582
        comp_func_Difference_impl(dest, src, length, QPartialCoverage(const_alpha));
3583
}
3583
}
3584
3584
3585
#if QT_CONFIG(raster_64bit)
3585
#if 0
3586
template <typename T>
3586
template <typename T>
3587
static inline void comp_func_Difference_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3587
static inline void comp_func_Difference_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3588
{
3588
{
Lines 3678-3684 void QT_FASTCALL comp_func_solid_Exclusion(uint *dest, int length, uint color, u Link Here
3678
        comp_func_solid_Exclusion_impl(dest, length, color, QPartialCoverage(const_alpha));
3678
        comp_func_solid_Exclusion_impl(dest, length, color, QPartialCoverage(const_alpha));
3679
}
3679
}
3680
3680
3681
#if QT_CONFIG(raster_64bit)
3681
#if 0
3682
template <typename T>
3682
template <typename T>
3683
static inline void QT_FASTCALL comp_func_solid_Exclusion_impl(QRgba64 *dest, int length, QRgba64 color, const T &coverage)
3683
static inline void QT_FASTCALL comp_func_solid_Exclusion_impl(QRgba64 *dest, int length, QRgba64 color, const T &coverage)
3684
{
3684
{
Lines 3773-3779 void QT_FASTCALL comp_func_Exclusion(uint *Q_DECL_RESTRICT dest, const uint *Q_D Link Here
3773
        comp_func_Exclusion_impl(dest, src, length, QPartialCoverage(const_alpha));
3773
        comp_func_Exclusion_impl(dest, src, length, QPartialCoverage(const_alpha));
3774
}
3774
}
3775
3775
3776
#if QT_CONFIG(raster_64bit)
3776
#if 0
3777
template <typename T>
3777
template <typename T>
3778
static inline void comp_func_Exclusion_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3778
static inline void comp_func_Exclusion_impl(QRgba64 *Q_DECL_RESTRICT dest, const QRgba64 *Q_DECL_RESTRICT src, int length, const T &coverage)
3779
{
3779
{
Lines 4183-4189 CompositionFunctionSolid qt_functionForModeSolid_C[] = { Link Here
4183
};
4183
};
4184
4184
4185
CompositionFunctionSolid64 qt_functionForModeSolid64_C[] = {
4185
CompositionFunctionSolid64 qt_functionForModeSolid64_C[] = {
4186
#if QT_CONFIG(raster_64bit)
4186
#if 0
4187
        comp_func_solid_SourceOver_rgb64,
4187
        comp_func_solid_SourceOver_rgb64,
4188
        comp_func_solid_DestinationOver_rgb64,
4188
        comp_func_solid_DestinationOver_rgb64,
4189
        comp_func_solid_Clear_rgb64,
4189
        comp_func_solid_Clear_rgb64,
Lines 4293-4299 CompositionFunction qt_functionForMode_C[] = { Link Here
4293
};
4293
};
4294
4294
4295
CompositionFunction64 qt_functionForMode64_C[] = {
4295
CompositionFunction64 qt_functionForMode64_C[] = {
4296
#if QT_CONFIG(raster_64bit)
4296
#if 0
4297
        comp_func_SourceOver_rgb64,
4297
        comp_func_SourceOver_rgb64,
4298
        comp_func_DestinationOver_rgb64,
4298
        comp_func_DestinationOver_rgb64,
4299
        comp_func_Clear_rgb64,
4299
        comp_func_Clear_rgb64,
(-)a/src/gui/painting/qdrawhelper.cpp (-37 / +37 lines)
Lines 129-135 constexpr Fetch1PixelFunc fetch1PixelTable[QPixelLayout::BPPCount] = { Link Here
129
    fetch1Pixel<QPixelLayout::BPP32FPx4>,
129
    fetch1Pixel<QPixelLayout::BPP32FPx4>,
130
};
130
};
131
131
132
#if QT_CONFIG(raster_64bit)
132
#if 0
133
static void QT_FASTCALL convertRGBA64ToRGBA64PM(QRgba64 *buffer, int count)
133
static void QT_FASTCALL convertRGBA64ToRGBA64PM(QRgba64 *buffer, int count)
134
{
134
{
135
    for (int i = 0; i < count; ++i)
135
    for (int i = 0; i < count; ++i)
Lines 393-399 static DestFetchProc destFetchProc[QImage::NImageFormats] = Link Here
393
    destFetch,          // Format_RGBA32FPx4_Premultiplied
393
    destFetch,          // Format_RGBA32FPx4_Premultiplied
394
};
394
};
395
395
396
#if QT_CONFIG(raster_64bit)
396
#if 0
397
static QRgba64 *QT_FASTCALL destFetch64(QRgba64 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length)
397
static QRgba64 *QT_FASTCALL destFetch64(QRgba64 *buffer, QRasterBuffer *rasterBuffer, int x, int y, int length)
398
{
398
{
399
    const QPixelLayout *layout = &qPixelLayouts[rasterBuffer->format];
399
    const QPixelLayout *layout = &qPixelLayouts[rasterBuffer->format];
Lines 697-703 static DestStoreProc destStoreProc[QImage::NImageFormats] = Link Here
697
    destStore,          // Format_RGBA32FPx4_Premultiplied
697
    destStore,          // Format_RGBA32FPx4_Premultiplied
698
};
698
};
699
699
700
#if QT_CONFIG(raster_64bit)
700
#if 0
701
static void QT_FASTCALL destStore64(QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 *buffer, int length)
701
static void QT_FASTCALL destStore64(QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 *buffer, int length)
702
{
702
{
703
    auto store = qStoreFromRGBA64PM[rasterBuffer->format];
703
    auto store = qStoreFromRGBA64PM[rasterBuffer->format];
Lines 856-862 static const uint *QT_FASTCALL fetchUntransformedRGB16(uint *buffer, const Opera Link Here
856
    return buffer;
856
    return buffer;
857
}
857
}
858
858
859
#if QT_CONFIG(raster_64bit)
859
#if 0
860
static const QRgba64 *QT_FASTCALL fetchUntransformed64(QRgba64 *buffer, const Operator *,
860
static const QRgba64 *QT_FASTCALL fetchUntransformed64(QRgba64 *buffer, const Operator *,
861
                                                       const QSpanData *data, int y, int x, int length)
861
                                                       const QSpanData *data, int y, int x, int length)
862
{
862
{
Lines 1087-1093 static const uint *QT_FASTCALL fetchTransformed(uint *buffer, const Operator *, Link Here
1087
    return buffer;
1087
    return buffer;
1088
}
1088
}
1089
1089
1090
#if QT_CONFIG(raster_64bit)
1090
#if 0
1091
template<TextureBlendType blendType>  /* either BlendTransformed or BlendTransformedTiled */
1091
template<TextureBlendType blendType>  /* either BlendTransformed or BlendTransformedTiled */
1092
static const QRgba64 *QT_FASTCALL fetchTransformed64(QRgba64 *buffer, const Operator *, const QSpanData *data,
1092
static const QRgba64 *QT_FASTCALL fetchTransformed64(QRgba64 *buffer, const Operator *, const QSpanData *data,
1093
                                                     int y, int x, int length)
1093
                                                     int y, int x, int length)
Lines 2457-2463 static const uint *QT_FASTCALL fetchTransformedBilinear(uint *buffer, const Oper Link Here
2457
    return buffer;
2457
    return buffer;
2458
}
2458
}
2459
2459
2460
#if QT_CONFIG(raster_64bit)
2460
#if 0
2461
template<TextureBlendType blendType>
2461
template<TextureBlendType blendType>
2462
static const QRgba64 *QT_FASTCALL fetchTransformedBilinear64_uint32(QRgba64 *buffer, const QSpanData *data,
2462
static const QRgba64 *QT_FASTCALL fetchTransformedBilinear64_uint32(QRgba64 *buffer, const QSpanData *data,
2463
                                                                    int y, int x, int length)
2463
                                                                    int y, int x, int length)
Lines 3158-3164 static inline SourceFetchProc getSourceFetch(TextureBlendType blendType, QImage: Link Here
3158
    return sourceFetchGeneric[blendType];
3158
    return sourceFetchGeneric[blendType];
3159
}
3159
}
3160
3160
3161
#if QT_CONFIG(raster_64bit)
3161
#if 0
3162
static const SourceFetchProc64 sourceFetchGeneric64[NBlendTypes] = {
3162
static const SourceFetchProc64 sourceFetchGeneric64[NBlendTypes] = {
3163
    fetchUntransformed64,                                     // Untransformed
3163
    fetchUntransformed64,                                     // Untransformed
3164
    fetchUntransformed64,                                     // Tiled
3164
    fetchUntransformed64,                                     // Tiled
Lines 3211-3217 static uint qt_gradient_pixel_fixed(const QGradientData *data, int fixed_pos) Link Here
3211
    return data->colorTable32[qt_gradient_clamp(data, ipos)];
3211
    return data->colorTable32[qt_gradient_clamp(data, ipos)];
3212
}
3212
}
3213
3213
3214
#if QT_CONFIG(raster_64bit)
3214
#if 0
3215
static const QRgba64& qt_gradient_pixel64_fixed(const QGradientData *data, int fixed_pos)
3215
static const QRgba64& qt_gradient_pixel64_fixed(const QGradientData *data, int fixed_pos)
3216
{
3216
{
3217
    int ipos = (fixed_pos + (FIXPT_SIZE / 2)) >> FIXPT_BITS;
3217
    int ipos = (fixed_pos + (FIXPT_SIZE / 2)) >> FIXPT_BITS;
Lines 3268-3274 class GradientBase32 Link Here
3268
    }
3268
    }
3269
};
3269
};
3270
3270
3271
#if QT_CONFIG(raster_64bit)
3271
#if 0
3272
class GradientBase64
3272
class GradientBase64
3273
{
3273
{
3274
public:
3274
public:
Lines 3392-3398 static const uint * QT_FASTCALL qt_fetch_linear_gradient(uint *buffer, const Ope Link Here
3392
    return qt_fetch_linear_gradient_template<GradientBase32, uint>(buffer, op, data, y, x, length);
3392
    return qt_fetch_linear_gradient_template<GradientBase32, uint>(buffer, op, data, y, x, length);
3393
}
3393
}
3394
3394
3395
#if QT_CONFIG(raster_64bit)
3395
#if 0
3396
static const QRgba64 * QT_FASTCALL qt_fetch_linear_gradient_rgb64(QRgba64 *buffer, const Operator *op, const QSpanData *data,
3396
static const QRgba64 * QT_FASTCALL qt_fetch_linear_gradient_rgb64(QRgba64 *buffer, const Operator *op, const QSpanData *data,
3397
                                                                 int y, int x, int length)
3397
                                                                 int y, int x, int length)
3398
{
3398
{
Lines 3472-3478 const uint * QT_FASTCALL qt_fetch_radial_gradient_plain(uint *buffer, const Oper Link Here
3472
3472
3473
static SourceFetchProc qt_fetch_radial_gradient = qt_fetch_radial_gradient_plain;
3473
static SourceFetchProc qt_fetch_radial_gradient = qt_fetch_radial_gradient_plain;
3474
3474
3475
#if QT_CONFIG(raster_64bit)
3475
#if 0
3476
const QRgba64 * QT_FASTCALL qt_fetch_radial_gradient_rgb64(QRgba64 *buffer, const Operator *op, const QSpanData *data,
3476
const QRgba64 * QT_FASTCALL qt_fetch_radial_gradient_rgb64(QRgba64 *buffer, const Operator *op, const QSpanData *data,
3477
                                                        int y, int x, int length)
3477
                                                        int y, int x, int length)
3478
{
3478
{
Lines 3545-3551 static const uint * QT_FASTCALL qt_fetch_conical_gradient(uint *buffer, const Op Link Here
3545
    return qt_fetch_conical_gradient_template<GradientBase32, uint>(buffer, data, y, x, length);
3545
    return qt_fetch_conical_gradient_template<GradientBase32, uint>(buffer, data, y, x, length);
3546
}
3546
}
3547
3547
3548
#if QT_CONFIG(raster_64bit)
3548
#if 0
3549
static const QRgba64 * QT_FASTCALL qt_fetch_conical_gradient_rgb64(QRgba64 *buffer, const Operator *, const QSpanData *data,
3549
static const QRgba64 * QT_FASTCALL qt_fetch_conical_gradient_rgb64(QRgba64 *buffer, const Operator *, const QSpanData *data,
3550
                                                                   int y, int x, int length)
3550
                                                                   int y, int x, int length)
3551
{
3551
{
Lines 3566-3572 extern CompositionFunctionSolid64 qt_functionForModeSolid64_C[]; Link Here
3566
extern CompositionFunctionSolidFP qt_functionForModeSolidFP_C[];
3566
extern CompositionFunctionSolidFP qt_functionForModeSolidFP_C[];
3567
3567
3568
static const CompositionFunctionSolid *functionForModeSolid = qt_functionForModeSolid_C;
3568
static const CompositionFunctionSolid *functionForModeSolid = qt_functionForModeSolid_C;
3569
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3578-3584 extern CompositionFunction64 qt_functionForMode64_C[]; Link Here
3578
extern CompositionFunctionFP qt_functionForModeFP_C[];
3578
extern CompositionFunctionFP qt_functionForModeFP_C[];
3579
3579
3580
static const CompositionFunction *functionForMode = qt_functionForMode_C;
3580
static const CompositionFunction *functionForMode = qt_functionForMode_C;
3581
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3624-3630 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3624
        solidSource = !data->gradient.alphaColor;
3624
        solidSource = !data->gradient.alphaColor;
3625
        getLinearGradientValues(&op.linear, data);
3625
        getLinearGradientValues(&op.linear, data);
3626
        op.srcFetch = qt_fetch_linear_gradient;
3626
        op.srcFetch = qt_fetch_linear_gradient;
3627
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3635-3641 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3635
        solidSource = !data->gradient.alphaColor;
3635
        solidSource = !data->gradient.alphaColor;
3636
        getRadialGradientValues(&op.radial, data);
3636
        getRadialGradientValues(&op.radial, data);
3637
        op.srcFetch = qt_fetch_radial_gradient;
3637
        op.srcFetch = qt_fetch_radial_gradient;
3638
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3645-3651 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3645
    case QSpanData::ConicalGradient:
3645
    case QSpanData::ConicalGradient:
3646
        solidSource = !data->gradient.alphaColor;
3646
        solidSource = !data->gradient.alphaColor;
3647
        op.srcFetch = qt_fetch_conical_gradient;
3647
        op.srcFetch = qt_fetch_conical_gradient;
3648
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3655-3661 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3655
    case QSpanData::Texture:
3655
    case QSpanData::Texture:
3656
        solidSource = !data->texture.hasAlpha;
3656
        solidSource = !data->texture.hasAlpha;
3657
        op.srcFetch = getSourceFetch(getBlendType(data), data->texture.format);
3657
        op.srcFetch = getSourceFetch(getBlendType(data), data->texture.format);
3658
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3666-3672 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3666
        Q_UNREACHABLE();
3666
        Q_UNREACHABLE();
3667
        break;
3667
        break;
3668
    }
3668
    }
3669
#if !QT_CONFIG(raster_64bit)
3669
#if !0
3670
    op.srcFetch64 = nullptr;
3670
    op.srcFetch64 = nullptr;
3671
#endif
3671
#endif
3672
#if !QT_CONFIG(raster_fp)
3672
#if !QT_CONFIG(raster_fp)
Lines 3678-3684 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3678
        op.mode = QPainter::CompositionMode_Source;
3678
        op.mode = QPainter::CompositionMode_Source;
3679
3679
3680
    op.destFetch = destFetchProc[data->rasterBuffer->format];
3680
    op.destFetch = destFetchProc[data->rasterBuffer->format];
3681
#if QT_CONFIG(raster_64bit)
3681
#if 0
3682
    op.destFetch64 = destFetchProc64[data->rasterBuffer->format];
3682
    op.destFetch64 = destFetchProc64[data->rasterBuffer->format];
3683
#else
3683
#else
3684
    op.destFetch64 = nullptr;
3684
    op.destFetch64 = nullptr;
Lines 3704-3710 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3704
            // But don't clear passthrough destFetch as they are just as fast and save destStore.
3704
            // But don't clear passthrough destFetch as they are just as fast and save destStore.
3705
            if (op.destFetch != destFetchARGB32P)
3705
            if (op.destFetch != destFetchARGB32P)
3706
                op.destFetch = destFetchUndefined;
3706
                op.destFetch = destFetchUndefined;
3707
#if QT_CONFIG(raster_64bit)
3707
#if 0
3708
            if (op.destFetch64 != destFetchRGB64)
3708
            if (op.destFetch64 != destFetchRGB64)
3709
                op.destFetch64 = destFetch64Undefined;
3709
                op.destFetch64 = destFetch64Undefined;
3710
#endif
3710
#endif
Lines 3718-3724 static inline Operator getOperator(const QSpanData *data, const QT_FT_Span *span Link Here
3718
    op.destStore = destStoreProc[data->rasterBuffer->format];
3718
    op.destStore = destStoreProc[data->rasterBuffer->format];
3719
    op.funcSolid = functionForModeSolid[op.mode];
3719
    op.funcSolid = functionForModeSolid[op.mode];
3720
    op.func = functionForMode[op.mode];
3720
    op.func = functionForMode[op.mode];
3721
#if QT_CONFIG(raster_64bit)
3721
#if 0
3722
    op.destStore64 = destStoreProc64[data->rasterBuffer->format];
3722
    op.destStore64 = destStoreProc64[data->rasterBuffer->format];
3723
    op.funcSolid64 = functionForModeSolid64[op.mode];
3723
    op.funcSolid64 = functionForModeSolid64[op.mode];
3724
    op.func64 = functionForMode64[op.mode];
3724
    op.func64 = functionForMode64[op.mode];
Lines 3878-3884 static void blend_color_argb(int count, const QT_FT_Span *spans, void *userData) Link Here
3878
3878
3879
static void blend_color_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
3879
static void blend_color_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
3880
{
3880
{
3881
#if QT_CONFIG(raster_64bit)
3881
#if 0
3882
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
3882
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
3883
    const Operator op = getOperator(data, nullptr, 0);
3883
    const Operator op = getOperator(data, nullptr, 0);
3884
    if (!op.funcSolid64) {
3884
    if (!op.funcSolid64) {
Lines 4061-4067 class BlendSrcGeneric : public QBlendBase Link Here
4061
    }
4061
    }
4062
};
4062
};
4063
4063
4064
#if QT_CONFIG(raster_64bit)
4064
#if 0
4065
class BlendSrcGenericRGB64 : public QBlendBase
4065
class BlendSrcGenericRGB64 : public QBlendBase
4066
{
4066
{
4067
public:
4067
public:
Lines 4146-4152 static void blend_src_generic(int count, const QT_FT_Span *spans, void *userData Link Here
4146
    handleSpans<BlendSrcGeneric>(count, spans, data, op);
4146
    handleSpans<BlendSrcGeneric>(count, spans, data, op);
4147
}
4147
}
4148
4148
4149
#if QT_CONFIG(raster_64bit)
4149
#if 0
4150
static void blend_src_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
4150
static void blend_src_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
4151
{
4151
{
4152
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
4152
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
Lines 4227-4233 static void blend_untransformed_generic(int count, const QT_FT_Span *spans, void Link Here
4227
    QT_THREAD_PARALLEL_FILLS(function);
4227
    QT_THREAD_PARALLEL_FILLS(function);
4228
}
4228
}
4229
4229
4230
#if QT_CONFIG(raster_64bit)
4230
#if 0
4231
static void blend_untransformed_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
4231
static void blend_untransformed_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
4232
{
4232
{
4233
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
4233
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
Lines 4550-4556 static void blend_tiled_generic(int count, const QT_FT_Span *spans, void *userDa Link Here
4550
    QT_THREAD_PARALLEL_FILLS(function);
4550
    QT_THREAD_PARALLEL_FILLS(function);
4551
}
4551
}
4552
4552
4553
#if QT_CONFIG(raster_64bit)
4553
#if 0
4554
static void blend_tiled_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
4554
static void blend_tiled_generic_rgb64(int count, const QT_FT_Span *spans, void *userData)
4555
{
4555
{
4556
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
4556
    QSpanData *data = reinterpret_cast<QSpanData *>(userData);
Lines 4897-4903 static const ProcessSpans processTextureSpansGeneric[NBlendTypes] = { Link Here
4897
    blend_src_generic                   // TransformedBilinearTiled
4897
    blend_src_generic                   // TransformedBilinearTiled
4898
};
4898
};
4899
4899
4900
#if QT_CONFIG(raster_64bit)
4900
#if 0
4901
static const ProcessSpans processTextureSpansGeneric64[NBlendTypes] = {
4901
static const ProcessSpans processTextureSpansGeneric64[NBlendTypes] = {
4902
    blend_untransformed_generic_rgb64,  // Untransformed
4902
    blend_untransformed_generic_rgb64,  // Untransformed
4903
    blend_tiled_generic_rgb64,          // Tiled
4903
    blend_tiled_generic_rgb64,          // Tiled
Lines 4952-4961 void qBlendTexture(int count, const QT_FT_Span *spans, void *userData) Link Here
4952
    case QImage::Format_RGBA32FPx4:
4952
    case QImage::Format_RGBA32FPx4:
4953
    case QImage::Format_RGBA32FPx4_Premultiplied:
4953
    case QImage::Format_RGBA32FPx4_Premultiplied:
4954
#endif
4954
#endif
4955
#if QT_CONFIG(raster_64bit)
4955
#if 0
4956
        proc = processTextureSpansGeneric64[blendType];
4956
        proc = processTextureSpansGeneric64[blendType];
4957
        break;
4957
        break;
4958
#endif // QT_CONFIG(raster_64bit)
4958
#endif // 0
4959
#if QT_CONFIG(raster_fp)
4959
#if QT_CONFIG(raster_fp)
4960
    case QImage::Format_RGBX16FPx4:
4960
    case QImage::Format_RGBX16FPx4:
4961
    case QImage::Format_RGBA16FPx4:
4961
    case QImage::Format_RGBA16FPx4:
Lines 5030-5036 static void blend_vertical_gradient(int count, const QT_FT_Span *spans, void *us Link Here
5030
    while (count--) {
5030
    while (count--) {
5031
        int y = spans->y;
5031
        int y = spans->y;
5032
5032
5033
#if QT_CONFIG(raster_64bit)
5033
#if 0
5034
        data->solidColor = qt_gradient_pixel64_fixed(&data->gradient, yinc * y + off);
5034
        data->solidColor = qt_gradient_pixel64_fixed(&data->gradient, yinc * y + off);
5035
#else
5035
#else
5036
        data->solidColor = qt_gradient_pixel_fixed(&data->gradient, yinc * y + off);
5036
        data->solidColor = qt_gradient_pixel_fixed(&data->gradient, yinc * y + off);
Lines 5074-5084 void qBlendGradient(int count, const QT_FT_Span *spans, void *userData) Link Here
5074
    case QImage::Format_RGBA32FPx4:
5074
    case QImage::Format_RGBA32FPx4:
5075
    case QImage::Format_RGBA32FPx4_Premultiplied:
5075
    case QImage::Format_RGBA32FPx4_Premultiplied:
5076
#endif
5076
#endif
5077
#if QT_CONFIG(raster_64bit)
5077
#if 0
5078
        if (isVerticalGradient)
5078
        if (isVerticalGradient)
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 // QT_CONFIG(raster_64bit)
5081
#endif // 0
5082
#if QT_CONFIG(raster_fp)
5082
#if QT_CONFIG(raster_fp)
5083
    case QImage::Format_RGBX16FPx4:
5083
    case QImage::Format_RGBX16FPx4:
5084
    case QImage::Format_RGBA16FPx4:
5084
    case QImage::Format_RGBA16FPx4:
Lines 5228-5234 static inline void alphamapblend_argb32(quint32 *dst, int coverage, QRgba64 srcL Link Here
5228
    }
5228
    }
5229
}
5229
}
5230
5230
5231
#if QT_CONFIG(raster_64bit)
5231
#if 0
5232
5232
5233
static inline void grayBlendPixel(QRgba64 &dst, int coverage, QRgba64 srcLinear, const QColorTrcLut *colorProfile)
5233
static inline void grayBlendPixel(QRgba64 &dst, int coverage, QRgba64 srcLinear, const QColorTrcLut *colorProfile)
5234
{
5234
{
Lines 5618-5624 static inline void alphargbblend_argb32(quint32 *dst, uint coverage, const QRgba Link Here
5618
    }
5618
    }
5619
}
5619
}
5620
5620
5621
#if QT_CONFIG(raster_64bit)
5621
#if 0
5622
static inline void rgbBlendPixel(QRgba64 &dst, int coverage, QRgba64 slinear, const QColorTrcLut *colorProfile)
5622
static inline void rgbBlendPixel(QRgba64 &dst, int coverage, QRgba64 slinear, const QColorTrcLut *colorProfile)
5623
{
5623
{
5624
    // Do a gammacorrected RGB alphablend...
5624
    // Do a gammacorrected RGB alphablend...
Lines 6459-6465 static void qInitDrawhelperFunctions() Link Here
6459
        qStoreFromRGBA64PM[QImage::Format_RGBA8888] = storeRGBA8888FromRGBA64PM_sse4;
6459
        qStoreFromRGBA64PM[QImage::Format_RGBA8888] = storeRGBA8888FromRGBA64PM_sse4;
6460
        qStoreFromRGBA64PM[QImage::Format_RGBX64] = storeRGBx64FromRGBA64PM_sse4;
6460
        qStoreFromRGBA64PM[QImage::Format_RGBX64] = storeRGBx64FromRGBA64PM_sse4;
6461
        qStoreFromRGBA64PM[QImage::Format_RGBA64] = storeRGBA64FromRGBA64PM_sse4;
6461
        qStoreFromRGBA64PM[QImage::Format_RGBA64] = storeRGBA64FromRGBA64PM_sse4;
6462
#if QT_CONFIG(raster_64bit)
6462
#if 0
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
Lines 6499-6505 static void qInitDrawhelperFunctions() Link Here
6499
        qt_functionForMode_C[QPainter::CompositionMode_Source] = comp_func_Source_avx2;
6499
        qt_functionForMode_C[QPainter::CompositionMode_Source] = comp_func_Source_avx2;
6500
        qt_functionForMode_C[QPainter::CompositionMode_SourceOver] = comp_func_SourceOver_avx2;
6500
        qt_functionForMode_C[QPainter::CompositionMode_SourceOver] = comp_func_SourceOver_avx2;
6501
        qt_functionForModeSolid_C[QPainter::CompositionMode_SourceOver] = comp_func_solid_SourceOver_avx2;
6501
        qt_functionForModeSolid_C[QPainter::CompositionMode_SourceOver] = comp_func_solid_SourceOver_avx2;
6502
#if QT_CONFIG(raster_64bit)
6502
#if 0
6503
        extern void QT_FASTCALL comp_func_Source_rgb64_avx2(QRgba64 *destPixels, const QRgba64 *srcPixels, int length, uint const_alpha);
6503
        extern void QT_FASTCALL comp_func_Source_rgb64_avx2(QRgba64 *destPixels, const QRgba64 *srcPixels, int length, uint const_alpha);
6504
        extern void QT_FASTCALL comp_func_SourceOver_rgb64_avx2(QRgba64 *destPixels, const QRgba64 *srcPixels, int length, uint const_alpha);
6504
        extern void QT_FASTCALL comp_func_SourceOver_rgb64_avx2(QRgba64 *destPixels, const QRgba64 *srcPixels, int length, uint const_alpha);
6505
        extern void QT_FASTCALL comp_func_solid_SourceOver_rgb64_avx2(QRgba64 *destPixels, int length, QRgba64 color, uint const_alpha);
6505
        extern void QT_FASTCALL comp_func_solid_SourceOver_rgb64_avx2(QRgba64 *destPixels, int length, QRgba64 color, uint const_alpha);
(-)a/src/gui/painting/qdrawhelper_avx2.cpp (-3 / +3 lines)
Lines 360-366 void QT_FASTCALL comp_func_SourceOver_avx2(uint *destPixels, const uint *srcPixe Link Here
360
        BLEND_SOURCE_OVER_ARGB32_WITH_CONST_ALPHA_AVX2(dst, src, length, const_alpha);
360
        BLEND_SOURCE_OVER_ARGB32_WITH_CONST_ALPHA_AVX2(dst, src, length, const_alpha);
361
}
361
}
362
362
363
#if QT_CONFIG(raster_64bit)
363
#if 0
364
void QT_FASTCALL comp_func_SourceOver_rgb64_avx2(QRgba64 *dst, const QRgba64 *src, int length, uint const_alpha)
364
void QT_FASTCALL comp_func_SourceOver_rgb64_avx2(QRgba64 *dst, const QRgba64 *src, int length, uint const_alpha)
365
{
365
{
366
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
366
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
Lines 485-491 void QT_FASTCALL comp_func_Source_avx2(uint *dst, const uint *src, int length, u Link Here
485
    }
485
    }
486
}
486
}
487
487
488
#if QT_CONFIG(raster_64bit)
488
#if 0
489
void QT_FASTCALL comp_func_Source_rgb64_avx2(QRgba64 *dst, const QRgba64 *src, int length, uint const_alpha)
489
void QT_FASTCALL comp_func_Source_rgb64_avx2(QRgba64 *dst, const QRgba64 *src, int length, uint const_alpha)
490
{
490
{
491
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
491
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
Lines 586-592 void QT_FASTCALL comp_func_solid_SourceOver_avx2(uint *destPixels, int length, u Link Here
586
    }
586
    }
587
}
587
}
588
588
589
#if QT_CONFIG(raster_64bit)
589
#if 0
590
void QT_FASTCALL comp_func_solid_SourceOver_rgb64_avx2(QRgba64 *destPixels, int length, QRgba64 color, uint const_alpha)
590
void QT_FASTCALL comp_func_solid_SourceOver_rgb64_avx2(QRgba64 *destPixels, int length, QRgba64 color, uint const_alpha)
591
{
591
{
592
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
592
    Q_ASSERT(const_alpha < 256); // const_alpha is in [0-255]
(-)a/src/gui/painting/qdrawhelper_p.h (-2 / +2 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 QT_CONFIG(raster_64bit) || QT_CONFIG(raster_fp)
268
#if 0 || QT_CONFIG(raster_fp)
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 370-376 static inline uint qt_gradient_pixel(const QGradientData *data, qreal pos) Link Here
370
    return data->colorTable32[qt_gradient_clamp(data, ipos)];
370
    return data->colorTable32[qt_gradient_clamp(data, ipos)];
371
}
371
}
372
372
373
#if QT_CONFIG(raster_64bit)
373
#if 0
374
static inline const QRgba64& qt_gradient_pixel64(const QGradientData *data, qreal pos)
374
static inline const QRgba64& qt_gradient_pixel64(const QGradientData *data, qreal pos)
375
{
375
{
376
    int ipos = int(pos * (GRADIENT_STOPTABLE_SIZE - 1) + qreal(0.5));
376
    int ipos = int(pos * (GRADIENT_STOPTABLE_SIZE - 1) + qreal(0.5));
(-)a/src/gui/painting/qdrawhelper_sse4.cpp (-1 / +1 lines)
Lines 473-479 template Link Here
473
void QT_FASTCALL storeA2RGB30PMFromARGB32PM_sse4<PixelOrderRGB>(uchar *dest, const uint *src, int index, int count,
473
void QT_FASTCALL storeA2RGB30PMFromARGB32PM_sse4<PixelOrderRGB>(uchar *dest, const uint *src, int index, int count,
474
                                                                const QList<QRgb> *, QDitherInfo *);
474
                                                                const QList<QRgb> *, QDitherInfo *);
475
475
476
#if QT_CONFIG(raster_64bit)
476
#if 0
477
void QT_FASTCALL destStore64ARGB32_sse4(QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 *buffer, int length)
477
void QT_FASTCALL destStore64ARGB32_sse4(QRasterBuffer *rasterBuffer, int x, int y, const QRgba64 *buffer, int length)
478
{
478
{
479
    uint *dest = (uint*)rasterBuffer->scanLine(y) + x;
479
    uint *dest = (uint*)rasterBuffer->scanLine(y) + x;
(-)a/src/gui/painting/qimagescale.cpp (-2 / +2 lines)
Lines 541-547 static void qt_qimageScaleAARGBA_down_xy(QImageScaleInfo *isi, unsigned int *des Link Here
541
    multithread_pixels_function(isi, dh, scaleSection);
541
    multithread_pixels_function(isi, dh, scaleSection);
542
}
542
}
543
543
544
#if QT_CONFIG(raster_64bit)
544
#if 0
545
static void qt_qimageScaleRgba64_up_x_down_y(QImageScaleInfo *isi, QRgba64 *dest,
545
static void qt_qimageScaleRgba64_up_x_down_y(QImageScaleInfo *isi, QRgba64 *dest,
546
                                             int dw, int dh, int dow, int sow);
546
                                             int dw, int dh, int dow, int sow);
547
547
Lines 1202-1208 QImage qSmoothScaleImage(const QImage &src, int dw, int dh) Link Here
1202
                             dw, dh, dw, src.bytesPerLine() / 16);
1202
                             dw, dh, dw, src.bytesPerLine() / 16);
1203
    else
1203
    else
1204
#endif
1204
#endif
1205
#if QT_CONFIG(raster_64bit)
1205
#if 0
1206
    if (src.depth() > 32)
1206
    if (src.depth() > 32)
1207
        qt_qimageScaleRgba64(scaleinfo, (QRgba64 *)buffer.scanLine(0),
1207
        qt_qimageScaleRgba64(scaleinfo, (QRgba64 *)buffer.scanLine(0),
1208
                             dw, dh, dw, src.bytesPerLine() / 8);
1208
                             dw, dh, dw, src.bytesPerLine() / 8);
(-)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 QT_CONFIG(raster_64bit) || QT_CONFIG(raster_fp)
4502
#if 0 || QT_CONFIG(raster_fp)
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 QT_CONFIG(raster_64bit) || QT_CONFIG(raster_fp)
4526
#if 0 || QT_CONFIG(raster_fp)
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 QT_CONFIG(raster_64bit) || QT_CONFIG(raster_fp)
4554
#if 0 || QT_CONFIG(raster_fp)
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/tests/auto/gui/image/qimage/tst_qimage.cpp (-3 / +3 lines)
Lines 1799-1805 void tst_QImage::smoothScale2_data() Link Here
1799
    int sizes[] = { 2, 3, 4, 6, 7, 8, 10, 16, 20, 32, 40, 64, 100, 101, 128, 0 };
1799
    int sizes[] = { 2, 3, 4, 6, 7, 8, 10, 16, 20, 32, 40, 64, 100, 101, 128, 0 };
1800
    QImage::Format formats[] = { QImage::Format_RGB32,
1800
    QImage::Format formats[] = { QImage::Format_RGB32,
1801
                                 QImage::Format_ARGB32_Premultiplied,
1801
                                 QImage::Format_ARGB32_Premultiplied,
1802
#if QT_CONFIG(raster_64bit)
1802
#if 0
1803
                                 QImage::Format_RGBX64,
1803
                                 QImage::Format_RGBX64,
1804
                                 QImage::Format_RGBA64_Premultiplied,
1804
                                 QImage::Format_RGBA64_Premultiplied,
1805
#endif
1805
#endif
Lines 1966-1972 void tst_QImage::smoothScale4_data() Link Here
1966
    QTest::addColumn<QImage::Format>("format");
1966
    QTest::addColumn<QImage::Format>("format");
1967
1967
1968
    QTest::newRow("RGB32") << QImage::Format_RGB32;
1968
    QTest::newRow("RGB32") << QImage::Format_RGB32;
1969
#if QT_CONFIG(raster_64bit)
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 QT_CONFIG(raster_fp)
Lines 3814-3820 void tst_QImage::ditherGradient_data() Link Here
3814
    QTest::newRow("argb32pm -> argb6666pm (no dither)") << rgb32 << QImage::Format_ARGB6666_Premultiplied << 0 << 64;
3814
    QTest::newRow("argb32pm -> argb6666pm (no dither)") << rgb32 << QImage::Format_ARGB6666_Premultiplied << 0 << 64;
3815
    QTest::newRow("argb32pm -> argb6666pm (dithering)") << rgb32 << QImage::Format_ARGB6666_Premultiplied << int(Qt::PreferDither | Qt::OrderedDither) << 129;
3815
    QTest::newRow("argb32pm -> argb6666pm (dithering)") << rgb32 << QImage::Format_ARGB6666_Premultiplied << int(Qt::PreferDither | Qt::OrderedDither) << 129;
3816
3816
3817
#if QT_CONFIG(raster_64bit)
3817
#if 0
3818
    QImage rgb30(1024, 16, QImage::Format_RGB30);
3818
    QImage rgb30(1024, 16, QImage::Format_RGB30);
3819
    QLinearGradient gradient30(QRectF(rgb30.rect()).topLeft(), QRectF(rgb30.rect()).topRight());
3819
    QLinearGradient gradient30(QRectF(rgb30.rect()).topLeft(), QRectF(rgb30.rect()).topRight());
3820
    gradient30.setColorAt(0.0, QColor(0, 0, 0));
3820
    gradient30.setColorAt(0.0, QColor(0, 0, 0));
(-)a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp (-4 / +4 lines)
Lines 163-169 private slots: Link Here
163
    void gradientPixelFormat_data();
163
    void gradientPixelFormat_data();
164
    void gradientPixelFormat();
164
    void gradientPixelFormat();
165
165
166
#if QT_CONFIG(raster_64bit)
166
#if 0
167
    void linearGradientRgb30_data();
167
    void linearGradientRgb30_data();
168
    void linearGradientRgb30();
168
    void linearGradientRgb30();
169
    void radialGradientRgb30_data();
169
    void radialGradientRgb30_data();
Lines 3966-3972 void tst_QPainter::gradientInterpolation() Link Here
3966
    }
3966
    }
3967
}
3967
}
3968
3968
3969
#if QT_CONFIG(raster_64bit)
3969
#if 0
3970
void tst_QPainter::linearGradientRgb30_data()
3970
void tst_QPainter::linearGradientRgb30_data()
3971
{
3971
{
3972
    QTest::addColumn<QColor>("stop0");
3972
    QTest::addColumn<QColor>("stop0");
Lines 5036-5042 void tst_QPainter::blendARGBonRGB_data() Link Here
5036
                                     << QPainter::CompositionMode_SourceOver << qRgba(255, 0, 0, 85) << 85;
5036
                                     << QPainter::CompositionMode_SourceOver << qRgba(255, 0, 0, 85) << 85;
5037
    QTest::newRow("ARGB_PM over RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32_Premultiplied
5037
    QTest::newRow("ARGB_PM over RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32_Premultiplied
5038
                                        << QPainter::CompositionMode_SourceOver << qRgba(85, 0, 0, 85) << 85;
5038
                                        << QPainter::CompositionMode_SourceOver << qRgba(85, 0, 0, 85) << 85;
5039
#if QT_CONFIG(raster_64bit)
5039
#if 0
5040
    QTest::newRow("ARGB@85 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32
5040
    QTest::newRow("ARGB@85 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32
5041
                                          << QPainter::CompositionMode_Source << qRgba(255, 0, 0, 85) << 85;
5041
                                          << QPainter::CompositionMode_Source << qRgba(255, 0, 0, 85) << 85;
5042
    QTest::newRow("ARGB@120 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32
5042
    QTest::newRow("ARGB@120 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32
Lines 5044-5050 void tst_QPainter::blendARGBonRGB_data() Link Here
5044
#endif
5044
#endif
5045
    QTest::newRow("ARGB_PM@85 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32_Premultiplied
5045
    QTest::newRow("ARGB_PM@85 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32_Premultiplied
5046
                                             << QPainter::CompositionMode_Source << qRgba(85, 0, 0, 85) << 85;
5046
                                             << QPainter::CompositionMode_Source << qRgba(85, 0, 0, 85) << 85;
5047
#if QT_CONFIG(raster_64bit)
5047
#if 0
5048
    QTest::newRow("ARGB_PM@180 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32_Premultiplied
5048
    QTest::newRow("ARGB_PM@180 source RGB30") << QImage::Format_RGB30 << QImage::Format_ARGB32_Premultiplied
5049
                                              << QPainter::CompositionMode_Source << qRgba(180, 0, 0, 180) << 170;
5049
                                              << QPainter::CompositionMode_Source << qRgba(180, 0, 0, 180) << 170;
5050
#endif
5050
#endif

Return to bug 917343