LibreOffice Module vcl (master)  1
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.

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, long nY)
 
static Scanline ImplGetScanline (BitmapBuffer &rBuf, long nY)
 
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplCopyToScanline (long nY, BitmapBuffer &rDst, TrueColorPixelPtr< SRCFMT > &rSrcLine, long nSrcWidth)
 
template<ScanlineFormat SRCFMT>
static bool ImplCopyFromScanline (long nY, BitmapBuffer &rDst, ConstScanline aSrcScanline, long nSrcWidth)
 
bool ImplFastCopyScanline (long nY, BitmapBuffer &rDst, ConstScanline aSrcScanline, ScanlineFormat nSrcScanlineFormat, sal_uInt32 nSrcScanlineSize)
 
bool ImplFastCopyScanline (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

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 246 of file bmpfast.cxx.

References ImplBlendPixels().

Referenced by ImplBlendToBitmap().

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

Referenced by ImplBlendLines().

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 610 of file bmpfast.cxx.

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

Definition at line 620 of file bmpfast.cxx.

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

Definition at line 630 of file bmpfast.cxx.

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 204 of file bmpfast.cxx.

References ImplConvertPixel().

Referenced by ImplConvertToBitmap(), and ImplCopyToScanline().

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

template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplConvertToBitmap ( TrueColorPixelPtr< SRCFMT > &  rSrcLine,
BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer 
)
static
template<ScanlineFormat SRCFMT>
static bool ImplCopyFromScanline ( long  nY,
BitmapBuffer rDst,
ConstScanline  aSrcScanline,
long  nSrcWidth 
)
static
static bool ImplCopyImage ( BitmapBuffer rDstBuffer,
const BitmapBuffer rSrcBuffer 
)
static
template<ScanlineFormat DSTFMT, ScanlineFormat SRCFMT>
static bool ImplCopyToScanline ( long  nY,
BitmapBuffer rDst,
TrueColorPixelPtr< SRCFMT > &  rSrcLine,
long  nSrcWidth 
)
static

Definition at line 480 of file bmpfast.cxx.

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

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 ImplFastCopyScanline ( long  nY,
BitmapBuffer rDst,
ConstScanline  aSrcScanline,
ScanlineFormat  nSrcScanlineFormat,
sal_uInt32  nSrcScanlineSize 
)
bool ImplFastCopyScanline ( long  nY,
BitmapBuffer rDst,
const BitmapBuffer rSrc 
)
bool ImplFastEraseBitmap ( BitmapBuffer rDst,
const BitmapColor rColor 
)
static ConstScanline ImplGetScanline ( const BitmapBuffer rBuf,
long  nY 
)
inlinestatic
static Scanline ImplGetScanline ( BitmapBuffer rBuf,
long  nY 
)
inlinestatic

Definition at line 474 of file bmpfast.cxx.

References ImplGetScanline().