BitmapScaleSuper: generalize 24bit scaling

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 13 April 2019 11:32 EDT

Until now we had RGB and BGR version. Because we never change the byte order when scaling and the scanline type, we can generalize the two funcions into one, where we only need to be careful that we don't change the order of color components.

The same is done already for 4 variants of 32-bit bitmap, where we really only need 1 function for all 4 variants, using the same principle.

Change-Id: I0f6d6b0c06a45e53bcd048e2ae009a471bf90a06 Reviewed-on: https://gerrit.libreoffice.org/70695

99b6997a314c BitmapScaleSuper: generalize 24bit scaling
vcl/source/bitmap/BitmapScaleSuperFilter.cxx | 359 ++++++++-------------------
1 file changed, 109 insertions(+), 250 deletions(-)

Upstream: cgit.freedesktop.org


  • Share