coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lzmadecode.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _CLzmaProperties
 
struct  _CLzmaDecoderState
 

Macros

#define CProb   UInt16
 
#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)
 
#define kLzmaNeedInitId   (-2)
 

Typedefs

typedef unsigned char Byte
 
typedef unsigned short UInt16
 
typedef unsigned int UInt32
 
typedef UInt32 SizeT
 
typedef struct _CLzmaProperties CLzmaProperties
 
typedef struct _CLzmaDecoderState CLzmaDecoderState
 

Functions

int LzmaDecodeProperties (CLzmaProperties *propsRes, const unsigned char *propsData, int size)
 
int LzmaDecode (CLzmaDecoderState *vs, const unsigned char *inStream, SizeT inSize, SizeT *inSizeProcessed, unsigned char *outStream, SizeT outSize, SizeT *outSizeProcessed)
 

Macro Definition Documentation

◆ CProb

#define CProb   UInt16

Definition at line 30 of file lzmadecode.h.

◆ kLzmaNeedInitId

#define kLzmaNeedInitId   (-2)

Definition at line 53 of file lzmadecode.h.

◆ LZMA_BASE_SIZE

#define LZMA_BASE_SIZE   1846

Definition at line 36 of file lzmadecode.h.

◆ LZMA_LIT_SIZE

#define LZMA_LIT_SIZE   768

Definition at line 37 of file lzmadecode.h.

◆ LZMA_PROPERTIES_SIZE

#define LZMA_PROPERTIES_SIZE   5

Definition at line 39 of file lzmadecode.h.

◆ LZMA_RESULT_DATA_ERROR

#define LZMA_RESULT_DATA_ERROR   1

Definition at line 33 of file lzmadecode.h.

◆ LZMA_RESULT_OK

#define LZMA_RESULT_OK   0

Definition at line 32 of file lzmadecode.h.

◆ LzmaGetNumProbs

#define LzmaGetNumProbs (   Properties)
Value:
<< ((Properties)->lc + (Properties)->lp)))
#define LZMA_BASE_SIZE
Definition: lzmadecode.h:36
#define LZMA_LIT_SIZE
Definition: lzmadecode.h:37

Definition at line 50 of file lzmadecode.h.

Typedef Documentation

◆ Byte

typedef unsigned char Byte

Definition at line 25 of file lzmadecode.h.

◆ CLzmaDecoderState

◆ CLzmaProperties

◆ SizeT

typedef UInt32 SizeT

Definition at line 28 of file lzmadecode.h.

◆ UInt16

typedef unsigned short UInt16

Definition at line 26 of file lzmadecode.h.

◆ UInt32

typedef unsigned int UInt32

Definition at line 27 of file lzmadecode.h.

Function Documentation

◆ LzmaDecode()

◆ LzmaDecodeProperties()

int LzmaDecodeProperties ( CLzmaProperties propsRes,
const unsigned char *  propsData,
int  size 
)

Definition at line 157 of file lzmadecode.c.

References _CLzmaProperties::lc, _CLzmaProperties::lp, LZMA_PROPERTIES_SIZE, LZMA_RESULT_DATA_ERROR, LZMA_RESULT_OK, and _CLzmaProperties::pb.

Referenced by ulzman().

Here is the caller graph for this function: