Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
XzEnc.c File Reference
#include "Precomp.h"
#include <stdlib.h>
#include <string.h>
#include "7zCrc.h"
#include "Bra.h"
#include "CpuArch.h"
#include "XzEnc.h"
#include "MtCoder.h"
#include "Alloc.h"

Data Structures

struct  CXzEncIndex
 
struct  CSeqCheckInStream
 
struct  CSeqSizeOutStream
 
struct  CSeqInFilter
 
struct  CLzma2WithFilters
 
struct  CXzEncBlockInfo
 
struct  CCompressProgress_XzEncOffset
 
struct  CXzEnc
 

Macros

#define XZ_GET_PAD_SIZE(dataSize)
 
#define XZ_GET_MAX_BLOCK_PACK_SIZE(unpackSize)
 
#define XZ_GET_ESTIMATED_BLOCK_TOTAL_PACK_SIZE(unpackSize)
 
#define XzBlock_ClearFlags_SetNumFilters(p, n)
 
#define XzBlock_SetHasPackSize(p)
 
#define XzBlock_SetHasUnpackSize(p)
 
#define FILTER_BUF_SIZE   (1 << 20)
 

Functions

void XzFilterProps_Init (CXzFilterProps *p)
 
void XzProps_Init (CXzProps *p)
 
CXzEncHandle XzEnc_Create (ISzAllocPtr alloc, ISzAllocPtr allocBig)
 
void XzEnc_Destroy (CXzEncHandle p)
 
SRes XzEnc_SetProps (CXzEncHandle p, const CXzProps *props)
 
void XzEnc_SetDataSize (CXzEncHandle p, UInt64 expectedDataSiize)
 
SRes XzEnc_Encode (CXzEncHandle p, ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, ICompressProgressPtr progress)
 
SRes Xz_Encode (ISeqOutStreamPtr outStream, ISeqInStreamPtr inStream, const CXzProps *props, ICompressProgressPtr progress)
 
SRes Xz_EncodeEmpty (ISeqOutStreamPtr outStream)
 

Macro Definition Documentation

◆ FILTER_BUF_SIZE

#define FILTER_BUF_SIZE   (1 << 20)

◆ XZ_GET_ESTIMATED_BLOCK_TOTAL_PACK_SIZE

#define XZ_GET_ESTIMATED_BLOCK_TOTAL_PACK_SIZE ( unpackSize)
Value:
#define XZ_BLOCK_HEADER_SIZE_MAX
Definition Xz.h:29
#define XZ_GET_MAX_BLOCK_PACK_SIZE(unpackSize)
Definition XzEnc.c:34

◆ XZ_GET_MAX_BLOCK_PACK_SIZE

#define XZ_GET_MAX_BLOCK_PACK_SIZE ( unpackSize)
Value:
((unpackSize) + ((unpackSize) >> 10) + 16 + 64)

◆ XZ_GET_PAD_SIZE

#define XZ_GET_PAD_SIZE ( dataSize)
Value:
((4 - ((unsigned)(dataSize) & 3)) & 3)

◆ XzBlock_ClearFlags_SetNumFilters

#define XzBlock_ClearFlags_SetNumFilters ( p,
n )
Value:
(p)->flags = (Byte)((n) - 1);
unsigned char Byte
Definition zconf.h:391
uint32_t flags
Definition container.h:628

◆ XzBlock_SetHasPackSize

#define XzBlock_SetHasPackSize ( p)
Value:
#define XZ_BF_PACK_SIZE
Definition Xz.h:33

◆ XzBlock_SetHasUnpackSize

#define XzBlock_SetHasUnpackSize ( p)
Value:
#define XZ_BF_UNPACK_SIZE
Definition Xz.h:34

Function Documentation

◆ Xz_Encode()

SRes Xz_Encode ( ISeqOutStreamPtr outStream,
ISeqInStreamPtr inStream,
const CXzProps * props,
ICompressProgressPtr progress )

◆ Xz_EncodeEmpty()

SRes Xz_EncodeEmpty ( ISeqOutStreamPtr outStream)

◆ XzEnc_Create()

CXzEncHandle XzEnc_Create ( ISzAllocPtr alloc,
ISzAllocPtr allocBig )

◆ XzEnc_Destroy()

void XzEnc_Destroy ( CXzEncHandle p)

◆ XzEnc_Encode()

SRes XzEnc_Encode ( CXzEncHandle p,
ISeqOutStreamPtr outStream,
ISeqInStreamPtr inStream,
ICompressProgressPtr progress )

◆ XzEnc_SetDataSize()

void XzEnc_SetDataSize ( CXzEncHandle p,
UInt64 expectedDataSiize )

◆ XzEnc_SetProps()

SRes XzEnc_SetProps ( CXzEncHandle p,
const CXzProps * props )

◆ XzFilterProps_Init()

void XzFilterProps_Init ( CXzFilterProps * p)

◆ XzProps_Init()

void XzProps_Init ( CXzProps * p)