abc-master
|
Go to the source code of this file.
Data Structures | |
struct | EState |
struct | DState |
Macros | |
#define | BZ_VERSION "1.0.5, 10-Dec-2007" |
#define | True ((Bool)1) |
#define | False ((Bool)0) |
#define | __inline__ /* */ |
#define | AssertH(cond, errcode) { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); } |
#define | AssertD(cond, msg) /* */ |
#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) |
#define | BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1) |
#define | BZFREE(ppp) (strm->bzfree)(strm->opaque,(ppp)) |
#define | BZ_HDR_B 0x42 /* 'B' */ |
#define | BZ_HDR_Z 0x5a /* 'Z' */ |
#define | BZ_HDR_h 0x68 /* 'h' */ |
#define | BZ_HDR_0 0x30 /* '0' */ |
#define | BZ_MAX_ALPHA_SIZE 258 |
#define | BZ_MAX_CODE_LEN 23 |
#define | BZ_RUNA 0 |
#define | BZ_RUNB 1 |
#define | BZ_N_GROUPS 6 |
#define | BZ_G_SIZE 50 |
#define | BZ_N_ITERS 4 |
#define | BZ_MAX_SELECTORS (2 + (900000 / BZ_G_SIZE)) |
#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_INITIALISE_CRC(crcVar) |
#define | BZ_FINALISE_CRC(crcVar) |
#define | BZ_UPDATE_CRC(crcVar, cha) |
#define | BZ_M_IDLE 1 |
#define | BZ_M_RUNNING 2 |
#define | BZ_M_FLUSHING 3 |
#define | BZ_M_FINISHING 4 |
#define | BZ_S_OUTPUT 1 |
#define | BZ_S_INPUT 2 |
#define | BZ_N_RADIX 2 |
#define | BZ_N_QSORT 12 |
#define | BZ_N_SHELL 18 |
#define | BZ_N_OVERSHOOT (BZ_N_RADIX + BZ_N_QSORT + BZ_N_SHELL + 2) |
#define | BZ_X_IDLE 1 |
#define | BZ_X_OUTPUT 2 |
#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_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_BCRC_1 20 |
#define | BZ_X_BCRC_2 21 |
#define | BZ_X_BCRC_3 22 |
#define | BZ_X_BCRC_4 23 |
#define | BZ_X_RANDBIT 24 |
#define | BZ_X_ORIGPTR_1 25 |
#define | BZ_X_ORIGPTR_2 26 |
#define | BZ_X_ORIGPTR_3 27 |
#define | BZ_X_MAPPING_1 28 |
#define | BZ_X_MAPPING_2 29 |
#define | BZ_X_SELECTOR_1 30 |
#define | BZ_X_SELECTOR_2 31 |
#define | BZ_X_SELECTOR_3 32 |
#define | BZ_X_CODING_1 33 |
#define | BZ_X_CODING_2 34 |
#define | BZ_X_CODING_3 35 |
#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_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_CCRC_1 47 |
#define | BZ_X_CCRC_2 48 |
#define | BZ_X_CCRC_3 49 |
#define | BZ_X_CCRC_4 50 |
#define | MTFA_SIZE 4096 |
#define | MTFL_SIZE 16 |
#define | BZ_GET_FAST(cccc) |
#define | BZ_GET_FAST_C(cccc) |
#define | SET_LL4(i, n) |
#define | GET_LL4(i) ((((UInt32)(s->ll4[(i) >> 1])) >> (((i) << 2) & 0x4)) & 0xF) |
#define | SET_LL(i, n) |
#define | GET_LL(i) (((UInt32)s->ll16[i]) | (GET_LL4(i) << 16)) |
#define | BZ_GET_SMALL(cccc) |
Typedefs | |
typedef char | Char |
typedef unsigned char | Bool |
typedef unsigned char | UChar |
typedef int | Int32 |
typedef unsigned int | UInt32 |
typedef short | Int16 |
typedef unsigned short | UInt16 |
Functions | |
void | BZ2_bz__AssertH__fail (int errcode) |
void | BZ2_blockSort (EState *) |
void | BZ2_compressBlock (EState *, Bool) |
void | BZ2_bsInitWrite (EState *) |
void | BZ2_hbAssignCodes (Int32 *, UChar *, Int32, Int32, Int32) |
void | BZ2_hbMakeCodeLengths (UChar *, Int32 *, Int32, Int32) |
Int32 | BZ2_indexIntoF (Int32, Int32 *) |
Int32 | BZ2_decompress (DState *) |
void | BZ2_hbCreateDecodeTables (Int32 *, Int32 *, Int32 *, UChar *, Int32, Int32, Int32) |
Variables | |
Int32 | BZ2_rNums [512] |
UInt32 | BZ2_crc32Table [256] |
#define __inline__ /* */ |
Definition at line 55 of file bzlib_private.h.
#define AssertD | ( | cond, | |
msg | |||
) | /* */ |
Definition at line 72 of file bzlib_private.h.
#define AssertH | ( | cond, | |
errcode | |||
) | { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); } |
Definition at line 61 of file bzlib_private.h.
#define BZ_FINALISE_CRC | ( | crcVar | ) |
Definition at line 164 of file bzlib_private.h.
#define BZ_G_SIZE 50 |
Definition at line 124 of file bzlib_private.h.
#define BZ_GET_FAST | ( | cccc | ) |
Definition at line 446 of file bzlib_private.h.
#define BZ_GET_FAST_C | ( | cccc | ) |
Definition at line 453 of file bzlib_private.h.
#define BZ_GET_SMALL | ( | cccc | ) |
Definition at line 477 of file bzlib_private.h.
#define BZ_HDR_0 0x30 /* '0' */ |
Definition at line 113 of file bzlib_private.h.
#define BZ_HDR_B 0x42 /* 'B' */ |
Definition at line 110 of file bzlib_private.h.
#define BZ_HDR_h 0x68 /* 'h' */ |
Definition at line 112 of file bzlib_private.h.
#define BZ_HDR_Z 0x5a /* 'Z' */ |
Definition at line 111 of file bzlib_private.h.
#define BZ_INITIALISE_CRC | ( | crcVar | ) |
Definition at line 159 of file bzlib_private.h.
#define BZ_M_FINISHING 4 |
Definition at line 183 of file bzlib_private.h.
#define BZ_M_FLUSHING 3 |
Definition at line 182 of file bzlib_private.h.
#define BZ_M_IDLE 1 |
Definition at line 180 of file bzlib_private.h.
#define BZ_M_RUNNING 2 |
Definition at line 181 of file bzlib_private.h.
#define BZ_MAX_ALPHA_SIZE 258 |
Definition at line 117 of file bzlib_private.h.
#define BZ_MAX_CODE_LEN 23 |
Definition at line 118 of file bzlib_private.h.
#define BZ_MAX_SELECTORS (2 + (900000 / BZ_G_SIZE)) |
Definition at line 127 of file bzlib_private.h.
#define BZ_N_GROUPS 6 |
Definition at line 123 of file bzlib_private.h.
#define BZ_N_ITERS 4 |
Definition at line 125 of file bzlib_private.h.
#define BZ_N_OVERSHOOT (BZ_N_RADIX + BZ_N_QSORT + BZ_N_SHELL + 2) |
Definition at line 191 of file bzlib_private.h.
#define BZ_N_QSORT 12 |
Definition at line 189 of file bzlib_private.h.
#define BZ_N_RADIX 2 |
Definition at line 188 of file bzlib_private.h.
#define BZ_N_SHELL 18 |
Definition at line 190 of file bzlib_private.h.
#define BZ_RAND_DECLS |
Definition at line 135 of file bzlib_private.h.
#define BZ_RAND_INIT_MASK |
Definition at line 139 of file bzlib_private.h.
#define BZ_RAND_MASK ((s->rNToGo == 1) ? 1 : 0) |
Definition at line 143 of file bzlib_private.h.
#define BZ_RAND_UPD_MASK |
Definition at line 145 of file bzlib_private.h.
#define BZ_RUNA 0 |
Definition at line 120 of file bzlib_private.h.
#define BZ_RUNB 1 |
Definition at line 121 of file bzlib_private.h.
#define BZ_S_INPUT 2 |
Definition at line 186 of file bzlib_private.h.
#define BZ_S_OUTPUT 1 |
Definition at line 185 of file bzlib_private.h.
#define BZ_UPDATE_CRC | ( | crcVar, | |
cha | |||
) |
Definition at line 169 of file bzlib_private.h.
#define BZ_VERSION "1.0.5, 10-Dec-2007" |
Definition at line 41 of file bzlib_private.h.
#define BZ_X_BCRC_1 20 |
Definition at line 306 of file bzlib_private.h.
#define BZ_X_BCRC_2 21 |
Definition at line 307 of file bzlib_private.h.
#define BZ_X_BCRC_3 22 |
Definition at line 308 of file bzlib_private.h.
#define BZ_X_BCRC_4 23 |
Definition at line 309 of file bzlib_private.h.
#define BZ_X_BLKHDR_1 14 |
Definition at line 300 of file bzlib_private.h.
#define BZ_X_BLKHDR_2 15 |
Definition at line 301 of file bzlib_private.h.
#define BZ_X_BLKHDR_3 16 |
Definition at line 302 of file bzlib_private.h.
#define BZ_X_BLKHDR_4 17 |
Definition at line 303 of file bzlib_private.h.
#define BZ_X_BLKHDR_5 18 |
Definition at line 304 of file bzlib_private.h.
#define BZ_X_BLKHDR_6 19 |
Definition at line 305 of file bzlib_private.h.
#define BZ_X_CCRC_1 47 |
Definition at line 333 of file bzlib_private.h.
#define BZ_X_CCRC_2 48 |
Definition at line 334 of file bzlib_private.h.
#define BZ_X_CCRC_3 49 |
Definition at line 335 of file bzlib_private.h.
#define BZ_X_CCRC_4 50 |
Definition at line 336 of file bzlib_private.h.
#define BZ_X_CODING_1 33 |
Definition at line 319 of file bzlib_private.h.
#define BZ_X_CODING_2 34 |
Definition at line 320 of file bzlib_private.h.
#define BZ_X_CODING_3 35 |
Definition at line 321 of file bzlib_private.h.
#define BZ_X_ENDHDR_2 42 |
Definition at line 328 of file bzlib_private.h.
#define BZ_X_ENDHDR_3 43 |
Definition at line 329 of file bzlib_private.h.
#define BZ_X_ENDHDR_4 44 |
Definition at line 330 of file bzlib_private.h.
#define BZ_X_ENDHDR_5 45 |
Definition at line 331 of file bzlib_private.h.
#define BZ_X_ENDHDR_6 46 |
Definition at line 332 of file bzlib_private.h.
#define BZ_X_IDLE 1 |
Definition at line 293 of file bzlib_private.h.
#define BZ_X_MAGIC_1 10 |
Definition at line 296 of file bzlib_private.h.
#define BZ_X_MAGIC_2 11 |
Definition at line 297 of file bzlib_private.h.
#define BZ_X_MAGIC_3 12 |
Definition at line 298 of file bzlib_private.h.
#define BZ_X_MAGIC_4 13 |
Definition at line 299 of file bzlib_private.h.
#define BZ_X_MAPPING_1 28 |
Definition at line 314 of file bzlib_private.h.
#define BZ_X_MAPPING_2 29 |
Definition at line 315 of file bzlib_private.h.
#define BZ_X_MTF_1 36 |
Definition at line 322 of file bzlib_private.h.
#define BZ_X_MTF_2 37 |
Definition at line 323 of file bzlib_private.h.
#define BZ_X_MTF_3 38 |
Definition at line 324 of file bzlib_private.h.
#define BZ_X_MTF_4 39 |
Definition at line 325 of file bzlib_private.h.
#define BZ_X_MTF_5 40 |
Definition at line 326 of file bzlib_private.h.
#define BZ_X_MTF_6 41 |
Definition at line 327 of file bzlib_private.h.
#define BZ_X_ORIGPTR_1 25 |
Definition at line 311 of file bzlib_private.h.
#define BZ_X_ORIGPTR_2 26 |
Definition at line 312 of file bzlib_private.h.
#define BZ_X_ORIGPTR_3 27 |
Definition at line 313 of file bzlib_private.h.
#define BZ_X_OUTPUT 2 |
Definition at line 294 of file bzlib_private.h.
#define BZ_X_RANDBIT 24 |
Definition at line 310 of file bzlib_private.h.
#define BZ_X_SELECTOR_1 30 |
Definition at line 316 of file bzlib_private.h.
#define BZ_X_SELECTOR_2 31 |
Definition at line 317 of file bzlib_private.h.
#define BZ_X_SELECTOR_3 32 |
Definition at line 318 of file bzlib_private.h.
#define BZALLOC | ( | nnn | ) | (strm->bzalloc)(strm->opaque,(nnn),1) |
Definition at line 104 of file bzlib_private.h.
#define BZFREE | ( | ppp | ) | (strm->bzfree)(strm->opaque,(ppp)) |
Definition at line 105 of file bzlib_private.h.
#define False ((Bool)0) |
Definition at line 52 of file bzlib_private.h.
Definition at line 474 of file bzlib_private.h.
#define GET_LL4 | ( | i | ) | ((((UInt32)(s->ll4[(i) >> 1])) >> (((i) << 2) & 0x4)) & 0xF) |
Definition at line 466 of file bzlib_private.h.
#define MTFA_SIZE 4096 |
Definition at line 342 of file bzlib_private.h.
#define MTFL_SIZE 16 |
Definition at line 343 of file bzlib_private.h.
#define SET_LL | ( | i, | |
n | |||
) |
Definition at line 469 of file bzlib_private.h.
#define SET_LL4 | ( | i, | |
n | |||
) |
Definition at line 460 of file bzlib_private.h.
#define True ((Bool)1) |
Definition at line 51 of file bzlib_private.h.
#define VPrintf0 | ( | zf | ) | fprintf(stderr,zf) |
Definition at line 75 of file bzlib_private.h.
#define VPrintf1 | ( | zf, | |
za1 | |||
) | fprintf(stderr,zf,za1) |
Definition at line 77 of file bzlib_private.h.
#define VPrintf2 | ( | zf, | |
za1, | |||
za2 | |||
) | fprintf(stderr,zf,za1,za2) |
Definition at line 79 of file bzlib_private.h.
#define VPrintf3 | ( | zf, | |
za1, | |||
za2, | |||
za3 | |||
) | fprintf(stderr,zf,za1,za2,za3) |
Definition at line 81 of file bzlib_private.h.
#define VPrintf4 | ( | zf, | |
za1, | |||
za2, | |||
za3, | |||
za4 | |||
) | fprintf(stderr,zf,za1,za2,za3,za4) |
Definition at line 83 of file bzlib_private.h.
#define VPrintf5 | ( | zf, | |
za1, | |||
za2, | |||
za3, | |||
za4, | |||
za5 | |||
) | fprintf(stderr,zf,za1,za2,za3,za4,za5) |
Definition at line 85 of file bzlib_private.h.
typedef unsigned char Bool |
Definition at line 44 of file bzlib_private.h.
typedef char Char |
Definition at line 43 of file bzlib_private.h.
typedef short Int16 |
Definition at line 48 of file bzlib_private.h.
typedef int Int32 |
Definition at line 46 of file bzlib_private.h.
typedef unsigned char UChar |
Definition at line 45 of file bzlib_private.h.
typedef unsigned short UInt16 |
Definition at line 49 of file bzlib_private.h.
typedef unsigned int UInt32 |
Definition at line 47 of file bzlib_private.h.
void BZ2_blockSort | ( | EState * | ) |
Definition at line 1033 of file blocksort.c.
void BZ2_bsInitWrite | ( | EState * | ) |
Definition at line 40 of file compress.c.
Definition at line 605 of file compress.c.
Definition at line 109 of file decompress.c.
Definition at line 155 of file huffman.c.
UInt32 BZ2_crc32Table[256] |
Definition at line 34 of file crctable.c.
Int32 BZ2_rNums[512] |
Definition at line 29 of file randtable.c.