20#ifndef INCLUDED_SDEXT_SOURCE_PDFIMPORT_XPDFWRAPPER_PNGHELPER_HXX
21#define INCLUDED_SDEXT_SOURCE_PDFIMPORT_XPDFWRAPPER_PNGHELPER_HXX
39 static void set( sal_uInt32 i_nValue,
OutputBuffer& o_rOutputBuf,
size_t i_nIndex );
42 size_t nCur = o_rOutputBuf.size();
43 o_rOutputBuf.insert( o_rOutputBuf.end(), 4,
Output_t(0) );
44 set( i_nValue, o_rOutputBuf, nCur );
62 GfxRGB
const & zeroColor,
63 GfxRGB
const & oneColor,
68 int width,
int height, GfxImageColorMap* colorMap,
70 int maskWidth,
int maskHeight, GfxImageColorMap* maskColorMap );
75 int width,
int height, GfxImageColorMap* colorMap,
77 int maskWidth,
int maskHeight,
bool maskInvert );
static void appendFileHeader(OutputBuffer &o_rOutputBuf)
static void append(sal_uInt32 i_nValue, OutputBuffer &o_rOutputBuf)
static size_t startChunk(const char *pChunkName, OutputBuffer &o_rOut)
static void initCRCTable()
static void createPng(OutputBuffer &o_rOutputBuf, Stream *str, int width, int height, GfxRGB const &zeroColor, GfxRGB const &oneColor, bool bIsMask)
static bool bCRCTableInit
static void endChunk(size_t nStart, OutputBuffer &o_rOut)
static void set(sal_uInt32 i_nValue, OutputBuffer &o_rOutputBuf, size_t i_nIndex)
static sal_uInt32 getCRC(const sal_uInt8 *i_pBuf, size_t i_nLen)
static void appendIHDR(OutputBuffer &o_rOutputBuf, int width, int height, int depth, int colortype)
static sal_uInt32 deflateBuffer(const Output_t *i_pBuf, size_t i_nLen, OutputBuffer &o_rOut)
static void updateCRC(sal_uInt32 &io_rCRC, const sal_uInt8 *i_pBuf, size_t i_nLen)
static void appendIEND(OutputBuffer &o_rOutputBuf)
static sal_uInt32 crc_table[256]
std::vector< Output_t > OutputBuffer