1 /* XzEnc.h -- Xz Encode
2 2011-02-07 : Igor Pavlov : Public domain */
3 
4 #ifndef __XZ_ENC_H
5 #define __XZ_ENC_H
6 
7 #include "Lzma2Enc.h"
8 
9 #include "Xz.h"
10 
11 EXTERN_C_BEGIN
12 
13 typedef struct
14 {
15   UInt32 id;
16   UInt32 delta;
17   UInt32 ip;
18   int ipDefined;
19 } CXzFilterProps;
20 
21 void XzFilterProps_Init(CXzFilterProps *p);
22 
23 typedef struct
24 {
25   const CLzma2EncProps *lzma2Props;
26   const CXzFilterProps *filterProps;
27   unsigned checkId;
28 } CXzProps;
29 
30 void XzProps_Init(CXzProps *p);
31 
32 SRes Xz_Encode(ISeqOutStream *outStream, ISeqInStream *inStream,
33     const CXzProps *props, ICompressProgress *progress);
34 
35 SRes Xz_EncodeEmpty(ISeqOutStream *outStream);
36 
37 EXTERN_C_END
38 
39 #endif
40