LibreOffice Module vcl (master)
1
|
#include <ccidecom.hxx>
Public Member Functions | |
CCIDecompressor (sal_uInt32 nOptions, sal_uInt32 nImageWidth) | |
~CCIDecompressor () | |
void | StartDecompression (SvStream &rIStream) |
DecompressStatus | DecompressScanline (sal_uInt8 *pTarget, sal_uInt64 nTargetBits, bool bLastLine) |
Private Member Functions | |
void | MakeLookUp (const CCIHuffmanTableEntry *pHufTab, const CCIHuffmanTableEntry *pHufTabSave, CCILookUpTableEntry *pLookUp, sal_uInt16 nHuffmanTableSize, sal_uInt16 nMaxCodeBits) |
bool | ReadEOL () |
bool | Read2DTag () |
sal_uInt8 | ReadBlackOrWhite () |
sal_uInt16 | ReadCodeAndDecode (const CCILookUpTableEntry *pLookUp, sal_uInt16 nMaxCodeBits) |
bool | Read1DScanlineData (sal_uInt8 *pTarget, sal_uInt16 nTargetBits) |
bool | Read2DScanlineData (sal_uInt8 *pTarget, sal_uInt16 nTargetBits) |
Static Private Member Functions | |
static void | FillBits (sal_uInt8 *pTarget, sal_uInt16 nTargetBits, sal_uInt16 nBitPos, sal_uInt16 nNumBits, sal_uInt8 nBlackOrWhite) |
static sal_uInt16 | CountBits (const sal_uInt8 *pData, sal_uInt16 nDataSizeBits, sal_uInt16 nBitPos, sal_uInt8 nBlackOrWhite) |
Private Attributes | |
bool | bTableBad |
bool | bStatus |
std::unique_ptr< sal_uInt8[]> | pByteSwap |
SvStream * | pIStream |
sal_uInt32 | nEOLCount |
sal_uInt32 | nWidth |
sal_uInt32 | nOptions |
bool | bFirstEOL |
std::array< CCILookUpTableEntry, 1<< 13 > | pWhiteLookUp |
std::array< CCILookUpTableEntry, 1<< 13 > | pBlackLookUp |
std::array< CCILookUpTableEntry, 1<< 10 > | p2DModeLookUp |
std::array< CCILookUpTableEntry, 1<< 11 > | pUncompLookUp |
sal_uInt32 | nInputBitsBuf |
sal_uInt16 | nInputBitsBufSize |
std::unique_ptr< sal_uInt8[]> | pLastLine |
sal_uInt64 | nLastLineSize |
Definition at line 59 of file ccidecom.hxx.
CCIDecompressor::CCIDecompressor | ( | sal_uInt32 | nOptions, |
sal_uInt32 | nImageWidth | ||
) |
Definition at line 567 of file ccidecom.cxx.
References CCI2DModeTableSize, CCI_OPTION_INVERSEBITORDER, CCIBlackTableSize, CCIUncompTableSize, CCIWhiteTableSize, i, MakeLookUp(), p2DModeLookUp, pBlackLookUp, pByteSwap, pUncompLookUp, and pWhiteLookUp.
CCIDecompressor::~CCIDecompressor | ( | ) |
Definition at line 597 of file ccidecom.cxx.
DecompressStatus CCIDecompressor::DecompressScanline | ( | sal_uInt8 * | pTarget, |
sal_uInt64 | nTargetBits, | ||
bool | bLastLine | ||
) |
Definition at line 614 of file ccidecom.cxx.
References bFirstEOL, bStatus, CCI_OPTION_2D, CCI_OPTION_BYTEALIGNROW, CCI_OPTION_EOL, SvStream::GetError(), nEOLCount, nInputBitsBuf, nInputBitsBufSize, nLastLineSize, nOptions, pIStream, pLastLine, Read1DScanlineData(), Read2DScanlineData(), Read2DTag(), ReadEOL(), SAL_MAX_UINT16, SvStream::Seek(), and SvStream::Tell().
|
staticprivate |
Definition at line 849 of file ccidecom.cxx.
Referenced by Read2DScanlineData().
|
private |
Definition at line 709 of file ccidecom.cxx.
References bTableBad, i, nCode, CCIHuffmanTableEntry::nCode, CCIHuffmanTableEntry::nCodeBits, CCILookUpTableEntry::nCodeBits, nValue, CCIHuffmanTableEntry::nValue, and CCILookUpTableEntry::nValue.
Referenced by CCIDecompressor().
|
private |
Definition at line 903 of file ccidecom.cxx.
References CCI_OPTION_INVERSEBITORDER, nCode, nEOLCount, nInputBitsBuf, nInputBitsBufSize, nOptions, pBlackLookUp, pByteSwap, pIStream, pWhiteLookUp, and SvStream::ReadUChar().
Referenced by DecompressScanline().
|
private |
Definition at line 1002 of file ccidecom.cxx.
References bStatus, CCI2DMODE_HORZ, CCI2DMODE_PASS, CCI2DMODE_UNCOMP, CCI2DMODE_VERT_0, CCIUNCOMP_0White_1Black, CCIUNCOMP_0White_End, CCIUNCOMP_4White_1Black, CCIUNCOMP_5White, CountBits(), FillBits(), p2DModeLookUp, pBlackLookUp, pLastLine, pUncompLookUp, pWhiteLookUp, ReadBlackOrWhite(), and ReadCodeAndDecode().
Referenced by DecompressScanline().
|
private |
Definition at line 794 of file ccidecom.cxx.
References CCI_OPTION_INVERSEBITORDER, nInputBitsBuf, nInputBitsBufSize, nOptions, pByteSwap, pIStream, and SvStream::ReadUChar().
Referenced by DecompressScanline().
|
private |
Definition at line 810 of file ccidecom.cxx.
References CCI_OPTION_INVERSEBITORDER, nInputBitsBuf, nInputBitsBufSize, nOptions, pByteSwap, pIStream, and SvStream::ReadUChar().
Referenced by Read2DScanlineData().
|
private |
Definition at line 827 of file ccidecom.cxx.
References bStatus, CCI_OPTION_INVERSEBITORDER, nCode, CCILookUpTableEntry::nCodeBits, nInputBitsBuf, nInputBitsBufSize, nOptions, CCILookUpTableEntry::nValue, pByteSwap, pIStream, and SvStream::ReadUChar().
Referenced by Read2DScanlineData().
|
private |
Definition at line 750 of file ccidecom.cxx.
References CCI_OPTION_INVERSEBITORDER, SvStream::good(), nCode, nEOLCount, nInputBitsBuf, nInputBitsBufSize, nOptions, nWidth, pByteSwap, pIStream, SvStream::ReadUChar(), and SvStream::Tell().
Referenced by DecompressScanline().
Definition at line 602 of file ccidecom.cxx.
References bFirstEOL, bStatus, bTableBad, nEOLCount, nInputBitsBufSize, and pIStream.
|
private |
Definition at line 112 of file ccidecom.hxx.
Referenced by DecompressScanline(), and StartDecompression().
|
private |
Definition at line 100 of file ccidecom.hxx.
Referenced by DecompressScanline(), Read2DScanlineData(), ReadCodeAndDecode(), and StartDecompression().
|
private |
Definition at line 98 of file ccidecom.hxx.
Referenced by MakeLookUp(), and StartDecompression().
|
private |
Definition at line 106 of file ccidecom.hxx.
Referenced by DecompressScanline(), Read1DScanlineData(), ReadEOL(), and StartDecompression().
|
private |
Definition at line 119 of file ccidecom.hxx.
Referenced by DecompressScanline(), Read1DScanlineData(), Read2DTag(), ReadBlackOrWhite(), ReadCodeAndDecode(), and ReadEOL().
|
private |
Definition at line 120 of file ccidecom.hxx.
Referenced by DecompressScanline(), Read1DScanlineData(), Read2DTag(), ReadBlackOrWhite(), ReadCodeAndDecode(), ReadEOL(), and StartDecompression().
|
private |
Definition at line 123 of file ccidecom.hxx.
Referenced by DecompressScanline().
|
private |
Definition at line 110 of file ccidecom.hxx.
Referenced by DecompressScanline(), Read1DScanlineData(), Read2DTag(), ReadBlackOrWhite(), ReadCodeAndDecode(), and ReadEOL().
|
private |
Definition at line 108 of file ccidecom.hxx.
Referenced by ReadEOL().
|
private |
Definition at line 116 of file ccidecom.hxx.
Referenced by CCIDecompressor(), and Read2DScanlineData().
|
private |
Definition at line 115 of file ccidecom.hxx.
Referenced by CCIDecompressor(), Read1DScanlineData(), and Read2DScanlineData().
|
private |
Definition at line 102 of file ccidecom.hxx.
Referenced by CCIDecompressor(), Read1DScanlineData(), Read2DTag(), ReadBlackOrWhite(), ReadCodeAndDecode(), and ReadEOL().
|
private |
Definition at line 104 of file ccidecom.hxx.
Referenced by DecompressScanline(), Read1DScanlineData(), Read2DTag(), ReadBlackOrWhite(), ReadCodeAndDecode(), ReadEOL(), and StartDecompression().
|
private |
Definition at line 122 of file ccidecom.hxx.
Referenced by DecompressScanline(), and Read2DScanlineData().
|
private |
Definition at line 117 of file ccidecom.hxx.
Referenced by CCIDecompressor(), and Read2DScanlineData().
|
private |
Definition at line 114 of file ccidecom.hxx.
Referenced by CCIDecompressor(), Read1DScanlineData(), and Read2DScanlineData().