36 succeed(lzma_lzma_preset(&opt_lzma2, 0));
84 static const uint8_t empty_bcj_lzma2[] = {
85 0xFD, 0x37, 0x7A, 0x58, 0x5A, 0x00, 0x00, 0x01,
86 0x69, 0x22, 0xDE, 0x36, 0x02, 0x01, 0x05, 0x00,
87 0x21, 0x01, 0x00, 0x00, 0x7F, 0xE0, 0xF1, 0xC8,
88 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
89 0x00, 0x01, 0x11, 0x00, 0x3B, 0x96, 0x5F, 0x73,
90 0x90, 0x42, 0x99, 0x0D, 0x01, 0x00, 0x00, 0x00,
91 0x00, 0x01, 0x59, 0x5A
99 empty_bcj_lzma2, &
in_pos,
sizeof(empty_bcj_lzma2),
#define LZMA_FILTER_POWERPC
const lzma_allocator const uint8_t size_t uint8_t size_t * out_pos
const lzma_allocator const uint8_t size_t * in_pos
const lzma_filter * filters
#define expect(expr, value)
#define LZMA_FILTER_LZMA2
LZMA2 Filter ID.
Options specific to the LZMA1 and LZMA2 filters.
Passing data to and from liblzma.
static uint8_t out[sizeof(in)]
Output buffer for decompressing compressed[].
static void compress(void)
static size_t compressed_size
static const uint8_t in[16]
Something to be compressed.
static void decompress(void)
static uint8_t compressed[1024]
in[] after compression
static void decompress_empty(void)
Common definitions for test applications.
#define LZMA_VLI_UNKNOWN
VLI value to denote that the value is unknown.
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_STREAM_END
End of stream was reached.
@ LZMA_OK
Operation completed successfully.
@ LZMA_RUN
Continue coding.
#define LZMA_STREAM_INIT
Initialization for lzma_stream.