LibreOffice Module sdext (master)  1
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
pdfi::PngHelper Class Reference

#include <pnghelper.hxx>

Static Public Member Functions

static void updateCRC (sal_uInt32 &io_rCRC, const sal_uInt8 *i_pBuf, size_t i_nLen)
 
static sal_uInt32 getCRC (const sal_uInt8 *i_pBuf, size_t i_nLen)
 
static sal_uInt32 deflateBuffer (const Output_t *i_pBuf, size_t i_nLen, OutputBuffer &o_rOut)
 
static void createPng (OutputBuffer &o_rOutputBuf, Stream *str, int width, int height, GfxRGB const &zeroColor, GfxRGB const &oneColor, bool bIsMask)
 
static void createPng (OutputBuffer &o_rOutputBuf, Stream *str, int width, int height, GfxImageColorMap *colorMap, Stream *maskStr, int maskWidth, int maskHeight, GfxImageColorMap *maskColorMap)
 
static void createPng (OutputBuffer &o_rOutputBuf, Stream *str, int width, int height, GfxImageColorMap *colorMap, Stream *maskStr, int maskWidth, int maskHeight, bool maskInvert)
 

Static Private Member Functions

static void initCRCTable ()
 
static void appendFileHeader (OutputBuffer &o_rOutputBuf)
 
static size_t startChunk (const char *pChunkName, OutputBuffer &o_rOut)
 
static void endChunk (size_t nStart, OutputBuffer &o_rOut)
 
static void set (sal_uInt32 i_nValue, OutputBuffer &o_rOutputBuf, size_t i_nIndex)
 
static void append (sal_uInt32 i_nValue, OutputBuffer &o_rOutputBuf)
 
static void appendIHDR (OutputBuffer &o_rOutputBuf, int width, int height, int depth, int colortype)
 
static void appendIEND (OutputBuffer &o_rOutputBuf)
 

Static Private Attributes

static sal_uInt32 crc_table [256]
 
static bool bCRCTableInit = true
 

Detailed Description

Definition at line 29 of file pnghelper.hxx.

Member Function Documentation

static void pdfi::PngHelper::append ( sal_uInt32  i_nValue,
OutputBuffer o_rOutputBuf 
)
inlinestaticprivate

Definition at line 40 of file pnghelper.hxx.

References set().

Referenced by appendIHDR(), and endChunk().

void PngHelper::appendFileHeader ( OutputBuffer o_rOutputBuf)
staticprivate

Definition at line 116 of file pnghelper.cxx.

References SAL_N_ELEMENTS.

Referenced by createPng().

void PngHelper::appendIEND ( OutputBuffer o_rOutputBuf)
staticprivate

Definition at line 170 of file pnghelper.cxx.

References endChunk(), and startChunk().

Referenced by createPng().

void PngHelper::appendIHDR ( OutputBuffer o_rOutputBuf,
int  width,
int  height,
int  depth,
int  colortype 
)
staticprivate

Definition at line 157 of file pnghelper.cxx.

References append(), endChunk(), and startChunk().

Referenced by createPng().

void PngHelper::createPng ( OutputBuffer o_rOutputBuf,
Stream *  str,
int  width,
int  height,
GfxRGB const &  zeroColor,
GfxRGB const &  oneColor,
bool  bIsMask 
)
static

Definition at line 176 of file pnghelper.cxx.

References appendFileHeader(), appendIEND(), appendIHDR(), deflateBuffer(), endChunk(), startChunk(), x, and y.

Referenced by pdfi::writePng_().

void PngHelper::createPng ( OutputBuffer o_rOutputBuf,
Stream *  str,
int  width,
int  height,
GfxImageColorMap *  colorMap,
Stream *  maskStr,
int  maskWidth,
int  maskHeight,
GfxImageColorMap *  maskColorMap 
)
static
void PngHelper::createPng ( OutputBuffer o_rOutputBuf,
Stream *  str,
int  width,
int  height,
GfxImageColorMap *  colorMap,
Stream *  maskStr,
int  maskWidth,
int  maskHeight,
bool  maskInvert 
)
static
sal_uInt32 PngHelper::deflateBuffer ( const Output_t i_pBuf,
size_t  i_nLen,
OutputBuffer o_rOut 
)
static

Definition at line 76 of file pnghelper.cxx.

Referenced by createPng().

void PngHelper::endChunk ( size_t  nStart,
OutputBuffer o_rOut 
)
staticprivate

Definition at line 142 of file pnghelper.cxx.

References append(), getCRC(), and set().

Referenced by appendIEND(), appendIHDR(), and createPng().

sal_uInt32 PngHelper::getCRC ( const sal_uInt8 i_pBuf,
size_t  i_nLen 
)
static

Definition at line 69 of file pnghelper.cxx.

References updateCRC().

Referenced by endChunk().

void PngHelper::initCRCTable ( )
staticprivate

Definition at line 36 of file pnghelper.cxx.

References bCRCTableInit, crc_table, and n.

Referenced by updateCRC().

void PngHelper::set ( sal_uInt32  i_nValue,
OutputBuffer o_rOutputBuf,
size_t  i_nIndex 
)
staticprivate

Definition at line 134 of file pnghelper.cxx.

Referenced by append(), and endChunk().

size_t PngHelper::startChunk ( const char *  pChunkName,
OutputBuffer o_rOut 
)
staticprivate

Definition at line 123 of file pnghelper.cxx.

References nIndex.

Referenced by appendIEND(), appendIHDR(), and createPng().

void PngHelper::updateCRC ( sal_uInt32 &  io_rCRC,
const sal_uInt8 i_pBuf,
size_t  i_nLen 
)
static

Definition at line 58 of file pnghelper.cxx.

References bCRCTableInit, crc_table, initCRCTable(), and n.

Referenced by getCRC().

Member Data Documentation

bool PngHelper::bCRCTableInit = true
staticprivate

Definition at line 32 of file pnghelper.hxx.

Referenced by initCRCTable(), and updateCRC().

sal_uInt32 PngHelper::crc_table
staticprivate

Definition at line 31 of file pnghelper.hxx.

Referenced by initCRCTable(), and updateCRC().


The documentation for this class was generated from the following files: