summaryrefslogtreecommitdiff
path: root/filter/source/graphicfilter/egif/giflzwc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/graphicfilter/egif/giflzwc.cxx')
-rw-r--r--filter/source/graphicfilter/egif/giflzwc.cxx29
1 files changed, 5 insertions, 24 deletions
diff --git a/filter/source/graphicfilter/egif/giflzwc.cxx b/filter/source/graphicfilter/egif/giflzwc.cxx
index d74fa0db4bfc..7f5709a5ad62 100644
--- a/filter/source/graphicfilter/egif/giflzwc.cxx
+++ b/filter/source/graphicfilter/egif/giflzwc.cxx
@@ -22,9 +22,6 @@
#include "giflzwc.hxx"
-// - GIFImageDataOutputStream -
-
-
class GIFImageDataOutputStream
{
private:
@@ -47,7 +44,6 @@ public:
};
-
inline void GIFImageDataOutputStream::FlushBitsBufsFullBytes()
{
while (nBitsBufSize>=8)
@@ -62,7 +58,6 @@ inline void GIFImageDataOutputStream::FlushBitsBufsFullBytes()
}
-
inline void GIFImageDataOutputStream::WriteBits( sal_uInt16 nCode, sal_uInt16 nCodeLen )
{
if( nBitsBufSize+nCodeLen>32 )
@@ -73,7 +68,6 @@ inline void GIFImageDataOutputStream::WriteBits( sal_uInt16 nCode, sal_uInt16 nC
}
-
GIFImageDataOutputStream::GIFImageDataOutputStream( SvStream & rGIF, sal_uInt8 nLZWDataSize ) :
rStream(rGIF)
{
@@ -85,8 +79,6 @@ GIFImageDataOutputStream::GIFImageDataOutputStream( SvStream & rGIF, sal_uInt8 n
}
-
-
GIFImageDataOutputStream::~GIFImageDataOutputStream()
{
WriteBits(0,7);
@@ -97,7 +89,6 @@ GIFImageDataOutputStream::~GIFImageDataOutputStream()
}
-
void GIFImageDataOutputStream::FlushBlockBuf()
{
if( nBlockBufSize )
@@ -109,22 +100,16 @@ void GIFImageDataOutputStream::FlushBlockBuf()
}
-// - GIFLZWCTreeNode -
-
-
struct GIFLZWCTreeNode
{
GIFLZWCTreeNode* pBrother; // next node which has the same father
GIFLZWCTreeNode* pFirstChild; // first
- sal_uInt16 nCode; // the code for the string of pixel values which comes about
- sal_uInt16 nValue; // the pixel value
+ sal_uInt16 nCode; // the code for the string of pixel values which comes about
+ sal_uInt16 nValue; // the pixel value
};
-// - GIFLZWCompressor -
-
-
GIFLZWCompressor::GIFLZWCompressor()
: pIDOS(nullptr), pTable(nullptr), pPrefix(nullptr), nDataSize(0), nClearCode(0),
nEOICode(0), nTableSize(0), nCodeSize(0)
@@ -132,14 +117,12 @@ GIFLZWCompressor::GIFLZWCompressor()
}
-
GIFLZWCompressor::~GIFLZWCompressor()
{
if (pIDOS!=nullptr) EndCompression();
}
-
void GIFLZWCompressor::StartCompression( SvStream& rGIF, sal_uInt16 nPixelSize )
{
if( !pIDOS )
@@ -171,14 +154,13 @@ void GIFLZWCompressor::StartCompression( SvStream& rGIF, sal_uInt16 nPixelSize )
}
-
void GIFLZWCompressor::Compress( sal_uInt8* pSrc, sal_uLong nSize )
{
if( pIDOS )
{
- GIFLZWCTreeNode* p;
- sal_uInt16 i;
- sal_uInt8 nV;
+ GIFLZWCTreeNode* p;
+ sal_uInt16 i;
+ sal_uInt8 nV;
if( !pPrefix && nSize )
{
@@ -231,7 +213,6 @@ void GIFLZWCompressor::Compress( sal_uInt8* pSrc, sal_uLong nSize )
}
-
void GIFLZWCompressor::EndCompression()
{
if( pIDOS )