diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-22 10:54:57 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-07-22 12:03:20 (GMT) |
commit | 04db5e3722c9f3e32f2a0a03962abc9456139883 (patch) | |
tree | 30ab8ad6dcd33fe21e4b3a0d99abdb9196867781 /src/gui/image/qpixmap.h | |
parent | bf15a487e4e0b5d4edca232258526e0d3cf471a0 (diff) | |
download | Qt-04db5e3722c9f3e32f2a0a03962abc9456139883.zip Qt-04db5e3722c9f3e32f2a0a03962abc9456139883.tar.gz Qt-04db5e3722c9f3e32f2a0a03962abc9456139883.tar.bz2 |
Avoid qMin() for each pixel when converting indexed colors in-place
Instead of checking if the value is in boundary for each pixel, we
can fill the color table with 256 value and convert the colors directly.
This optimization is an idea of Kim Kalland.
Reviewed-by: Kim
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/gui/image/qpixmap.h')
0 files changed, 0 insertions, 0 deletions