LibreOffice Module vcl (master) 1
Typedefs | Functions
bmpfast.cxx File Reference
#include <vcl/salgtype.hxx>
#include <bitmap/BitmapWriteAccess.hxx>
#include <bitmap/bmpfast.hxx>
#include <sal/log.hxx>
Include dependency graph for bmpfast.cxx:

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 Documentation

◆ PIXBYTE

typedef unsigned char PIXBYTE

Definition at line 27 of file bmpfast.cxx.

Function Documentation

◆ ImplBlendFromBitmap()

template<ScanlineFormat SRCFMT>
static bool ImplBlendFromBitmap ( BitmapBuffer rDst,
const BitmapBuffer rSrc,
const BitmapBuffer rMsk 
)
static

◆ ImplBlendLines()

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

Definition at line 246 of file bmpfast.cxx.

References ImplBlendPixels().

Referenced by ImplBlendToBitmap().

◆ ImplBlendPixels()

template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT>
static void ImplBlendPixels ( const TrueColorPixelPtr< DSTFMT > &  rDst,
const TrueColorPixelPtr< SRCFMT > &  rSrc,
unsigned  nAlphaVal 
)
static

Definition at line 219 of file bmpfast.cxx.

References ImplConvertPixel(), and U.

Referenced by ImplBlendLines().

◆ ImplBlendToBitmap()

template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplBlendToBitmap ( TrueColorPixelPtr< SRCFMT > &  rSrcLine,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer,
const BitmapBuffer rMskBuffer 
)
static

◆ ImplBlendToBitmap< ScanlineFormat::N24BitTcBgr, ScanlineFormat::N24BitTcBgr >()

template<>
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.

◆ ImplBlendToBitmap< ScanlineFormat::N32BitTcAbgr, ScanlineFormat::N32BitTcAbgr >()

template<>
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.

◆ ImplBlendToBitmap< ScanlineFormat::N32BitTcBgra, ScanlineFormat::N32BitTcBgra >()

template<>
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.

◆ ImplConvertFromBitmap()

template<ScanlineFormat SRCFMT>
static bool ImplConvertFromBitmap ( BitmapBuffer rDst,
const BitmapBuffer rSrc 
)
static

◆ ImplConvertLine()

template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT>
static void ImplConvertLine ( const TrueColorPixelPtr< DSTFMT > &  rDst,
const TrueColorPixelPtr< SRCFMT > &  rSrc,
int  nPixelCount 
)
static

Definition at line 204 of file bmpfast.cxx.

References ImplConvertPixel().

Referenced by ImplConvertToBitmap(), and ImplCopyToScanline().

◆ ImplConvertPixel()

template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT>
static void ImplConvertPixel ( const TrueColorPixelPtr< DSTFMT > &  rDst,
const TrueColorPixelPtr< SRCFMT > &  rSrc 
)
static

Definition at line 196 of file bmpfast.cxx.

Referenced by ImplBlendPixels(), and ImplConvertLine().

◆ ImplConvertToBitmap()

template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplConvertToBitmap ( TrueColorPixelPtr< SRCFMT > &  rSrcLine,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer 
)
static

◆ ImplCopyFromScanline()

template<ScanlineFormat SRCFMT>
static bool ImplCopyFromScanline ( tools::Long  nY,
BitmapBuffer rDst,
ConstScanline  aSrcScanline,
tools::Long  nSrcWidth 
)
static

◆ ImplCopyImage()

static bool ImplCopyImage ( BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer 
)
static

◆ ImplCopyToScanline()

template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplCopyToScanline ( tools::Long  nY,
BitmapBuffer rDst,
TrueColorPixelPtr< SRCFMT > &  rSrcLine,
tools::Long  nSrcWidth 
)
static

Definition at line 470 of file bmpfast.cxx.

References ImplConvertLine(), ImplGetScanline(), and BitmapBuffer::mnWidth.

◆ ImplFastBitmapBlending()

bool ImplFastBitmapBlending ( BitmapWriteAccess const &  rDstWA,
const BitmapReadAccess rSrcRA,
const BitmapReadAccess rMskRA,
const SalTwoRect rTR 
)

◆ ImplFastBitmapConversion()

bool ImplFastBitmapConversion ( BitmapBuffer rDst,
const BitmapBuffer rSrc,
const SalTwoRect rTR 
)

◆ ImplFastCopyScanline() [1/2]

bool ImplFastCopyScanline ( tools::Long  nY,
BitmapBuffer rDst,
const BitmapBuffer rSrc 
)

◆ ImplFastCopyScanline() [2/2]

bool ImplFastCopyScanline ( tools::Long  nY,
BitmapBuffer rDst,
ConstScanline  aSrcScanline,
ScanlineFormat  nSrcScanlineFormat,
sal_uInt32  nSrcScanlineSize 
)

◆ ImplFastEraseBitmap()

bool ImplFastEraseBitmap ( BitmapBuffer rDst,
const BitmapColor rColor 
)

◆ ImplGetScanline() [1/2]

static Scanline ImplGetScanline ( BitmapBuffer rBuf,
tools::Long  nY 
)
inlinestatic

Definition at line 464 of file bmpfast.cxx.

References ImplGetScanline().

◆ ImplGetScanline() [2/2]

static ConstScanline ImplGetScanline ( const BitmapBuffer rBuf,
tools::Long  nY 
)
inlinestatic