LibreOffice Module vcl (master) 1
|
#include <vcl/salgtype.hxx>
#include <bitmap/BitmapWriteAccess.hxx>
#include <bitmap/bmpfast.hxx>
#include <sal/log.hxx>
Go to the source code of this file.
Typedefs | |
typedef unsigned char | PIXBYTE |
Functions | |
template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT> | |
static void | ImplConvertPixel (const TrueColorPixelPtr< DSTFMT > &rDst, const TrueColorPixelPtr< SRCFMT > &rSrc) |
template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT> | |
static void | ImplConvertLine (const TrueColorPixelPtr< DSTFMT > &rDst, const TrueColorPixelPtr< SRCFMT > &rSrc, int nPixelCount) |
template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT> | |
static void | ImplBlendPixels (const TrueColorPixelPtr< DSTFMT > &rDst, const TrueColorPixelPtr< SRCFMT > &rSrc, unsigned nAlphaVal) |
template<ScanlineFormat MASKFMT, ScanlineFormat SRCFMT, ScanlineFormat DSTFMT> | |
static void | ImplBlendLines (const TrueColorPixelPtr< DSTFMT > &rDst, const TrueColorPixelPtr< SRCFMT > &rSrc, const TrueColorPixelPtr< MASKFMT > &rMsk, int nPixelCount) |
static bool | ImplCopyImage (BitmapBuffer &rDstBuffer, const BitmapBuffer &rSrcBuffer) |
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT> | |
static bool | ImplConvertToBitmap (TrueColorPixelPtr< SRCFMT > &rSrcLine, BitmapBuffer &rDstBuffer, const BitmapBuffer &rSrcBuffer) |
template<ScanlineFormat SRCFMT> | |
static bool | ImplConvertFromBitmap (BitmapBuffer &rDst, const BitmapBuffer &rSrc) |
bool | ImplFastBitmapConversion (BitmapBuffer &rDst, const BitmapBuffer &rSrc, const SalTwoRect &rTR) |
static ConstScanline | ImplGetScanline (const BitmapBuffer &rBuf, tools::Long nY) |
static Scanline | ImplGetScanline (BitmapBuffer &rBuf, tools::Long nY) |
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT> | |
static bool | ImplCopyToScanline (tools::Long nY, BitmapBuffer &rDst, TrueColorPixelPtr< SRCFMT > &rSrcLine, tools::Long nSrcWidth) |
template<ScanlineFormat SRCFMT> | |
static bool | ImplCopyFromScanline (tools::Long nY, BitmapBuffer &rDst, ConstScanline aSrcScanline, tools::Long nSrcWidth) |
bool | ImplFastCopyScanline (tools::Long nY, BitmapBuffer &rDst, ConstScanline aSrcScanline, ScanlineFormat nSrcScanlineFormat, sal_uInt32 nSrcScanlineSize) |
bool | ImplFastCopyScanline (tools::Long nY, BitmapBuffer &rDst, const BitmapBuffer &rSrc) |
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT> | |
static bool | ImplBlendToBitmap (TrueColorPixelPtr< SRCFMT > &rSrcLine, BitmapBuffer &rDstBuffer, const BitmapBuffer &rSrcBuffer, const BitmapBuffer &rMskBuffer) |
template<> | |
bool | ImplBlendToBitmap< ScanlineFormat::N24BitTcBgr, ScanlineFormat::N24BitTcBgr > (TrueColorPixelPtr< ScanlineFormat::N24BitTcBgr > &, BitmapBuffer &rDstBuffer, const BitmapBuffer &rSrcBuffer, const BitmapBuffer &rMskBuffer) |
template<> | |
bool | ImplBlendToBitmap< ScanlineFormat::N32BitTcAbgr, ScanlineFormat::N32BitTcAbgr > (TrueColorPixelPtr< ScanlineFormat::N32BitTcAbgr > &, BitmapBuffer &rDstBuffer, const BitmapBuffer &rSrcBuffer, const BitmapBuffer &rMskBuffer) |
template<> | |
bool | ImplBlendToBitmap< ScanlineFormat::N32BitTcBgra, ScanlineFormat::N32BitTcBgra > (TrueColorPixelPtr< ScanlineFormat::N32BitTcBgra > &, BitmapBuffer &rDstBuffer, const BitmapBuffer &rSrcBuffer, const BitmapBuffer &rMskBuffer) |
template<ScanlineFormat SRCFMT> | |
static bool | ImplBlendFromBitmap (BitmapBuffer &rDst, const BitmapBuffer &rSrc, const BitmapBuffer &rMsk) |
bool | ImplFastBitmapBlending (BitmapWriteAccess const &rDstWA, const BitmapReadAccess &rSrcRA, const BitmapReadAccess &rMskRA, const SalTwoRect &rTR) |
bool | ImplFastEraseBitmap (BitmapBuffer &rDst, const BitmapColor &rColor) |
typedef unsigned char PIXBYTE |
Definition at line 27 of file bmpfast.cxx.
|
static |
Definition at line 630 of file bmpfast.cxx.
References BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnWidth, BitmapBuffer::mpBits, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, RemoveScanline(), and SAL_WARN_IF.
|
static |
Definition at line 246 of file bmpfast.cxx.
References ImplBlendPixels().
Referenced by ImplBlendToBitmap().
|
static |
Definition at line 219 of file bmpfast.cxx.
References ImplConvertPixel(), and U.
Referenced by ImplBlendLines().
|
static |
Definition at line 554 of file bmpfast.cxx.
References ImplBlendLines(), BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mnWidth, BitmapBuffer::mpBits, N8BitPal, SAL_WARN_IF, TopDown, and y.
bool ImplBlendToBitmap< ScanlineFormat::N24BitTcBgr, ScanlineFormat::N24BitTcBgr > | ( | TrueColorPixelPtr< ScanlineFormat::N24BitTcBgr > & | , |
BitmapBuffer & | rDstBuffer, | ||
const BitmapBuffer & | rSrcBuffer, | ||
const BitmapBuffer & | rMskBuffer | ||
) |
Definition at line 600 of file bmpfast.cxx.
References BitmapBuffer::mpBits.
bool ImplBlendToBitmap< ScanlineFormat::N32BitTcAbgr, ScanlineFormat::N32BitTcAbgr > | ( | TrueColorPixelPtr< ScanlineFormat::N32BitTcAbgr > & | , |
BitmapBuffer & | rDstBuffer, | ||
const BitmapBuffer & | rSrcBuffer, | ||
const BitmapBuffer & | rMskBuffer | ||
) |
Definition at line 610 of file bmpfast.cxx.
References BitmapBuffer::mpBits.
bool ImplBlendToBitmap< ScanlineFormat::N32BitTcBgra, ScanlineFormat::N32BitTcBgra > | ( | TrueColorPixelPtr< ScanlineFormat::N32BitTcBgra > & | , |
BitmapBuffer & | rDstBuffer, | ||
const BitmapBuffer & | rSrcBuffer, | ||
const BitmapBuffer & | rMskBuffer | ||
) |
Definition at line 620 of file bmpfast.cxx.
References BitmapBuffer::mpBits.
|
static |
Definition at line 329 of file bmpfast.cxx.
References BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnWidth, BitmapBuffer::mpBits, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, RemoveScanline(), and SAL_WARN_IF.
|
static |
Definition at line 204 of file bmpfast.cxx.
References ImplConvertPixel().
Referenced by ImplConvertToBitmap(), and ImplCopyToScanline().
|
static |
Definition at line 196 of file bmpfast.cxx.
Referenced by ImplBlendPixels(), and ImplConvertLine().
|
static |
Definition at line 298 of file bmpfast.cxx.
References ImplConvertLine(), BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mnWidth, BitmapBuffer::mpBits, SAL_WARN_IF, TopDown, and y.
|
static |
Definition at line 479 of file bmpfast.cxx.
References BitmapBuffer::mnFormat, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcRgba, and RemoveScanline().
|
static |
Definition at line 263 of file bmpfast.cxx.
References BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mpBits, TopDown, and y.
Referenced by ImplFastBitmapConversion().
|
static |
Definition at line 470 of file bmpfast.cxx.
References ImplConvertLine(), ImplGetScanline(), and BitmapBuffer::mnWidth.
bool ImplFastBitmapBlending | ( | BitmapWriteAccess const & | rDstWA, |
const BitmapReadAccess & | rSrcRA, | ||
const BitmapReadAccess & | rMskRA, | ||
const SalTwoRect & | rTR | ||
) |
Definition at line 668 of file bmpfast.cxx.
References BitmapInfoAccess::HasPalette(), BitmapInfoAccess::Height(), BitmapReadAccess::ImplGetBitmapBuffer(), BitmapPalette::IsGreyPalette8Bit(), BitmapBuffer::maPalette, SalTwoRect::mnDestHeight, SalTwoRect::mnDestWidth, SalTwoRect::mnDestX, SalTwoRect::mnDestY, BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, SalTwoRect::mnSrcHeight, SalTwoRect::mnSrcWidth, SalTwoRect::mnSrcX, SalTwoRect::mnSrcY, BitmapBuffer::mnWidth, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, RemoveScanline(), SAL_WARN_IF, and BitmapInfoAccess::Width().
Referenced by OutputDevice::BlendBitmap().
bool ImplFastBitmapConversion | ( | BitmapBuffer & | rDst, |
const BitmapBuffer & | rSrc, | ||
const SalTwoRect & | rTR | ||
) |
Definition at line 370 of file bmpfast.cxx.
References ImplCopyImage(), BitmapPalette::IsGreyPalette8Bit(), BitmapBuffer::maPalette, SalTwoRect::mnDestHeight, SalTwoRect::mnDestWidth, SalTwoRect::mnDestX, SalTwoRect::mnDestY, BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, SalTwoRect::mnSrcHeight, SalTwoRect::mnSrcWidth, SalTwoRect::mnSrcX, SalTwoRect::mnSrcY, BitmapBuffer::mnWidth, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, RemoveScanline(), and SAL_WARN_IF.
Referenced by StretchAndConvert().
bool ImplFastCopyScanline | ( | tools::Long | nY, |
BitmapBuffer & | rDst, | ||
const BitmapBuffer & | rSrc | ||
) |
Definition at line 544 of file bmpfast.cxx.
References ImplFastCopyScanline(), ImplGetScanline(), BitmapBuffer::maPalette, BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, and BitmapBuffer::mnScanlineSize.
bool ImplFastCopyScanline | ( | tools::Long | nY, |
BitmapBuffer & | rDst, | ||
ConstScanline | aSrcScanline, | ||
ScanlineFormat | nSrcScanlineFormat, | ||
sal_uInt32 | nSrcScanlineSize | ||
) |
Definition at line 506 of file bmpfast.cxx.
References ImplGetScanline(), BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcRgba, and RemoveScanline().
Referenced by BitmapWriteAccess::CopyScanline(), and ImplFastCopyScanline().
bool ImplFastEraseBitmap | ( | BitmapBuffer & | rDst, |
const BitmapColor & | rColor | ||
) |
Definition at line 763 of file bmpfast.cxx.
References Color::GetBlue(), Color::GetGreen(), BitmapColor::GetIndex(), Color::GetRed(), BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mpBits, N1BitMsbPal, N24BitTcBgr, N24BitTcRgb, N32BitTcAbgr, N32BitTcArgb, N32BitTcBgra, N32BitTcMask, N32BitTcRgba, N8BitPal, and RemoveScanline().
Referenced by BitmapWriteAccess::Erase().
|
inlinestatic |
Definition at line 464 of file bmpfast.cxx.
References ImplGetScanline().
|
inlinestatic |
Definition at line 456 of file bmpfast.cxx.
References BitmapBuffer::mnFormat, BitmapBuffer::mnHeight, BitmapBuffer::mnScanlineSize, BitmapBuffer::mpBits, and TopDown.
Referenced by ImplCopyToScanline(), ImplFastCopyScanline(), and ImplGetScanline().