Go to the source code of this file.
Data Structures | |
struct | _ILzmaInCallback |
struct | _CLzmaProperties |
struct | _CLzmaDecoderState |
Defines | |
#define | _LZMA_IN_CB |
#define | _LZMA_OUT_READ |
#define | UInt32 unsigned int |
#define | SizeT UInt32 |
#define | CProb unsigned short |
#define | LZMA_RESULT_OK 0 |
#define | LZMA_RESULT_DATA_ERROR 1 |
#define | LZMA_BASE_SIZE 1846 |
#define | LZMA_LIT_SIZE 768 |
#define | LZMA_PROPERTIES_SIZE 5 |
#define | LzmaGetNumProbs(Properties) (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((Properties)->lc + (Properties)->lp))) |
#define | kLzmaNeedInitId (-2) |
#define | LzmaDecoderInit(vs) { (vs)->RemainLen = kLzmaNeedInitId; } |
Typedefs | |
typedef _ILzmaInCallback | ILzmaInCallback |
typedef _CLzmaProperties | CLzmaProperties |
typedef _CLzmaDecoderState | CLzmaDecoderState |
Functions | |
int | LzmaDecodeProperties (CLzmaProperties *propsRes, const unsigned char *propsData, int size) |
int | LzmaDecode (CLzmaDecoderState *vs, ILzmaInCallback *inCallback, unsigned char *outStream, unsigned int outSize, unsigned int *outSizeProcessed) |
#define _LZMA_IN_CB |
Definition at line 25 of file LzmaDecode.h.
#define _LZMA_OUT_READ |
#define CProb unsigned short |
#define kLzmaNeedInitId (-2) |
#define LZMA_BASE_SIZE 1846 |
Definition at line 74 of file LzmaDecode.h.
#define LZMA_LIT_SIZE 768 |
#define LZMA_PROPERTIES_SIZE 5 |
Definition at line 77 of file LzmaDecode.h.
Referenced by lzdReadOpen(), and LzmaDecodeProperties().
#define LZMA_RESULT_DATA_ERROR 1 |
#define LZMA_RESULT_OK 0 |
Definition at line 64 of file LzmaDecode.h.
Referenced by lzdReadOpen(), LzmaDecode(), LzmaDecodeProperties(), and LzmaReadCompressed().
#define LzmaDecoderInit | ( | vs | ) | { (vs)->RemainLen = kLzmaNeedInitId; } |
#define LzmaGetNumProbs | ( | Properties | ) | (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((Properties)->lc + (Properties)->lp))) |
#define SizeT UInt32 |
#define UInt32 unsigned int |
typedef struct _CLzmaDecoderState CLzmaDecoderState |
typedef struct _CLzmaProperties CLzmaProperties |
typedef struct _ILzmaInCallback ILzmaInCallback |
int LzmaDecode | ( | CLzmaDecoderState * | vs, | |
ILzmaInCallback * | inCallback, | |||
unsigned char * | outStream, | |||
unsigned int | outSize, | |||
unsigned int * | outSizeProcessed | |||
) |
Definition at line 159 of file LzmaDecode.c.
References _LZMA_OUT_READ, Align, _CLzmaDecoderState::Buffer, _CLzmaDecoderState::BufferLim, Byte, _CLzmaDecoderState::Code, CProb, _CLzmaDecoderState::Dictionary, _CLzmaDecoderState::DictionaryPos, _CLzmaProperties::DictionarySize, _CLzmaDecoderState::DistanceLimit, _CLzmaDecoderState::GlobalPos, IfBit0, IsMatch, IsRep, IsRep0Long, IsRepG0, IsRepG1, IsRepG2, kBitModelTotal, kEndPosModelIndex, kLenNumHighBits, kLenNumLowBits, kLenNumLowSymbols, kLenNumMidBits, kLenNumMidSymbols, kLzmaNeedInitId, kLzmaStreamWasFinishedId, kMatchMinLen, kNumAlignBits, kNumLenToPosStates, kNumLitStates, kNumPosBitsMax, kNumPosSlotBits, kStartPosModelIndex, _CLzmaProperties::lc, LenChoice, LenChoice2, LenCoder, LenHigh, LenLow, LenMid, Literal, _CLzmaProperties::lp, LZMA_LIT_SIZE, LZMA_RESULT_DATA_ERROR, LZMA_RESULT_OK, _CLzmaProperties::pb, PosSlot, _CLzmaDecoderState::Probs, _CLzmaDecoderState::Properties, _CLzmaDecoderState::Range, RangeDecoderBitTreeDecode, RC_GET_BIT, RC_GET_BIT2, RC_INIT, RC_NORMALIZE, _CLzmaDecoderState::RemainLen, RepLenCoder, _CLzmaDecoderState::Reps, SizeT, SpecPos, _CLzmaDecoderState::State, _CLzmaDecoderState::TempDictionary, UInt32, UpdateBit0, and UpdateBit1.
Referenced by lzdRead().
int LzmaDecodeProperties | ( | CLzmaProperties * | propsRes, | |
const unsigned char * | propsData, | |||
int | size | |||
) |
Definition at line 124 of file LzmaDecode.c.
References _CLzmaProperties::DictionarySize, _CLzmaProperties::lc, _CLzmaProperties::lp, LZMA_PROPERTIES_SIZE, LZMA_RESULT_DATA_ERROR, LZMA_RESULT_OK, _CLzmaProperties::pb, and UInt32.
Referenced by lzdReadOpen().