mirror of https://git.tukaani.org/xz.git
Added files missing from the previous commit.
This commit is contained in:
parent
489a3dbaa0
commit
47c2e21f82
|
@ -124,6 +124,39 @@ extern LZMA_API(lzma_ret) lzma_easy_encoder(
|
||||||
lzma_attr_warn_unused_result;
|
lzma_attr_warn_unused_result;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Single-call .xz Stream encoding using a preset number
|
||||||
|
*
|
||||||
|
* The maximum required output buffer size can be calculated with
|
||||||
|
* lzma_stream_buffer_bound().
|
||||||
|
*
|
||||||
|
* \param preset Compression preset to use. See the description
|
||||||
|
* in lzma_easy_encoder().
|
||||||
|
* \param check Type of the integrity check to calculate from
|
||||||
|
* uncompressed data.
|
||||||
|
* \param allocator lzma_allocator for custom allocator functions.
|
||||||
|
* Set to NULL to use malloc() and free().
|
||||||
|
* \param in Beginning of the input buffer
|
||||||
|
* \param in_size Size of the input buffer
|
||||||
|
* \param out Beginning of the output buffer
|
||||||
|
* \param out_pos The next byte will be written to out[*out_pos].
|
||||||
|
* *out_pos is updated only if encoding succeeds.
|
||||||
|
* \param out_size Size of the out buffer; the first byte into
|
||||||
|
* which no data is written to is out[out_size].
|
||||||
|
*
|
||||||
|
* \return - LZMA_OK: Encoding was successful.
|
||||||
|
* - LZMA_BUF_ERROR: Not enough output buffer space.
|
||||||
|
* - LZMA_OPTIONS_ERROR
|
||||||
|
* - LZMA_MEM_ERROR
|
||||||
|
* - LZMA_DATA_ERROR
|
||||||
|
* - LZMA_PROG_ERROR
|
||||||
|
*/
|
||||||
|
extern LZMA_API(lzma_ret) lzma_easy_buffer_encode(
|
||||||
|
uint32_t preset, lzma_check check,
|
||||||
|
lzma_allocator *allocator, const uint8_t *in, size_t in_size,
|
||||||
|
uint8_t *out, size_t *out_pos, size_t out_size);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Initialize .xz Stream encoder using a custom filter chain
|
* \brief Initialize .xz Stream encoder using a custom filter chain
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,6 +28,8 @@ libcommon_la_SOURCES = \
|
||||||
common.h \
|
common.h \
|
||||||
bsr.h \
|
bsr.h \
|
||||||
block_util.c \
|
block_util.c \
|
||||||
|
easy_preset.c \
|
||||||
|
easy_preset.h \
|
||||||
filter_common.c \
|
filter_common.c \
|
||||||
filter_common.h \
|
filter_common.h \
|
||||||
index.c \
|
index.c \
|
||||||
|
@ -43,7 +45,9 @@ libcommon_la_SOURCES += \
|
||||||
block_encoder.c \
|
block_encoder.c \
|
||||||
block_encoder.h \
|
block_encoder.h \
|
||||||
block_header_encoder.c \
|
block_header_encoder.c \
|
||||||
easy.c \
|
easy_buffer_encoder.c \
|
||||||
|
easy_encoder.c \
|
||||||
|
easy_encoder_memusage.c \
|
||||||
filter_buffer_encoder.c \
|
filter_buffer_encoder.c \
|
||||||
filter_encoder.c \
|
filter_encoder.c \
|
||||||
filter_encoder.h \
|
filter_encoder.h \
|
||||||
|
@ -66,6 +70,7 @@ libcommon_la_SOURCES += \
|
||||||
block_decoder.c \
|
block_decoder.c \
|
||||||
block_decoder.h \
|
block_decoder.h \
|
||||||
block_header_decoder.c \
|
block_header_decoder.c \
|
||||||
|
easy_decoder_memusage.c \
|
||||||
filter_buffer_decoder.c \
|
filter_buffer_decoder.c \
|
||||||
filter_decoder.c \
|
filter_decoder.c \
|
||||||
filter_decoder.h \
|
filter_decoder.h \
|
||||||
|
|
Loading…
Reference in New Issue