LLVM API Documentation
#include "bzlib_private.h"
Include dependency graph for compress.c:
Go to the source code of this file.
Defines | |
#define | bsNEEDW(nz) |
#define | BZ_LESSER_ICOST 0 |
#define | BZ_GREATER_ICOST 15 |
#define | BZ_ITER(nn) |
#define | BZ_ITUR(nn) s->rfreq[bt][ mtfv[gs+(nn)] ]++ |
#define | BZ_ITAH(nn) |
Functions | |
void | BZ2_bsInitWrite (EState *s) |
static void | bsFinishWrite (EState *s) |
static __inline__ void | bsW (EState *s, Int32 n, UInt32 v) |
static void | bsPutUInt32 (EState *s, UInt32 u) |
static void | bsPutUChar (EState *s, UChar c) |
static void | makeMaps_e (EState *s) |
static void | generateMTFValues (EState *s) |
static void | sendMTFValues (EState *s) |
void | BZ2_compressBlock (EState *s, Bool is_last_block) |
|
Value: { \ while (s->bsLive >= 8) { \ s->zbits[s->numZ] \ = (UChar)(s->bsBuff >> 24); \ s->numZ++; \ s->bsBuff <<= 8; \ s->bsLive -= 8; \ } \ } Definition at line 102 of file compress.c. Referenced by bsW(). |
|
Definition at line 280 of file compress.c. Referenced by sendMTFValues(). |
|
Value: mtfv_i = mtfv[gs+(nn)]; \ bsW ( s, \ s_len_sel_selCtr[mtfv_i], \ s_code_sel_selCtr[mtfv_i] ) Referenced by sendMTFValues(). |
|
Value: icv = mtfv[gs+(nn)]; \ cost01 += s->len_pack[icv][0]; \ cost23 += s->len_pack[icv][1]; \ cost45 += s->len_pack[icv][2]; \ Referenced by sendMTFValues(). |
|
Referenced by sendMTFValues(). |
|
Definition at line 279 of file compress.c. Referenced by sendMTFValues(). |
|
Definition at line 90 of file compress.c. References EState::bsBuff, EState::bsLive, EState::numZ, and EState::zbits. Referenced by BZ2_compressBlock(). |
|
Definition at line 138 of file compress.c. References bsW(). Referenced by BZ2_compressBlock(). |
|
Definition at line 127 of file compress.c. References bsW(). Referenced by BZ2_compressBlock(). |
|
Definition at line 117 of file compress.c. References EState::bsBuff, EState::bsLive, and bsNEEDW. Referenced by bsPutUChar(), bsPutUInt32(), BZ2_compressBlock(), and sendMTFValues(). |
|
Definition at line 81 of file compress.c. References EState::bsBuff, and EState::bsLive. Referenced by BZ2_compressBlock(). |
|
Definition at line 644 of file compress.c. References EState::arr2, EState::blockCRC, EState::blockNo, EState::blockSize100k, bsFinishWrite(), bsPutUChar(), bsPutUInt32(), bsW(), BZ2_blockSort(), BZ2_bsInitWrite(), BZ_FINALISE_CRC, BZ_HDR_0, BZ_HDR_B, BZ_HDR_h, BZ_HDR_Z, EState::combinedCRC, generateMTFValues(), EState::nblock, EState::numZ, EState::origPtr, sendMTFValues(), EState::verbosity, VPrintf1, VPrintf4, and EState::zbits. |
|
Definition at line 164 of file compress.c. References AssertD, EState::block, BZ_RUNB, makeMaps_e(), EState::mtfFreq, EState::mtfv, EState::nInUse, EState::ptr, True, and EState::unseqToSeq. Referenced by BZ2_compressBlock(). |
|
Definition at line 150 of file compress.c. References EState::inUse, EState::nInUse, and EState::unseqToSeq. Referenced by generateMTFValues(). |
|
Definition at line 283 of file compress.c. References AssertH, bsW(), BZ2_hbAssignCodes(), BZ2_hbMakeCodeLengths(), BZ_G_SIZE, BZ_GREATER_ICOST, BZ_ITAH, BZ_ITER, BZ_ITUR, BZ_LESSER_ICOST, BZ_N_GROUPS, BZ_N_ITERS, EState::code, False, EState::inUse, EState::len, EState::len_pack, EState::mtfFreq, EState::mtfv, EState::nblock, EState::nInUse, EState::nMTF, EState::numZ, EState::rfreq, EState::selector, EState::selectorMtf, EState::verbosity, VPrintf0, VPrintf1, VPrintf2, VPrintf3, and VPrintf5. Referenced by BZ2_compressBlock(). |