Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/LZH/LZHMacro.hpp File Reference

Go to the source code of this file.

Defines

#define BYTE   unsigned char
#define INT16   signed short
#define INT32   signed long
#define UINT16   unsigned short
#define UINT32   unsigned long
#define min(a, b)   ( (a) < (b) ? (a) : (b) )
#define max(a, b)   ( (a) > (b) ? (a) : (b) )
#define ROTL(x, y)   ( ( (x) << (y) ) | ( (x) >> (32-(y)) ) )
#define LZMIN   4
#define LZBUFBITS   16
#define LZMATCH   5
#define LZSLOWHASH
#define LZTABLEBITS   15
#define LZOVERLAP
#define LZBACKWARDMATCH
#define LZLAZYMATCH
#define LZSKIPHASH   1024
#define HUFFRECALCLEN   4096
#define LZTABLESIZE   (1<<(LZTABLEBITS))
#define LZBUFSIZE   (1<<(LZBUFBITS))
#define LZPOS   UINT32
#define LZBUFMASK   ( (LZBUFSIZE) - 1 )
#define LZTABLEINT   UINT16
#define LZHASH   UINT32
#define HUFFINT   INT16
#define HUFFUINT   UINT16
#define NHUFFSYMBOLS   ( 256 + 16 + 2 )
#define LZHASHSHIFT   5
#define UPDATE_HASH(hash, c)
#define UPDATE_HASH_EX(hash, src)
#define HASH_POS(hash)   ((( (hash) * 214013 + 2531011) >> (32-LZTABLEBITS)) )
#define HUFFRECALCSTAT(s)   ( (s) >> 1 )

Typedefs

typedef unsigned short LZTableItem


Define Documentation

#define BYTE   unsigned char
 

Definition at line 5 of file LZHMacro.hpp.

#define HASH_POS hash       ((( (hash) * 214013 + 2531011) >> (32-LZTABLEBITS)) )
 

Definition at line 99 of file LZHMacro.hpp.

Referenced by LZHLCompressor::_updateTable(), and LZHLCompressor::compress().

#define HUFFINT   INT16
 

Definition at line 77 of file LZHMacro.hpp.

#define HUFFRECALCLEN   4096
 

Definition at line 59 of file LZHMacro.hpp.

#define HUFFRECALCSTAT s       ( (s) >> 1 )
 

Definition at line 111 of file LZHMacro.hpp.

Referenced by HuffStat::makeSortedTmp().

#define HUFFUINT   UINT16
 

Definition at line 78 of file LZHMacro.hpp.

#define INT16   signed short
 

Definition at line 9 of file LZHMacro.hpp.

#define INT32   signed long
 

Definition at line 13 of file LZHMacro.hpp.

#define LZBACKWARDMATCH
 

Definition at line 55 of file LZHMacro.hpp.

#define LZBUFBITS   16
 

Definition at line 44 of file LZHMacro.hpp.

#define LZBUFMASK   ( (LZBUFSIZE) - 1 )
 

Definition at line 69 of file LZHMacro.hpp.

#define LZBUFSIZE   (1<<(LZBUFBITS))
 

Definition at line 65 of file LZHMacro.hpp.

#define LZHASH   UINT32
 

Definition at line 74 of file LZHMacro.hpp.

#define LZHASHSHIFT   5
 

Definition at line 84 of file LZHMacro.hpp.

#define LZLAZYMATCH
 

Definition at line 56 of file LZHMacro.hpp.

#define LZMATCH   5
 

Definition at line 48 of file LZHMacro.hpp.

#define LZMIN   4
 

Definition at line 39 of file LZHMacro.hpp.

#define LZOVERLAP
 

Definition at line 54 of file LZHMacro.hpp.

#define LZPOS   UINT32
 

Definition at line 68 of file LZHMacro.hpp.

#define LZSKIPHASH   1024
 

Definition at line 57 of file LZHMacro.hpp.

#define LZSLOWHASH
 

Definition at line 50 of file LZHMacro.hpp.

#define LZTABLEBITS   15
 

Definition at line 51 of file LZHMacro.hpp.

#define LZTABLEINT   UINT16
 

Definition at line 71 of file LZHMacro.hpp.

#define LZTABLESIZE   (1<<(LZTABLEBITS))
 

Definition at line 64 of file LZHMacro.hpp.

#define NHUFFSYMBOLS   ( 256 + 16 + 2 )
 

Definition at line 79 of file LZHMacro.hpp.

#define ROTL x,
     ( ( (x) << (y) ) | ( (x) >> (32-(y)) ) )
 

Definition at line 36 of file LZHMacro.hpp.

#define UINT16   unsigned short
 

Definition at line 17 of file LZHMacro.hpp.

#define UINT32   unsigned long
 

Definition at line 21 of file LZHMacro.hpp.

#define UPDATE_HASH hash,
 
 

Value:

{                                   \
    hash ^= (c);                        \
    hash = ROTL( hash, LZHASHSHIFT );   \
    }

Definition at line 86 of file LZHMacro.hpp.

Referenced by _calcHash(), LZHLCompressor::_updateTable(), and LZHLCompressor::compress().

#define UPDATE_HASH_EX hash,
src   
 

Value:

{                                                   \
    hash ^= ROTL( (src)[ 0 ], LZHASHSHIFT * LZMATCH );  \
    hash ^= (src)[ LZMATCH ];                           \
    hash = ROTL( hash, LZHASHSHIFT );                   \
    }

Definition at line 92 of file LZHMacro.hpp.

Referenced by LZHLCompressor::_updateTable(), and LZHLCompressor::compress().

#define max a,
     ( (a) > (b) ? (a) : (b) )
 

Definition at line 29 of file LZHMacro.hpp.

Referenced by smatrix::operator *(), smatrix::operator+(), smatrix::const_svector_ref::operator+(), smatrix::operator-(), smatrix::const_svector_ref::operator-(), svAddEq(), and smatrix::svMultiply().

#define min a,
     ( (a) < (b) ? (a) : (b) )
 

Definition at line 25 of file LZHMacro.hpp.

Referenced by LZHLCompressor::compress(), lzhl_recv(), svAddEq(), and smatrix::svMultiply().


Typedef Documentation

typedef unsigned short LZTableItem
 

Definition at line 72 of file LZHMacro.hpp.


Generated on Sun Oct 14 18:47:43 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001