Classes | Defines | Typedefs | Functions | Variables
bzlib_private.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "bzlib.h"
Include dependency graph for bzlib_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DState
struct  EState

Defines

#define __inline__   /* */
#define AssertD(cond, msg)   /* */
#define AssertH(cond, errcode)   { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }
#define BZ_FINALISE_CRC(crcVar)
#define BZ_G_SIZE   50
#define BZ_GET_FAST(cccc)
#define BZ_GET_FAST_C(cccc)
#define BZ_GET_SMALL(cccc)
#define BZ_HDR_0   0x30 /* '0' */
#define BZ_HDR_B   0x42 /* 'B' */
#define BZ_HDR_h   0x68 /* 'h' */
#define BZ_HDR_Z   0x5a /* 'Z' */
#define BZ_INITIALISE_CRC(crcVar)
#define BZ_M_FINISHING   4
#define BZ_M_FLUSHING   3
#define BZ_M_IDLE   1
#define BZ_M_RUNNING   2
#define BZ_MAX_ALPHA_SIZE   258
#define BZ_MAX_CODE_LEN   23
#define BZ_MAX_SELECTORS   (2 + (900000 / BZ_G_SIZE))
#define BZ_N_GROUPS   6
#define BZ_N_ITERS   4
#define BZ_N_OVERSHOOT   (BZ_N_RADIX + BZ_N_QSORT + BZ_N_SHELL + 2)
#define BZ_N_QSORT   12
#define BZ_N_RADIX   2
#define BZ_N_SHELL   18
#define BZ_RAND_DECLS
#define BZ_RAND_INIT_MASK
#define BZ_RAND_MASK   ((s->rNToGo == 1) ? 1 : 0)
#define BZ_RAND_UPD_MASK
#define BZ_RUNA   0
#define BZ_RUNB   1
#define BZ_S_INPUT   2
#define BZ_S_OUTPUT   1
#define BZ_UPDATE_CRC(crcVar, cha)
#define BZ_VERSION   "1.0.6, 6-Sept-2010"
#define BZ_X_BCRC_1   20
#define BZ_X_BCRC_2   21
#define BZ_X_BCRC_3   22
#define BZ_X_BCRC_4   23
#define BZ_X_BLKHDR_1   14
#define BZ_X_BLKHDR_2   15
#define BZ_X_BLKHDR_3   16
#define BZ_X_BLKHDR_4   17
#define BZ_X_BLKHDR_5   18
#define BZ_X_BLKHDR_6   19
#define BZ_X_CCRC_1   47
#define BZ_X_CCRC_2   48
#define BZ_X_CCRC_3   49
#define BZ_X_CCRC_4   50
#define BZ_X_CODING_1   33
#define BZ_X_CODING_2   34
#define BZ_X_CODING_3   35
#define BZ_X_ENDHDR_2   42
#define BZ_X_ENDHDR_3   43
#define BZ_X_ENDHDR_4   44
#define BZ_X_ENDHDR_5   45
#define BZ_X_ENDHDR_6   46
#define BZ_X_IDLE   1
#define BZ_X_MAGIC_1   10
#define BZ_X_MAGIC_2   11
#define BZ_X_MAGIC_3   12
#define BZ_X_MAGIC_4   13
#define BZ_X_MAPPING_1   28
#define BZ_X_MAPPING_2   29
#define BZ_X_MTF_1   36
#define BZ_X_MTF_2   37
#define BZ_X_MTF_3   38
#define BZ_X_MTF_4   39
#define BZ_X_MTF_5   40
#define BZ_X_MTF_6   41
#define BZ_X_ORIGPTR_1   25
#define BZ_X_ORIGPTR_2   26
#define BZ_X_ORIGPTR_3   27
#define BZ_X_OUTPUT   2
#define BZ_X_RANDBIT   24
#define BZ_X_SELECTOR_1   30
#define BZ_X_SELECTOR_2   31
#define BZ_X_SELECTOR_3   32
#define BZALLOC(nnn)   (strm->bzalloc)(strm->opaque,(nnn),1)
#define BZFREE(ppp)   (strm->bzfree)(strm->opaque,(ppp))
#define False   ((Bool)0)
#define GET_LL(i)   (((UInt32)s->ll16[i]) | (GET_LL4(i) << 16))
#define GET_LL4(i)   ((((UInt32)(s->ll4[(i) >> 1])) >> (((i) << 2) & 0x4)) & 0xF)
#define MTFA_SIZE   4096
#define MTFL_SIZE   16
#define SET_LL(i, n)
#define SET_LL4(i, n)
#define True   ((Bool)1)
#define VPrintf0(zf)   fprintf(stderr,zf)
#define VPrintf1(zf, za1)   fprintf(stderr,zf,za1)
#define VPrintf2(zf, za1, za2)   fprintf(stderr,zf,za1,za2)
#define VPrintf3(zf, za1, za2, za3)   fprintf(stderr,zf,za1,za2,za3)
#define VPrintf4(zf, za1, za2, za3, za4)   fprintf(stderr,zf,za1,za2,za3,za4)
#define VPrintf5(zf, za1, za2, za3, za4, za5)   fprintf(stderr,zf,za1,za2,za3,za4,za5)

Typedefs

typedef unsigned char Bool
typedef char Char
typedef short Int16
typedef int Int32
typedef unsigned char UChar
typedef unsigned short UInt16
typedef unsigned int UInt32

Functions

void BZ2_blockSort (EState *)
void BZ2_bsInitWrite (EState *)
void BZ2_bz__AssertH__fail (int errcode)
void BZ2_compressBlock (EState *, Bool)
Int32 BZ2_decompress (DState *)
void BZ2_hbAssignCodes (Int32 *, UChar *, Int32, Int32, Int32)
void BZ2_hbCreateDecodeTables (Int32 *, Int32 *, Int32 *, UChar *, Int32, Int32, Int32)
void BZ2_hbMakeCodeLengths (UChar *, Int32 *, Int32, Int32)
Int32 BZ2_indexIntoF (Int32, Int32 *)

Variables

UInt32 BZ2_crc32Table [256]
Int32 BZ2_rNums [512]

Define Documentation

#define __inline__   /* */

Definition at line 53 of file bzlib_private.h.

#define AssertD (   cond,
  msg 
)    /* */

Definition at line 70 of file bzlib_private.h.

#define AssertH (   cond,
  errcode 
)    { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }

Definition at line 59 of file bzlib_private.h.

#define BZ_FINALISE_CRC (   crcVar)
Value:
{                                              \
   crcVar = ~(crcVar);                         \
}

Definition at line 162 of file bzlib_private.h.

#define BZ_G_SIZE   50

Definition at line 122 of file bzlib_private.h.

#define BZ_GET_FAST (   cccc)
Value:
/* c_tPos is unsigned, hence test < 0 is pointless. */ \
    if (s->tPos >= (UInt32)100000 * (UInt32)s->blockSize100k) return True; \
    s->tPos = s->tt[s->tPos];                 \
    cccc = (UChar)(s->tPos & 0xff);           \
    s->tPos >>= 8;

Definition at line 444 of file bzlib_private.h.

#define BZ_GET_FAST_C (   cccc)
Value:
/* c_tPos is unsigned, hence test < 0 is pointless. */ \
    if (c_tPos >= (UInt32)100000 * (UInt32)ro_blockSize100k) return True; \
    c_tPos = c_tt[c_tPos];                    \
    cccc = (UChar)(c_tPos & 0xff);            \
    c_tPos >>= 8;

Definition at line 451 of file bzlib_private.h.

#define BZ_GET_SMALL (   cccc)
Value:
/* c_tPos is unsigned, hence test < 0 is pointless. */ \
    if (s->tPos >= (UInt32)100000 * (UInt32)s->blockSize100k) return True; \
    cccc = BZ2_indexIntoF ( s->tPos, s->cftab );    \
    s->tPos = GET_LL(s->tPos);

Definition at line 475 of file bzlib_private.h.

