Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
XzEnc.h
Go to the documentation of this file.
1/* XzEnc.h -- Xz Encode
22023-04-13 : Igor Pavlov : Public domain */
3
4#ifndef ZIP7_INC_XZ_ENC_H
5#define ZIP7_INC_XZ_ENC_H
6
7#include "Lzma2Enc.h"
8
9#include "Xz.h"
10
12
13
14#define XZ_PROPS_BLOCK_SIZE_AUTO LZMA2_ENC_PROPS_BLOCK_SIZE_AUTO
15#define XZ_PROPS_BLOCK_SIZE_SOLID LZMA2_ENC_PROPS_BLOCK_SIZE_SOLID
16
17
18typedef struct
19{
20 UInt32 id;
21 UInt32 delta;
22 UInt32 ip;
23 int ipDefined;
25
27
28
29typedef struct
30{
31 CLzma2EncProps lzma2Props;
32 CXzFilterProps filterProps;
33 unsigned checkId;
34 UInt64 blockSize;
35 int numBlockThreads_Reduced;
36 int numBlockThreads_Max;
37 int numTotalThreads;
38 int forceWriteSizesInHeader;
39 UInt64 reduceSize;
40} CXzProps;
41
42void XzProps_Init(CXzProps *p);
43
44typedef struct CXzEnc CXzEnc;
46// Z7_DECLARE_HANDLE(CXzEncHandle)
47
51void XzEnc_SetDataSize(CXzEncHandle p, UInt64 expectedDataSiize);
52SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, ICompressProgressPtr progress);
53
54SRes Xz_Encode(ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream,
55 const CXzProps *props, ICompressProgressPtr progress);
56
57SRes Xz_EncodeEmpty(ISeqOutStreamPtr outStream);
58
60
61#endif
#define EXTERN_C_BEGIN
Definition 7zTypes.h:20
unsigned long long int UInt64
Definition 7zTypes.h:234
int SRes
Definition 7zTypes.h:45
#define EXTERN_C_END
Definition 7zTypes.h:21
SRes Xz_Encode(ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, const CXzProps *props, ICompressProgressPtr progress)
Definition XzEnc.c:1343
SRes XzEnc_SetProps(CXzEncHandle p, const CXzProps *props)
Definition XzEnc.c:1063
void XzEnc_Destroy(CXzEncHandle p)
Definition XzEnc.c:1055
SRes XzEnc_Encode(CXzEncHandle p, ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, ICompressProgressPtr progress)
Definition XzEnc.c:1167
void XzFilterProps_Init(CXzFilterProps *p)
Definition XzEnc.c:499
void XzProps_Init(CXzProps *p)
Definition XzEnc.c:507
void XzEnc_SetDataSize(CXzEncHandle p, UInt64 expectedDataSiize)
Definition XzEnc.c:1072
CXzEnc * CXzEncHandle
Definition XzEnc.h:45
CXzEncHandle XzEnc_Create(ISzAllocPtr alloc, ISzAllocPtr allocBig)
Definition XzEnc.c:1039
SRes Xz_EncodeEmpty(ISeqOutStreamPtr outStream)
Definition XzEnc.c:1358
#define ip
Definition Lzma2Enc.h:15
Definition XzEnc.c:962
ISzAllocPtr allocBig
Definition XzEnc.c:964
ISeqOutStreamPtr outStream
Definition XzEnc.c:978
ISzAllocPtr alloc
Definition XzEnc.c:963
Definition XzEnc.h:19
Definition XzEnc.h:30
Definition 7zTypes.h:460
unsigned int UInt32
Definition bzlib_private.h:45
const lzma_allocator const uint8_t * props
Definition filter.h:362
lzma_vli id
Filter ID.
Definition filter_common.c:18