Go to the source code of this file.
Enumerations | |
enum | ELzmaDummy { DUMMY_ERROR, DUMMY_LIT, DUMMY_MATCH, DUMMY_REP } |
Functions | |
SRes | LzmaDec_Allocate (CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) |
SRes | LzmaDec_AllocateProbs (CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) |
static SRes | LzmaDec_AllocateProbs2 (CLzmaDec *p, const CLzmaProps *propNew, ISzAlloc *alloc) |
static int | LzmaDec_DecodeReal (CLzmaDec *p, SizeT limit, const Byte *bufLimit) |
static int | LzmaDec_DecodeReal2 (CLzmaDec *p, SizeT limit, const Byte *bufLimit) |
SRes | LzmaDec_DecodeToBuf (CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) |
SRes | LzmaDec_DecodeToDic (CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) |
void | LzmaDec_Free (CLzmaDec *p, ISzAlloc *alloc) |
static void | LzmaDec_FreeDict (CLzmaDec *p, ISzAlloc *alloc) |
void | LzmaDec_FreeProbs (CLzmaDec *p, ISzAlloc *alloc) |
void | LzmaDec_Init (CLzmaDec *p) |
void | LzmaDec_InitDicAndState (CLzmaDec *p, Bool initDic, Bool initState) |
static void | LzmaDec_InitRc (CLzmaDec *p, const Byte *data) |
static void | LzmaDec_InitStateReal (CLzmaDec *p) |
static ELzmaDummy | LzmaDec_TryDummy (const CLzmaDec *p, const Byte *buf, SizeT inSize) |
static void | LzmaDec_WriteRem (CLzmaDec *p, SizeT limit) |
SRes | LzmaDecode (Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, ELzmaStatus *status, ISzAlloc *alloc) |
SRes | LzmaProps_Decode (CLzmaProps *p, const Byte *data, unsigned size) |
#define Align (SpecPos + kNumFullDistances - kEndPosModelIndex) |
Definition at line 156 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define GET_BIT | ( | p, | |
i | |||
) | GET_BIT2(p, i, ;, ;) |
Definition at line 46 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define GET_BIT2 | ( | p, | |
i, | |||
A0, | |||
A1 | |||
) |
Definition at line 35 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define GET_BIT2_CHECK | ( | p, | |
i, | |||
A0, | |||
A1 | |||
) |
Definition at line 94 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
#define GET_BIT_CHECK | ( | p, | |
i | |||
) | GET_BIT2_CHECK(p, i, ;, ;) |
Definition at line 105 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
#define IF_BIT_0 | ( | p | ) |
Definition at line 23 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define IF_BIT_0_CHECK | ( | p | ) |
Definition at line 85 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
#define IsMatch 0 |
Definition at line 148 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define IsRep (IsMatch + (kNumStates << kNumPosBitsMax)) |
Definition at line 149 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define IsRep0Long (IsRepG2 + kNumStates) |
Definition at line 153 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define IsRepG0 (IsRep + kNumStates) |
Definition at line 150 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define IsRepG1 (IsRepG0 + kNumStates) |
Definition at line 151 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define IsRepG2 (IsRepG1 + kNumStates) |
Definition at line 152 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kAlignTableSize (1 << kNumAlignBits) |
Definition at line 143 of file LzmaDec.cc.
#define kBitModelTotal (1 << kNumBitModelTotalBits) |
Definition at line 12 of file LzmaDec.cc.
Referenced by LzmaDec_InitStateReal().
#define kEndPosModelIndex 14 |
Definition at line 136 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kLenNumHighBits 8 |
Definition at line 122 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kLenNumHighSymbols (1 << kLenNumHighBits) |
Definition at line 123 of file LzmaDec.cc.
#define kLenNumLowBits 3 |
Definition at line 118 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kLenNumLowSymbols (1 << kLenNumLowBits) |
Definition at line 119 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kLenNumMidBits 3 |
Definition at line 120 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kLenNumMidSymbols (1 << kLenNumMidBits) |
Definition at line 121 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kMatchMinLen 2 |
Definition at line 145 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define kMatchSpecLenStart (kMatchMinLen + kLenNumLowSymbols + kLenNumMidSymbols + kLenNumHighSymbols) |
Definition at line 146 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), LzmaDec_DecodeReal2(), LzmaDec_DecodeToDic(), and LzmaDec_WriteRem().
#define kNumAlignBits 4 |
Definition at line 142 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kNumBitModelTotalBits 11 |
Definition at line 11 of file LzmaDec.cc.
#define kNumFullDistances (1 << (kEndPosModelIndex >> 1)) |
Definition at line 137 of file LzmaDec.cc.
#define kNumLenProbs (LenHigh + kLenNumHighSymbols) |
Definition at line 130 of file LzmaDec.cc.
#define kNumLenToPosStates 4 |
Definition at line 140 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kNumLitStates 7 |
Definition at line 133 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kNumMoveBits 5 |
Definition at line 13 of file LzmaDec.cc.
#define kNumPosBitsMax 4 |
Definition at line 115 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kNumPosSlotBits 6 |
Definition at line 139 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kNumPosStatesMax (1 << kNumPosBitsMax) |
Definition at line 116 of file LzmaDec.cc.
#define kNumStates 12 |
Definition at line 132 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kNumTopBits 24 |
Definition at line 8 of file LzmaDec.cc.
#define kStartPosModelIndex 4 |
Definition at line 135 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define kTopValue ((UInt32)1 << kNumTopBits) |
Definition at line 9 of file LzmaDec.cc.
#define LenChoice 0 |
Definition at line 125 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define LenChoice2 (LenChoice + 1) |
Definition at line 126 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define LenCoder (Align + kAlignTableSize) |
Definition at line 157 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define LenHigh (LenMid + (kNumPosStatesMax << kLenNumMidBits)) |
Definition at line 129 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define LenLow (LenChoice2 + 1) |
Definition at line 127 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define LenMid (LenLow + (kNumPosStatesMax << kLenNumLowBits)) |
Definition at line 128 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define Literal (RepLenCoder + kNumLenProbs) |
Definition at line 159 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), LzmaDec_InitStateReal(), and LzmaDec_TryDummy().
#define LZMA_BASE_SIZE 1846 |
Definition at line 161 of file LzmaDec.cc.
#define LZMA_DIC_MIN (1 << 12) |
Definition at line 170 of file LzmaDec.cc.
Referenced by LzmaProps_Decode().
#define LZMA_LIT_SIZE 768 |
Definition at line 162 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), LzmaDec_InitStateReal(), and LzmaDec_TryDummy().
#define LzmaProps_GetNumProbs | ( | p | ) | ((UInt32)LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((p)->lc + (p)->lp))) |
Definition at line 164 of file LzmaDec.cc.
Referenced by LzmaDec_AllocateProbs2().
#define NORMALIZE |
Definition at line 17 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define NORMALIZE_CHECK |
Definition at line 77 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
#define PosSlot (IsRep0Long + (kNumStates << kNumPosBitsMax)) |
Definition at line 154 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define RC_INIT_SIZE 5 |
Definition at line 15 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeToDic(), and LzmaDecode().
#define RepLenCoder (LenCoder + kNumLenProbs) |
Definition at line 158 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define SpecPos (PosSlot + (kNumLenToPosStates << kNumPosSlotBits)) |
Definition at line 155 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal(), and LzmaDec_TryDummy().
#define TREE_6_DECODE | ( | probs, | |
i | |||
) |
Definition at line 64 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define TREE_DECODE | ( | probs, | |
limit, | |||
i | |||
) |
Definition at line 50 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define TREE_DECODE_CHECK | ( | probs, | |
limit, | |||
i | |||
) |
Definition at line 106 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
#define TREE_GET_BIT | ( | probs, | |
i | |||
) | { GET_BIT((probs + i), i); } |
Definition at line 48 of file LzmaDec.cc.
#define UPDATE_0 | ( | p | ) |
Definition at line 28 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define UPDATE_0_CHECK range = bound; |
Definition at line 90 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
#define UPDATE_1 | ( | p | ) |
Definition at line 31 of file LzmaDec.cc.
Referenced by LzmaDec_DecodeReal().
#define UPDATE_1_CHECK |
Definition at line 91 of file LzmaDec.cc.
Referenced by LzmaDec_TryDummy().
enum ELzmaDummy |
Enumerator | |
---|---|
DUMMY_ERROR | |
DUMMY_LIT | |
DUMMY_MATCH | |
DUMMY_REP |
Definition at line 487 of file LzmaDec.cc.
Definition at line 887 of file LzmaDec.cc.
References ISzAlloc::Alloc, _CLzmaProps::dicSize, LzmaDec_AllocateProbs2(), LzmaDec_FreeDict(), LzmaDec_FreeProbs(), LzmaProps_Decode(), AlCaHLTBitMon_ParallelJobs::p, RINOK, SZ_ERROR_MEM, and SZ_OK.
Referenced by LzmaFile::Open().
SRes LzmaDec_AllocateProbs | ( | CLzmaDec * | p, |
const Byte * | props, | ||
unsigned | propsSize, | ||
ISzAlloc * | alloc | ||
) |
Definition at line 879 of file LzmaDec.cc.
References LzmaDec_AllocateProbs2(), LzmaProps_Decode(), AlCaHLTBitMon_ParallelJobs::p, RINOK, and SZ_OK.
Referenced by LzmaDecode().
|
static |
Definition at line 867 of file LzmaDec.cc.
References ISzAlloc::Alloc, CLzmaProb, LzmaDec_FreeProbs(), LzmaProps_GetNumProbs, AlCaHLTBitMon_ParallelJobs::p, SZ_ERROR_MEM, and SZ_OK.
Referenced by LzmaDec_Allocate(), and LzmaDec_AllocateProbs().
Definition at line 186 of file LzmaDec.cc.
References Align, visDQMUpload::buf, CLzmaProb, mps_fire::dest, HLT_2022v11_cff::distance, GET_BIT, GET_BIT2, mps_fire::i, IF_BIT_0, createfilelist::int, IsMatch, IsRep, IsRep0Long, IsRepG0, IsRepG1, IsRepG2, kEndPosModelIndex, kLenNumHighBits, kLenNumLowBits, kLenNumLowSymbols, kLenNumMidBits, kLenNumMidSymbols, kMatchMinLen, kMatchSpecLenStart, kNumAlignBits, kNumLenToPosStates, kNumLitStates, kNumPosBitsMax, kNumPosSlotBits, kNumStates, kStartPosModelIndex, LenChoice, LenChoice2, LenCoder, LenHigh, LenLow, LenMid, remoteMonitoring_LASER_era2018_cfg::limit, Literal, LZMA_LIT_SIZE, NORMALIZE, hltrates_dqm_sourceclient-live_cfg::offset, AlCaHLTBitMon_ParallelJobs::p, PosSlot, TtFullHadEvtBuilder_cfi::prob, FastTimerService_cff::range, RepLenCoder, SpecPos, TrackRefitter_38T_cff::src, SZ_ERROR_DATA, SZ_OK, submitPVValidationJobs::t, TREE_6_DECODE, TREE_DECODE, UPDATE_0, and UPDATE_1.
Referenced by LzmaDec_DecodeReal2().
Definition at line 467 of file LzmaDec.cc.
References kMatchSpecLenStart, remoteMonitoring_LASER_era2018_cfg::limit, LzmaDec_DecodeReal(), LzmaDec_WriteRem(), AlCaHLTBitMon_ParallelJobs::p, and RINOK.
Referenced by LzmaDec_DecodeToDic().
SRes LzmaDec_DecodeToBuf | ( | CLzmaDec * | p, |
Byte * | dest, | ||
SizeT * | destLen, | ||
const Byte * | src, | ||
SizeT * | srcLen, | ||
ELzmaFinishMode | finishMode, | ||
ELzmaStatus * | status | ||
) |
Definition at line 786 of file LzmaDec.cc.
References mps_fire::dest, LZMA_FINISH_ANY, LzmaDec_DecodeToDic(), AlCaHLTBitMon_ParallelJobs::p, TrackRefitter_38T_cff::src, mps_update::status, and SZ_OK.
Referenced by LzmaFile::DecodeAll(), and LzmaFile::DecodeBuffer().
SRes LzmaDec_DecodeToDic | ( | CLzmaDec * | p, |
SizeT | dicLimit, | ||
const Byte * | src, | ||
SizeT * | srcLen, | ||
ELzmaFinishMode | finishMode, | ||
ELzmaStatus * | status | ||
) |
Definition at line 683 of file LzmaDec.cc.
References DUMMY_ERROR, DUMMY_MATCH, if(), kMatchSpecLenStart, LZMA_FINISH_ANY, LZMA_REQUIRED_INPUT_MAX, LZMA_STATUS_FINISHED_WITH_MARK, LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK, LZMA_STATUS_NEEDS_MORE_INPUT, LZMA_STATUS_NOT_FINISHED, LZMA_STATUS_NOT_SPECIFIED, LzmaDec_DecodeReal2(), LzmaDec_InitRc(), LzmaDec_InitStateReal(), LzmaDec_TryDummy(), LzmaDec_WriteRem(), AlCaHLTBitMon_ParallelJobs::p, RC_INIT_SIZE, TrackRefitter_38T_cff::src, mps_update::status, SZ_ERROR_DATA, and SZ_OK.
Referenced by LzmaDec_DecodeToBuf(), and LzmaDecode().
Definition at line 837 of file LzmaDec.cc.
References LzmaDec_FreeDict(), LzmaDec_FreeProbs(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaFile::Close().
Definition at line 832 of file LzmaDec.cc.
References ISzAlloc::Free, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaDec_Allocate(), and LzmaDec_Free().
Definition at line 827 of file LzmaDec.cc.
References ISzAlloc::Free, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaDec_Allocate(), LzmaDec_AllocateProbs2(), LzmaDec_Free(), and LzmaDecode().
void LzmaDec_Init | ( | CLzmaDec * | p | ) |
Definition at line 667 of file LzmaDec.cc.
References LzmaDec_InitDicAndState(), AlCaHLTBitMon_ParallelJobs::p, and True.
Referenced by LzmaDecode(), and LzmaFile::Open().
Definition at line 653 of file LzmaDec.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaDec_Init().
Definition at line 647 of file LzmaDec.cc.
References data, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaDec_DecodeToDic().
|
static |
Definition at line 672 of file LzmaDec.cc.
References CLzmaProb, mps_fire::i, kBitModelTotal, Literal, LZMA_LIT_SIZE, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaDec_DecodeToDic().
|
static |
Definition at line 494 of file LzmaDec.cc.
References Align, visDQMUpload::buf, CLzmaProb, DUMMY_LIT, DUMMY_MATCH, DUMMY_REP, GET_BIT2_CHECK, GET_BIT_CHECK, mps_fire::i, IF_BIT_0_CHECK, IsMatch, IsRep, IsRep0Long, IsRepG0, IsRepG1, IsRepG2, kEndPosModelIndex, kLenNumHighBits, kLenNumLowBits, kLenNumLowSymbols, kLenNumMidBits, kLenNumMidSymbols, kNumAlignBits, kNumLenToPosStates, kNumLitStates, kNumPosBitsMax, kNumPosSlotBits, kNumStates, kStartPosModelIndex, LenChoice, LenChoice2, LenCoder, LenHigh, LenLow, LenMid, remoteMonitoring_LASER_era2018_cfg::limit, Literal, LZMA_LIT_SIZE, NORMALIZE_CHECK, hltrates_dqm_sourceclient-live_cfg::offset, AlCaHLTBitMon_ParallelJobs::p, PosSlot, TtFullHadEvtBuilder_cfi::prob, FastTimerService_cff::range, RepLenCoder, SpecPos, TREE_DECODE_CHECK, UPDATE_0_CHECK, and UPDATE_1_CHECK.
Referenced by LzmaDec_DecodeToDic().
Definition at line 444 of file LzmaDec.cc.
References kMatchSpecLenStart, remoteMonitoring_LASER_era2018_cfg::limit, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by LzmaDec_DecodeReal2(), and LzmaDec_DecodeToDic().
SRes LzmaDecode | ( | Byte * | dest, |
SizeT * | destLen, | ||
const Byte * | src, | ||
SizeT * | srcLen, | ||
const Byte * | propData, | ||
unsigned | propSize, | ||
ELzmaFinishMode | finishMode, | ||
ELzmaStatus * | status, | ||
ISzAlloc * | alloc | ||
) |
Definition at line 906 of file LzmaDec.cc.
References mps_fire::dest, LZMA_STATUS_NEEDS_MORE_INPUT, LzmaDec_AllocateProbs(), LzmaDec_Construct, LzmaDec_DecodeToDic(), LzmaDec_FreeProbs(), LzmaDec_Init(), AlCaHLTBitMon_ParallelJobs::p, RC_INIT_SIZE, TrackRefitter_38T_cff::src, mps_update::status, SZ_ERROR_INPUT_EOF, and SZ_OK.
SRes LzmaProps_Decode | ( | CLzmaProps * | p, |
const Byte * | data, | ||
unsigned | size | ||
) |
Definition at line 842 of file LzmaDec.cc.
References ztail::d, data, LZMA_DIC_MIN, LZMA_PROPS_SIZE, AlCaHLTBitMon_ParallelJobs::p, findQualityFiles::size, SZ_ERROR_UNSUPPORTED, and SZ_OK.
Referenced by LzmaDec_Allocate(), and LzmaDec_AllocateProbs().