LibreOffice Module lotuswordpro (master) 1
|
#include <explode.hxx>
Public Member Functions | |
Decompression (SvStream *pInStream, SvStream *pOutStream) | |
sal_Int32 | explode () |
decompress from instream to outstream More... | |
sal_uInt32 | ReadBits (sal_uInt16 iCount, sal_uInt32 &nBits) |
@descr read specified bits from input stream @argument iCount - number of bits to be read, less than 31 @argument nBits - bits read More... | |
sal_uInt32 | Decode (HuffmanTreeNode *pRoot) |
@descr decode tree 1 for length More... | |
Private Member Functions | |
void | ConstructTree1 () |
@descr construct tree 1 for length More... | |
void | ConstructTree2 () |
@descr construct tree 2 for distance More... | |
void | fillArray () |
@descr More... | |
Static Private Member Functions | |
static void | ToString (sal_uInt32 nBits, char *pChar, sal_uInt32 nLen) |
@descr bits to string More... | |
Private Attributes | |
SvStream * | m_pInStream |
compressed/decompressed stream More... | |
SvStream * | m_pOutStream |
sal_uInt32 | m_nCurrent4Byte |
sal_uInt32 | m_nBitsLeft |
sal_uInt8 | m_Buffer [CHUNK] |
sal_uInt8 * | m_pBuffer |
sal_uInt32 | m_nBytesLeft |
sal_uInt8 | m_Output [MAXWIN] |
sal_uInt32 | m_nOutputBufferPos |
sal_uInt32 | m_iArrayOfM [16] |
std::unique_ptr< HuffmanTreeNode > | m_Tree1 |
std::unique_ptr< HuffmanTreeNode > | m_Tree2 |
Definition at line 84 of file explode.hxx.
Definition at line 150 of file explode.cxx.
References ConstructTree1(), ConstructTree2(), fillArray(), m_pBuffer, m_pInStream, and m_pOutStream.
|
private |
@descr construct tree 1 for length
Definition at line 381 of file explode.cxx.
References i, m_Tree1, and Tree1String.
Referenced by Decompression().
|
private |
@descr construct tree 2 for distance
Definition at line 429 of file explode.cxx.
References i, m_Tree2, and Tree2String.
Referenced by Decompression().
sal_uInt32 Decompression::Decode | ( | HuffmanTreeNode * | pRoot | ) |
@descr decode tree 1 for length
Definition at line 352 of file explode.cxx.
References i, HuffmanTreeNode::QueryValue(), ReadBits(), and ToString().
Referenced by explode().
sal_Int32 Decompression::explode | ( | ) |
decompress from instream to outstream
@descr decompress input and write output
Definition at line 208 of file explode.cxx.
References Decode(), distance, SvStream::FlushBuffer(), i, L2, m_iArrayOfM, m_nOutputBufferPos, m_Output, m_pOutStream, m_Tree1, m_Tree2, MAXWIN, P1, P2, ReadBits(), SvStream::ReadBytes(), SvStream::Seek(), SvStream::SeekRel(), SvStream::Tell(), and SvStream::WriteBytes().
Referenced by Decompress().
|
private |
@descr
Definition at line 443 of file explode.cxx.
References i, and m_iArrayOfM.
Referenced by Decompression().
sal_uInt32 Decompression::ReadBits | ( | sal_uInt16 | iCount, |
sal_uInt32 & | nBits | ||
) |
@descr read specified bits from input stream @argument iCount - number of bits to be read, less than 31 @argument nBits - bits read
Definition at line 173 of file explode.cxx.
References CHUNK, m_Buffer, m_nBitsLeft, m_nBytesLeft, m_nCurrent4Byte, m_pBuffer, m_pInStream, and SvStream::ReadBytes().
|
staticprivate |
Definition at line 107 of file explode.hxx.
Referenced by ReadBits().
|
private |
Definition at line 114 of file explode.hxx.
Referenced by explode(), and fillArray().
|
private |
Definition at line 105 of file explode.hxx.
Referenced by ReadBits().
|
private |
Definition at line 109 of file explode.hxx.
Referenced by ReadBits().
|
private |
Definition at line 104 of file explode.hxx.
Referenced by ReadBits().
|
private |
Definition at line 112 of file explode.hxx.
Referenced by explode().
Definition at line 111 of file explode.hxx.
Referenced by explode().
|
private |
Definition at line 108 of file explode.hxx.
Referenced by ReadBits().
|
private |
compressed/decompressed stream
Definition at line 101 of file explode.hxx.
Referenced by Decompression(), and ReadBits().
|
private |
Definition at line 102 of file explode.hxx.
Referenced by Decompression(), and explode().
|
private |
Definition at line 116 of file explode.hxx.
Referenced by ConstructTree1(), and explode().
|
private |
Definition at line 116 of file explode.hxx.
Referenced by ConstructTree2(), and explode().