rpmio/LzmaDecode.h File Reference

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 Documentation

#define _LZMA_IN_CB

Definition at line 25 of file LzmaDecode.h.

#define _LZMA_OUT_READ

Definition at line 28 of file LzmaDecode.h.

Referenced by LzmaDecode().

#define CProb   unsigned short

Definition at line 61 of file LzmaDecode.h.

Referenced by lzdReadOpen(), and LzmaDecode().

#define kLzmaNeedInitId   (-2)

Definition at line 93 of file LzmaDecode.h.

Referenced by LzmaDecode().

#define LZMA_BASE_SIZE   1846

Definition at line 74 of file LzmaDecode.h.

#define LZMA_LIT_SIZE   768

Definition at line 75 of file LzmaDecode.h.

Referenced by LzmaDecode().

#define LZMA_PROPERTIES_SIZE   5

Definition at line 77 of file LzmaDecode.h.

Referenced by lzdReadOpen(), and LzmaDecodeProperties().

#define LZMA_RESULT_DATA_ERROR   1

Definition at line 65 of file LzmaDecode.h.

Referenced by LzmaDecode(), and LzmaDecodeProperties().

#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; }

Definition at line 120 of file LzmaDecode.h.

Referenced by lzdReadOpen().

#define LzmaGetNumProbs ( Properties   )     (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << ((Properties)->lc + (Properties)->lp)))

Definition at line 91 of file LzmaDecode.h.

Referenced by lzdReadOpen().

#define SizeT   UInt32

Definition at line 54 of file LzmaDecode.h.

Referenced by LzmaDecode(), and LzmaReadCompressed().

#define UInt32   unsigned int

Definition at line 45 of file LzmaDecode.h.

Referenced by LzmaDecode(), and LzmaDecodeProperties().


Typedef Documentation

typedef struct _CLzmaDecoderState CLzmaDecoderState

typedef struct _CLzmaProperties CLzmaProperties

typedef struct _ILzmaInCallback ILzmaInCallback


Function Documentation

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().


Generated on Tue Feb 19 22:26:25 2008 for rpm by  doxygen 1.5.1