#define BZ_HDR_0   0x30 /* '0' */

Definition at line 111 of file bzlib_private.h.

#define BZ_HDR_B   0x42 /* 'B' */

Definition at line 108 of file bzlib_private.h.

#define BZ_HDR_h   0x68 /* 'h' */

Definition at line 110 of file bzlib_private.h.

#define BZ_HDR_Z   0x5a /* 'Z' */

Definition at line 109 of file bzlib_private.h.

#define BZ_INITIALISE_CRC (   crcVar)
Value:
{                                              \
   crcVar = 0xffffffffL;                       \
}

Definition at line 157 of file bzlib_private.h.

#define BZ_M_FINISHING   4

Definition at line 181 of file bzlib_private.h.

#define BZ_M_FLUSHING   3

Definition at line 180 of file bzlib_private.h.

#define BZ_M_IDLE   1

Definition at line 178 of file bzlib_private.h.

#define BZ_M_RUNNING   2

Definition at line 179 of file bzlib_private.h.

#define BZ_MAX_ALPHA_SIZE   258

Definition at line 115 of file bzlib_private.h.

#define BZ_MAX_CODE_LEN   23

Definition at line 116 of file bzlib_private.h.

#define BZ_MAX_SELECTORS   (2 + (900000 / BZ_G_SIZE))

Definition at line 125 of file bzlib_private.h.

#define BZ_N_GROUPS   6

Definition at line 121 of file bzlib_private.h.

#define BZ_N_ITERS   4

Definition at line 123 of file bzlib_private.h.

Definition at line 189 of file bzlib_private.h.

#define BZ_N_QSORT   12

Definition at line 187 of file bzlib_private.h.

#define BZ_N_RADIX   2

Definition at line 186 of file bzlib_private.h.

#define BZ_N_SHELL   18

Definition at line 188 of file bzlib_private.h.

#define BZ_RAND_DECLS
Value:
Int32 rNToGo;                               \
   Int32 rTPos                                 \

Definition at line 133 of file bzlib_private.h.

Value:
s->rNToGo = 0;                              \
   s->rTPos  = 0                               \

Definition at line 137 of file bzlib_private.h.

#define BZ_RAND_MASK   ((s->rNToGo == 1) ? 1 : 0)

Definition at line 141 of file bzlib_private.h.

Value:
if (s->rNToGo == 0) {                       \
      s->rNToGo = BZ2_rNums[s->rTPos];         \
      s->rTPos++;                              \
      if (s->rTPos == 512) s->rTPos = 0;       \
   }                                           \
   s->rNToGo--;

Definition at line 143 of file bzlib_private.h.

#define BZ_RUNA   0

Definition at line 118 of file bzlib_private.h.

#define BZ_RUNB   1

Definition at line 119 of file bzlib_private.h.

#define BZ_S_INPUT   2

Definition at line 184 of file bzlib_private.h.

#define BZ_S_OUTPUT   1

Definition at line 183 of file bzlib_private.h.

#define BZ_UPDATE_CRC (   crcVar,
  cha 
)
Value:
{                                              \
   crcVar = (crcVar << 8) ^                    \
            BZ2_crc32Table[(crcVar >> 24) ^    \
                           ((UChar)cha)];      \
}

Definition at line 167 of file bzlib_private.h.

#define BZ_VERSION   "1.0.6, 6-Sept-2010"

Definition at line 39 of file bzlib_private.h.

#define BZ_X_BCRC_1   20

Definition at line 304 of file bzlib_private.h.

#define BZ_X_BCRC_2   21

Definition at line 305 of file bzlib_private.h.

#define BZ_X_BCRC_3   22

Definition at line 306 of file bzlib_private.h.

#define BZ_X_BCRC_4   23

Definition at line 307 of file bzlib_private.h.

#define BZ_X_BLKHDR_1   14

Definition at line 298 of file bzlib_private.h.

#define BZ_X_BLKHDR_2   15

Definition at line 299 of file bzlib_private.h.

#define BZ_X_BLKHDR_3   16

