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

Go to the source code of this file.

Classes

class  BasePixelPtr
 
class  TrueColorPixelPtr< PIXFMT >
 
class  TrueColorPixelPtr< ScanlineFormat::N24BitTcRgb >
 
class  TrueColorPixelPtr< ScanlineFormat::N24BitTcBgr >
 
class  TrueColorPixelPtr< ScanlineFormat::N32BitTcArgb >
 
class  TrueColorPixelPtr< ScanlineFormat::N32BitTcAbgr >
 
class  TrueColorPixelPtr< ScanlineFormat::N32BitTcRgba >
 
class  TrueColorPixelPtr< ScanlineFormat::N32BitTcBgra >
 
class  TrueColorPixelPtr< ScanlineFormat::N8BitTcMask >
 
class  TrueColorPixelPtr< ScanlineFormat::N8BitPal >
 

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)
 
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

typedef unsigned char PIXBYTE

Definition at line 27 of file bmpfast.cxx.

Function Documentation

template<ScanlineFormat SRCFMT>
static bool ImplBlendFromBitmap ( BitmapBuffer rDst,
const BitmapBuffer rSrc,
const BitmapBuffer rMsk 
)
static
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 242 of file bmpfast.cxx.

References TrueColorPixelPtr< PIXFMT >::GetAlpha(), and ImplBlendPixels().

Referenced by ImplBlendToBitmap().

template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT>
static void ImplBlendPixels ( const TrueColorPixelPtr< DSTFMT > &  rDst,
const TrueColorPixelPtr< SRCFMT > &  rSrc,
unsigned  nAlphaVal 
)
static
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplBlendToBitmap ( TrueColorPixelPtr< SRCFMT > &  rSrcLine,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer,
const BitmapBuffer rMskBuffer 
)
static
template<>
bool ImplBlendToBitmap< ScanlineFormat::N24BitTcBgr, ScanlineFormat::N24BitTcBgr > ( TrueColorPixelPtr< ScanlineFormat::N24BitTcBgr > &  ,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer,
const BitmapBuffer rMskBuffer 
)

Definition at line 503 of file bmpfast.cxx.

References BasePixelPtr::SetRawPtr().

template<>
bool ImplBlendToBitmap< ScanlineFormat::N32BitTcAbgr, ScanlineFormat::N32BitTcAbgr > ( TrueColorPixelPtr< ScanlineFormat::N32BitTcAbgr > &  ,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer,
const BitmapBuffer rMskBuffer 
)

Definition at line 513 of file bmpfast.cxx.

References BasePixelPtr::SetRawPtr().

template<>
bool ImplBlendToBitmap< ScanlineFormat::N32BitTcBgra, ScanlineFormat::N32BitTcBgra > ( TrueColorPixelPtr< ScanlineFormat::N32BitTcBgra > &  ,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer,
const BitmapBuffer rMskBuffer 
)

Definition at line 523 of file bmpfast.cxx.

References BasePixelPtr::SetRawPtr().

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

Definition at line 200 of file bmpfast.cxx.

References ImplConvertPixel().

Referenced by ImplConvertToBitmap().

template<ScanlineFormat SRCFMT, ScanlineFormat DSTFMT>
static void ImplConvertPixel ( const TrueColorPixelPtr< DSTFMT > &  rDst,
const TrueColorPixelPtr< SRCFMT > &  rSrc 
)
static
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplConvertToBitmap ( TrueColorPixelPtr< SRCFMT > &  rSrcLine,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer 
)
static
static bool ImplCopyImage ( BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer 
)
static
bool ImplFastBitmapBlending ( BitmapWriteAccess const &  rDstWA,
const BitmapReadAccess rSrcRA,
const BitmapReadAccess rMskRA,
const SalTwoRect rTR 
)
bool ImplFastBitmapConversion ( BitmapBuffer rDst,
const BitmapBuffer rSrc,
const SalTwoRect rTR 
)
bool ImplFastEraseBitmap ( BitmapBuffer rDst,
const BitmapColor rColor 
)