5 LZMA SDK 4.05 Copyright (c) 1999-2004 Igor Pavlov (2004-08-25)
8 LZMA SDK is licensed under two licenses:
9 1) GNU Lesser General Public License (GNU LGPL)
10 2) Common Public License (CPL)
11 It means that you can select one of these two licenses and
12 follow rules of that license.
15 Igor Pavlov, as the author of this code, expressly permits you to
16 statically or dynamically link your code (or bind by name) to the
17 interfaces of this file without subjecting your linked code to the
18 terms of the CPL or GNU LGPL. Any modifications or additions
19 to this file, however, are subject to the LGPL or CPL terms.
22 #ifndef __LZMADECODE_H
23 #define __LZMADECODE_H
25 /* #define _LZMA_IN_CB */
26 /* Use callback for input data */
28 /* #define _LZMA_OUT_READ */
29 /* Use read function for output data */
31 /* #define _LZMA_PROB32 */
32 /* It can increase speed on some 32-bit CPUs,
33 but memory usage will be doubled in that case */
35 /* #define _LZMA_LOC_OPT */
36 /* Enable local speed optimizations inside code */
39 #ifdef _LZMA_UINT32_IS_ULONG
40 #define UInt32 unsigned long
42 #define UInt32 unsigned int
49 #define CProb unsigned short
52 #define LZMA_RESULT_OK 0
53 #define LZMA_RESULT_DATA_ERROR 1
54 #define LZMA_RESULT_NOT_ENOUGH_MEM 2
57 typedef struct _ILzmaInCallback
59 int (*Read
)(void *object
, unsigned char **buffer
, UInt32
*bufferSize
);
63 #define LZMA_BASE_SIZE 1846
64 #define LZMA_LIT_SIZE 768
67 bufferSize = (LZMA_BASE_SIZE + (LZMA_LIT_SIZE << (lc + lp)))* sizeof(CProb)
68 bufferSize += 100 in case of _LZMA_OUT_READ
69 by default CProb is unsigned short,
70 but if specify _LZMA_PROB_32, CProb will be UInt32(unsigned int)
75 unsigned char *buffer
, UInt32 bufferSize
,
76 int lc
, int lp
, int pb
,
77 unsigned char *dictionary
, UInt32 dictionarySize
,
79 ILzmaInCallback
*inCallback
81 unsigned char *inStream
, UInt32 inSize
87 unsigned char *buffer
,
88 #ifndef _LZMA_OUT_READ
90 int lc
, int lp
, int pb
,
92 ILzmaInCallback
*inCallback
,
94 unsigned char *inStream
, UInt32 inSize
,
97 unsigned char *outStream
, UInt32 outSize
,
98 UInt32
*outSizeProcessed
);
This page took 0.052612 seconds and 5 git commands to generate.