Definition at line 300 of file bzlib_private.h.

#define BZ_X_BLKHDR_4   17

Definition at line 301 of file bzlib_private.h.

#define BZ_X_BLKHDR_5   18

Definition at line 302 of file bzlib_private.h.

#define BZ_X_BLKHDR_6   19

Definition at line 303 of file bzlib_private.h.

#define BZ_X_CCRC_1   47

Definition at line 331 of file bzlib_private.h.

#define BZ_X_CCRC_2   48

Definition at line 332 of file bzlib_private.h.

#define BZ_X_CCRC_3   49

Definition at line 333 of file bzlib_private.h.

#define BZ_X_CCRC_4   50

Definition at line 334 of file bzlib_private.h.

#define BZ_X_CODING_1   33

Definition at line 317 of file bzlib_private.h.

#define BZ_X_CODING_2   34

Definition at line 318 of file bzlib_private.h.

#define BZ_X_CODING_3   35

Definition at line 319 of file bzlib_private.h.

#define BZ_X_ENDHDR_2   42

Definition at line 326 of file bzlib_private.h.

#define BZ_X_ENDHDR_3   43

Definition at line 327 of file bzlib_private.h.

#define BZ_X_ENDHDR_4   44

Definition at line 328 of file bzlib_private.h.

#define BZ_X_ENDHDR_5   45

Definition at line 329 of file bzlib_private.h.

#define BZ_X_ENDHDR_6   46

Definition at line 330 of file bzlib_private.h.

#define BZ_X_IDLE   1

Definition at line 291 of file bzlib_private.h.

#define BZ_X_MAGIC_1   10

Definition at line 294 of file bzlib_private.h.

#define BZ_X_MAGIC_2   11

Definition at line 295 of file bzlib_private.h.

#define BZ_X_MAGIC_3   12

Definition at line 296 of file bzlib_private.h.

#define BZ_X_MAGIC_4   13

Definition at line 297 of file bzlib_private.h.

#define BZ_X_MAPPING_1   28

Definition at line 312 of file bzlib_private.h.

#define BZ_X_MAPPING_2   29

Definition at line 313 of file bzlib_private.h.

#define BZ_X_MTF_1   36

Definition at line 320 of file bzlib_private.h.

#define BZ_X_MTF_2   37

Definition at line 321 of file bzlib_private.h.

#define BZ_X_MTF_3   38

Definition at line 322 of file bzlib_private.h.

#define BZ_X_MTF_4   39

Definition at line 323 of file bzlib_private.h.

#define BZ_X_MTF_5   40

Definition at line 324 of file bzlib_private.h.

#define BZ_X_MTF_6   41

Definition at line 325 of file bzlib_private.h.

#define BZ_X_ORIGPTR_1   25

Definition at line 309 of file bzlib_private.h.

#define BZ_X_ORIGPTR_2   26

Definition at line 310 of file bzlib_private.h.

#define BZ_X_ORIGPTR_3   27

Definition at line 311 of file bzlib_private.h.

#define BZ_X_OUTPUT   2

Definition at line 292 of file bzlib_private.h.

#define BZ_X_RANDBIT   24

Definition at line 308 of file bzlib_private.h.

#define BZ_X_SELECTOR_1   30

Definition at line 314 of file bzlib_private.h.

#define BZ_X_SELECTOR_2   31

Definition at line 315 of file bzlib_private.h.

#define BZ_X_SELECTOR_3   32

Definition at line 316 of file bzlib_private.h.

#define BZALLOC (   nnn)    (strm->bzalloc)(strm->opaque,(nnn),1)

Definition at line 102 of file bzlib_private.h.

#define BZFREE (   ppp)    (strm->bzfree)(strm->opaque,(ppp))

Definition at line 103 of file bzlib_private.h.

#define False   ((Bool)0)

Definition at line 50 of file bzlib_private.h.

#define GET_LL (   i)    (((UInt32)s->ll16[i]) | (GET_LL4(i) << 16))

Definition at line 472 of file bzlib_private.h.

#define GET_LL4 (   i)    ((((UInt32)(s->ll4[(i) >> 1])) >> (((i) << 2) & 0x4)) & 0xF)

Definition at line 464 of file bzlib_private.h.

#define MTFA_SIZE   4096

Definition at line 340 of file bzlib_private.h.

#define MTFL_SIZE   16

Definition at line 341 of file bzlib_private.h.

#define SET_LL (   i,
 
)
Value:
{ s->ll16[i] = (UInt16)(n & 0x0000ffff);  \
     SET_LL4(i, n >> 16);                    \
   }

Definition at line 467 of file bzlib_private.h.

#define SET_LL4 (   i,
 
)
Value:
{ if (((i) & 0x1) == 0)                                    \
        s->ll4[(i) >> 1] = (s->ll4[(i) >> 1] & 0xf0) | (n); else    \
        s->ll4[(i) >> 1] = (s->ll4[(i) >> 1] & 0x0f) | ((n) << 4);  \
   }

Definition at line 458 of file bzlib_private.h.

#define True   ((Bool)1)

Definition at line 49 of file bzlib_private.h.

#define VPrintf0 (   zf)    fprintf(stderr,zf)

Definition at line 73 of file bzlib_private.h.

#define VPrintf1 (   zf,
  za1 
)    fprintf(stderr,zf,za1)

Definition at line 75 of file bzlib_private.h.

#define VPrintf2 (   zf,
  za1,
  za2 
)    fprintf(stderr,zf,za1,za2)

Definition at line 77 of file bzlib_private.h.

#define VPrintf3 (   zf,
  za1,
  za2,
  za3 
)    fprintf(stderr,zf,za1,za2,za3)

Definition at line 79 of file bzlib_private.h.

#define VPrintf4 (   zf,
  za1,
  za2,
  za3,
  za4 
)    fprintf(stderr,zf,za1,za2,za3,za4)

Definition at line 81 of file bzlib_private.h.

#define VPrintf5 (   zf,
  za1,
  za2,
  za3,
  za4,
  za5 
)    fprintf(stderr,zf,za1,za2,za3,za4,za5)

Definition at line 83 of file bzlib_private.h.


Typedef Documentation

typedef unsigned char Bool

Definition at line 42 of file bzlib_private.h.

typedef char Char

Definition at line 41 of file bzlib_private.h.

typedef short Int16

Definition at line 46 of file bzlib_private.h.

typedef int Int32

Definition at line 44 of file bzlib_private.h.

typedef unsigned char UChar

Definition at line 43 of file bzlib_private.h.

typedef unsigned short UInt16

Definition at line 47 of file bzlib_private.h.

typedef unsigned int UInt32

Definition at line 45 of file bzlib_private.h.


Function Documentation

void BZ2_blockSort ( EState )

Definition at line 1031 of file blocksort.c.

void BZ2_bsInitWrite ( EState )

Definition at line 37 of file compress.c.

void BZ2_bz__AssertH__fail ( int  errcode)

Definition at line 41 of file bzlib.c.

void BZ2_compressBlock ( EState ,
Bool   
)

Definition at line 602 of file compress.c.

Definition at line 106 of file decompress.c.

void BZ2_hbAssignCodes ( Int32 ,
UChar ,
Int32  ,
Int32  ,
Int32   
)

Definition at line 152 of file huffman.c.

void BZ2_hbCreateDecodeTables ( Int32 ,
Int32 ,
Int32 ,
UChar ,
Int32  ,
Int32  ,
Int32   
)

Definition at line 170 of file huffman.c.

void BZ2_hbMakeCodeLengths ( UChar ,
Int32 ,
Int32  ,
Int32   
)

Definition at line 63 of file huffman.c.

Int32 BZ2_indexIntoF ( Int32  ,
Int32  
)

Definition at line 687 of file bzlib.c.


Variable Documentation

Definition at line 31 of file crctable.c.

Definition at line 26 of file randtable.c.



win_bzip2
Author(s): Daniel Stonier
autogenerated on Mon Oct 6 2014 12:28:20