summaryrefslogtreecommitdiff
path: root/vcl/source/bitmap/BitmapReadAccess.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-31 14:32:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-31 17:38:04 +0200
commit740757d17452e3b2f9bfa7897c05dedeca639e34 (patch)
tree653ebc09c09e53fd9d94863bc057d43a1a163c5b /vcl/source/bitmap/BitmapReadAccess.cxx
parentb5558e4ac6c2f134f07ea87a143694b17adb4482 (diff)
remove internal 4bit scanline formats
since we have already removed the 4-bit internal bitmap formats. Change-Id: Ie481aaa8e25642a47e30beb6f37e2d3beda304e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113412 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/bitmap/BitmapReadAccess.cxx')
-rw-r--r--vcl/source/bitmap/BitmapReadAccess.cxx54
1 files changed, 0 insertions, 54 deletions
diff --git a/vcl/source/bitmap/BitmapReadAccess.cxx b/vcl/source/bitmap/BitmapReadAccess.cxx
index b0ad156ddf91..cf531189913c 100644
--- a/vcl/source/bitmap/BitmapReadAccess.cxx
+++ b/vcl/source/bitmap/BitmapReadAccess.cxx
@@ -64,10 +64,6 @@ FncGetPixel BitmapReadAccess::GetPixelFunction(ScanlineFormat nFormat)
return GetPixelForN1BitMsbPal;
case ScanlineFormat::N1BitLsbPal:
return GetPixelForN1BitLsbPal;
- case ScanlineFormat::N4BitMsnPal:
- return GetPixelForN4BitMsnPal;
- case ScanlineFormat::N4BitLsnPal:
- return GetPixelForN4BitLsnPal;
case ScanlineFormat::N8BitPal:
return GetPixelForN8BitPal;
case ScanlineFormat::N24BitTcBgr:
@@ -110,10 +106,6 @@ FncSetPixel BitmapReadAccess::SetPixelFunction(ScanlineFormat nFormat)
return SetPixelForN1BitMsbPal;
case ScanlineFormat::N1BitLsbPal:
return SetPixelForN1BitLsbPal;
- case ScanlineFormat::N4BitMsnPal:
- return SetPixelForN4BitMsnPal;
- case ScanlineFormat::N4BitLsnPal:
- return SetPixelForN4BitLsnPal;
case ScanlineFormat::N8BitPal:
return SetPixelForN8BitPal;
case ScanlineFormat::N24BitTcBgr:
@@ -292,52 +284,6 @@ void BitmapReadAccess::SetPixelForN1BitLsbPal(const Scanline pScanline, tools::L
rByte &= ~(1 << (nX & 7));
}
-BitmapColor BitmapReadAccess::GetPixelForN4BitMsnPal(ConstScanline pScanline, tools::Long nX,
- const ColorMask&)
-{
- return BitmapColor((pScanline[nX >> 1] >> (nX & 1 ? 0 : 4)) & 0x0f);
-}
-
-void BitmapReadAccess::SetPixelForN4BitMsnPal(const Scanline pScanline, tools::Long nX,
- const BitmapColor& rBitmapColor, const ColorMask&)
-{
- sal_uInt8& rByte = pScanline[nX >> 1];
-
- if (nX & 1)
- {
- rByte &= 0xf0;
- rByte |= (rBitmapColor.GetIndex() & 0x0f);
- }
- else
- {
- rByte &= 0x0f;
- rByte |= (rBitmapColor.GetIndex() << 4);
- }
-}
-
-BitmapColor BitmapReadAccess::GetPixelForN4BitLsnPal(ConstScanline pScanline, tools::Long nX,
- const ColorMask&)
-{
- return BitmapColor((pScanline[nX >> 1] >> (nX & 1 ? 4 : 0)) & 0x0f);
-}
-
-void BitmapReadAccess::SetPixelForN4BitLsnPal(const Scanline pScanline, tools::Long nX,
- const BitmapColor& rBitmapColor, const ColorMask&)
-{
- sal_uInt8& rByte = pScanline[nX >> 1];
-
- if (nX & 1)
- {
- rByte &= 0x0f;
- rByte |= (rBitmapColor.GetIndex() << 4);
- }
- else
- {
- rByte &= 0xf0;
- rByte |= (rBitmapColor.GetIndex() & 0x0f);
- }
-}
-
BitmapColor BitmapReadAccess::GetPixelForN8BitPal(ConstScanline pScanline, tools::Long nX,
const ColorMask&)
{