43 #include <private/qimage_p.h> 44 #include <private/qsimd_p.h> 58 const int offsetToAlignOn8Bytes = (
reinterpret_cast<quintptr>(dst) >> 2) & 0x1;
59 for (
int i = 0; i < offsetToAlignOn8Bytes; ++i) {
60 *dst++ =
qRgb(src[0], src[1], src[2]);
64 if ((len - offsetToAlignOn8Bytes) >= 8) {
65 const quint32 *
const simdEnd = end - 7;
66 register uint8x8_t fullVector
asm (
"d3") = vdup_n_u8(0xff);
68 #if Q_BYTE_ORDER == Q_BIG_ENDIAN 70 "vld3.8 { d4, d5, d6 }, [%[SRC]] !\n\t" 71 "vst4.8 { d3, d4, d5, d6 }, [%[DST],:64] !\n\t" 72 : [DST]
"+r" (dst), [SRC]
"+r" (src)
74 :
"memory",
"d4",
"d5",
"d6" 78 "vld3.8 { d0, d1, d2 }, [%[SRC]] !\n\t" 80 "vst4.8 { d0, d1, d2, d3 }, [%[DST],:64] !\n\t" 81 : [DST]
"+r" (dst), [SRC]
"+r" (src)
83 :
"memory",
"d0",
"d1",
"d2" 86 }
while (dst < simdEnd);
90 *dst++ =
qRgb(src[0], src[1], src[2]);
95 void convert_RGB888_to_RGB32_neon(
QImageData *dest,
const QImageData *src, Qt::ImageConversionFlags)
105 for (
int i = 0; i < src->
height; ++i) {
106 qt_convert_rgb888_to_rgb32_neon(dest_data, src_data, src->
width);
114 #endif // QT_HAVE_NEON
QIntegerForSizeof< void * >::Unsigned quintptr
#define QT_END_NAMESPACE
This macro expands to.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QRgb qRgb(int r, int g, int b)
Returns the ARGB quadruplet (255, {r}, {g}, {b}).
static const KeyPair *const end