LibreOffice Module vcl (master) 1
|
#include <vcl/BitmapReadAccess.hxx>
#include <vcl/salgtype.hxx>
#include <bitmap/bmpfast.hxx>
#include <o3tl/safeint.hxx>
#include <osl/diagnose.h>
#include <sal/log.hxx>
#include <tools/helpers.hxx>
#include <memory>
Go to the source code of this file.
Macros | |
#define | IMPL_CASE_SET_FORMAT(Format, BitCount) |
#define | DOUBLE_SCANLINES() |
Functions | |
static tools::Long | ImplIndexFromColor (const BitmapColor &rCol) |
static void | ImplPALToPAL (const BitmapBuffer &rSrcBuffer, BitmapBuffer &rDstBuffer, FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel, Scanline *pSrcScanMap, Scanline *pDstScanMap, sal_Int32 const *pMapX, const sal_Int32 *pMapY) |
static void | ImplPALToTC (const BitmapBuffer &rSrcBuffer, BitmapBuffer const &rDstBuffer, FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel, Scanline *pSrcScanMap, Scanline *pDstScanMap, sal_Int32 const *pMapX, const sal_Int32 *pMapY) |
static void | ImplTCToTC (const BitmapBuffer &rSrcBuffer, BitmapBuffer const &rDstBuffer, FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel, Scanline *pSrcScanMap, Scanline *pDstScanMap, sal_Int32 const *pMapX, const sal_Int32 *pMapY) |
static void | ImplTCToPAL (const BitmapBuffer &rSrcBuffer, BitmapBuffer const &rDstBuffer, FncGetPixel pFncGetPixel, FncSetPixel pFncSetPixel, Scanline *pSrcScanMap, Scanline *pDstScanMap, sal_Int32 const *pMapX, const sal_Int32 *pMapY) |
std::unique_ptr< BitmapBuffer > | StretchAndConvert (const BitmapBuffer &rSrcBuffer, const SalTwoRect &rTwoRect, ScanlineFormat nDstBitmapFormat, std::optional< BitmapPalette > pDstPal, const ColorMask *pDstMask) |
Variables | |
constexpr int | TC_TO_PAL_COLORS = 4096 |
#define DOUBLE_SCANLINES | ( | ) |
Definition at line 37 of file salmisc.cxx.
#define IMPL_CASE_SET_FORMAT | ( | Format, | |
BitCount | |||
) |
Definition at line 29 of file salmisc.cxx.
|
static |
Definition at line 46 of file salmisc.cxx.
References Color::GetBlue(), Color::GetGreen(), and Color::GetRed().
Referenced by ImplTCToPAL().
|
static |
Definition at line 53 of file salmisc.cxx.
References aIndex, DOUBLE_SCANLINES, BitmapPalette::GetBestIndex(), BitmapPalette::GetEntryCount(), i, BitmapPalette::ImplGetColorBuffer(), BitmapBuffer::maColorMask, BitmapBuffer::maPalette, BitmapBuffer::mnHeight, and BitmapBuffer::mnWidth.
Referenced by StretchAndConvert().
|
static |
Definition at line 86 of file salmisc.cxx.
References DOUBLE_SCANLINES, BitmapPalette::ImplGetColorBuffer(), BitmapBuffer::maColorMask, BitmapBuffer::maPalette, BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnWidth, N1BitMsbPal, N8BitPal, and RemoveScanline().
Referenced by StretchAndConvert().
|
static |
Definition at line 190 of file salmisc.cxx.
References aIndex, DOUBLE_SCANLINES, BitmapPalette::GetBestIndex(), ImplIndexFromColor(), BitmapBuffer::maColorMask, BitmapBuffer::maPalette, BitmapBuffer::mnHeight, BitmapBuffer::mnWidth, and TC_TO_PAL_COLORS.
Referenced by StretchAndConvert().
|
static |
Definition at line 145 of file salmisc.cxx.
References DOUBLE_SCANLINES, BitmapBuffer::maColorMask, BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnWidth, N24BitTcBgr, RemoveScanline(), Color::SetBlue(), Color::SetGreen(), and Color::SetRed().
Referenced by StretchAndConvert().
std::unique_ptr< BitmapBuffer > StretchAndConvert | ( | const BitmapBuffer & | rSrcBuffer, |
const SalTwoRect & | rTwoRect, | ||
ScanlineFormat | nDstBitmapFormat, | ||
std::optional< BitmapPalette > | pDstPal, | ||
const ColorMask * | pDstMask | ||
) |
Definition at line 229 of file salmisc.cxx.
References AlignedWidth4Bytes(), BitmapReadAccess::GetPixelForN1BitMsbPal(), BitmapReadAccess::GetPixelFunction(), i, IMPL_CASE_SET_FORMAT, ImplFastBitmapConversion(), ImplPALToPAL(), ImplPALToTC(), ImplTCToPAL(), ImplTCToTC(), BitmapBuffer::mnBitCount, SalTwoRect::mnDestHeight, SalTwoRect::mnDestWidth, BitmapBuffer::mnFormat, mnHeight, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, SalTwoRect::mnSrcHeight, SalTwoRect::mnSrcWidth, SalTwoRect::mnSrcX, SalTwoRect::mnSrcY, mnWidth, BitmapBuffer::mpBits, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, RemoveScanline(), SAL_WARN, BitmapReadAccess::SetPixelForN1BitMsbPal(), and TopDown.
|
constexpr |
Definition at line 44 of file salmisc.cxx.
Referenced by ImplTCToPAL().