7 #include "../../../Common/Types.h"
10 LzmaRamEncode: BCJ + LZMA RAM->RAM compressing.
11 It uses .lzma format, but it writes one additional byte to .lzma file:
15 To provide best compression ratio dictionarySize mustbe >= inSize
17 LzmaRamEncode allocates Data with MyAlloc/BigAlloc functions.
19 RamSize = dictionarySize * 9.5 + 6MB + FilterBlockSize
20 FilterBlockSize = 0, if useFilter == false
21 FilterBlockSize = inSize, if useFilter == true
26 2 - Memory allocating error
27 3 - Output buffer OVERFLOW
29 If you use SZ_FILTER_AUTO mode, then encoder will use 2 or 3 passes:
30 2 passes when FILTER_NO provides better compression.
31 3 passes when FILTER_YES provides better compression.
42 const Byte *inBuffer, size_t inSize,
43 Byte *outBuffer, size_t outSize, size_t *outSizeProcessed,
44 UInt32 dictionarySize, ESzFilterMode filterMode);