drop internal support for 1-bit images

Desktop / LibreOffice - Noel Grandin [collabora.co.uk] - 12 January 2023 06:52 UTC

on modern hardware, these are less efficient than regular alpha channels.

Also, this greatly simplies the range of stuff that vcl needs to deal with, which will make the upcoming transparency->alpha patch easier to deal with.

Enhance vcl::CreateFromData to convert incoming 1-bit data to 8-bit image.

Change-Id: I35829da750029fe373d0d2911a669d10bab6ad23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145321

21734247d58a drop internal support for 1-bit images
avmedia/source/gstreamer/gstframegrabber.cxx | 2 +-
cppcanvas/source/mtfrenderer/implrenderer.cxx | 2 +-
desktop/qa/desktop_lib/test_desktop_lib.cxx | 4 +-
drawinglayer/source/tools/wmfemfhelper.cxx | 2 +-
emfio/source/reader/wmfreader.cxx | 6 +-
filter/source/msfilter/msdffimp.cxx | 2 +-
forms/source/component/imgprod.cxx | 2 +-
include/vcl/BitmapTools.hxx | 2 +-
include/vcl/bitmap/BitmapTypes.hxx | 4 +-
lotuswordpro/source/filter/lwpbackgroundstuff.cxx | 2 +-
svx/source/gallery2/galobj.cxx | 2 +-
svx/source/sdr/primitive2d/sdrprimitivetools.cxx | 2 +-
vcl/headless/BitmapHelper.cxx | 57 ++++-------
vcl/headless/CairoCommon.cxx | 3 +-
vcl/headless/svpbmp.cxx | 3 -
vcl/inc/qt5/QtTools.hxx | 2 -
vcl/qa/cppunit/BitmapTest.cxx | 13 ---
vcl/qa/cppunit/BmpFilterTest.cxx | 2 +-
vcl/qa/cppunit/XpmFilterTest.cxx | 2 +-
vcl/qa/cppunit/canvasbitmaptest.cxx | 1 -
vcl/qa/cppunit/png/PngFilterTest.cxx | 65 -------------
vcl/qa/cppunit/svm/svmtest.cxx | 23 +++--
vcl/qt5/QtBitmap.cxx | 2 -
vcl/source/bitmap/BitmapEx.cxx | 10 +-
vcl/source/bitmap/BitmapMonochromeFilter.cxx | 2 +-
.../bitmap/BitmapSimpleColorQuantizationFilter.cxx | 6 +-
vcl/source/bitmap/BitmapTools.cxx | 105 ++++++++++-----------
vcl/source/bitmap/bitmap.cxx | 32 +------
vcl/source/bitmap/bitmappaint.cxx | 10 --
vcl/source/bitmap/dibtools.cxx | 94 +++++-------------
vcl/source/filter/igif/gifread.cxx | 2 +-
vcl/source/filter/ixbm/xbmread.cxx | 4 +-
vcl/source/filter/ixpm/xpmread.cxx | 6 +-
vcl/source/filter/jpeg/JpegReader.cxx | 2 +-
vcl/source/gdi/mtfxmldump.cxx | 1 -
vcl/source/gdi/pdfwriter_impl.cxx | 34 ++-----
vcl/source/gdi/pdfwriter_impl2.cxx | 6 +-
vcl/source/gdi/print.cxx | 6 +-
vcl/source/helper/canvastools.cxx | 5 +-
vcl/source/rendercontext/drawmode.cxx | 3 +-
vcl/unx/generic/gdi/salbmp.cxx | 3 -
41 files changed, 157 insertions(+), 379 deletions(-)

Upstream: cgit.freedesktop.org


  • Share