Path: blob/master/Utilities/cmliblzma/liblzma/lzma/lzma2_encoder.h
3156 views
// SPDX-License-Identifier: 0BSD12///////////////////////////////////////////////////////////////////////////////3//4/// \file lzma2_encoder.h5/// \brief LZMA2 encoder6///7// Authors: Igor Pavlov8// Lasse Collin9//10///////////////////////////////////////////////////////////////////////////////1112#ifndef LZMA_LZMA2_ENCODER_H13#define LZMA_LZMA2_ENCODER_H1415#include "common.h"161718/// Maximum number of bytes of actual data per chunk (no headers)19#define LZMA2_CHUNK_MAX (UINT32_C(1) << 16)2021/// Maximum uncompressed size of LZMA chunk (no headers)22#define LZMA2_UNCOMPRESSED_MAX (UINT32_C(1) << 21)2324/// Maximum size of LZMA2 headers25#define LZMA2_HEADER_MAX 62627/// Size of a header for uncompressed chunk28#define LZMA2_HEADER_UNCOMPRESSED 3293031extern lzma_ret lzma_lzma2_encoder_init(32lzma_next_coder *next, const lzma_allocator *allocator,33const lzma_filter_info *filters);3435extern uint64_t lzma_lzma2_encoder_memusage(const void *options);3637extern lzma_ret lzma_lzma2_props_encode(const void *options, uint8_t *out);3839extern uint64_t lzma_lzma2_block_size(const void *options);4041#endif424344