optimize Bitmap::Mirror()

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 22 February 2021 12:00 UTC

For the usual bitmap pixel formats it's much faster to just move around pixel data rather than call the pixel-set/get functions.

Change-Id: Ie99b3ea1431d965b110ec08d269e163d9f108cf3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111213

e74c9a340ffa optimize Bitmap::Mirror()
vcl/qa/cppunit/BitmapTest.cxx | 65 ++++++++++++++++++
vcl/source/bitmap/bitmappaint.cxx | 140 +++++++++++++++++++++++++++++---------
2 files changed, 173 insertions(+), 32 deletions(-)

Upstream: cgit.freedesktop.org


  • Share