diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-23 14:14:49 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-26 10:40:00 (GMT) |
commit | 90642dd2b6b14c39cc6178f1161331895809b342 (patch) | |
tree | 47cebd733363e9f8560cb2f9909f816dbe8a1def /src/gui/image/qpixmap_win.cpp | |
parent | 38d8826503385f249cfd4d35382a79252de85873 (diff) | |
download | Qt-90642dd2b6b14c39cc6178f1161331895809b342.zip Qt-90642dd2b6b14c39cc6178f1161331895809b342.tar.gz Qt-90642dd2b6b14c39cc6178f1161331895809b342.tar.bz2 |
Use SSSE3 to convert from RGB888 to RGB32
Converting from RGB encoded on 24bits to RGB encoded on 32 bits is
quite inefficient.
This type of conversion is common for some image format.
The patch implement the conversion with SSSE3. This reduce by 3 the
number of instructions, pushing the bottleneck to memory bandwidth.
On Atom N450, the new benchmark is 40% faster for scanlines of
2000 pixels, 30% faster for scanlines of 32 pixels, and 15% slower
for small images (3 and 8px).
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui/image/qpixmap_win.cpp')
0 files changed, 0 insertions, 0 deletions