lzma_encoder.h | lzma_encoder.h | |||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
// You can do whatever you want with this file. | // You can do whatever you want with this file. | |||
// | // | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
#ifndef LZMA_LZMA_ENCODER_H | #ifndef LZMA_LZMA_ENCODER_H | |||
#define LZMA_LZMA_ENCODER_H | #define LZMA_LZMA_ENCODER_H | |||
#include "common.h" | #include "common.h" | |||
extern lzma_ret lzma_lzma_encoder_init(lzma_next_coder *next, | extern lzma_ret lzma_lzma_encoder_init(lzma_next_coder *next, | |||
lzma_allocator *allocator, const lzma_filter_info *filters); | const lzma_allocator *allocator, | |||
const lzma_filter_info *filters); | ||||
extern uint64_t lzma_lzma_encoder_memusage(const void *options); | extern uint64_t lzma_lzma_encoder_memusage(const void *options); | |||
extern lzma_ret lzma_lzma_props_encode(const void *options, uint8_t *out); | extern lzma_ret lzma_lzma_props_encode(const void *options, uint8_t *out); | |||
/// Encodes lc/lp/pb into one byte. Returns false on success and true on er ror. | /// Encodes lc/lp/pb into one byte. Returns false on success and true on er ror. | |||
extern bool lzma_lzma_lclppb_encode( | extern bool lzma_lzma_lclppb_encode( | |||
const lzma_options_lzma *options, uint8_t *byte); | const lzma_options_lzma *options, uint8_t *byte); | |||
#ifdef LZMA_LZ_ENCODER_H | #ifdef LZMA_LZ_ENCODER_H | |||
/// Initializes raw LZMA encoder; this is used by LZMA2. | /// Initializes raw LZMA encoder; this is used by LZMA2. | |||
extern lzma_ret lzma_lzma_encoder_create( | extern lzma_ret lzma_lzma_encoder_create( | |||
lzma_coder **coder_ptr, lzma_allocator *allocator, | lzma_coder **coder_ptr, const lzma_allocator *allocator, | |||
const lzma_options_lzma *options, lzma_lz_options *lz_option s); | const lzma_options_lzma *options, lzma_lz_options *lz_option s); | |||
/// Resets an already initialized LZMA encoder; this is used by LZMA2. | /// Resets an already initialized LZMA encoder; this is used by LZMA2. | |||
extern lzma_ret lzma_lzma_encoder_reset( | extern lzma_ret lzma_lzma_encoder_reset( | |||
lzma_coder *coder, const lzma_options_lzma *options); | lzma_coder *coder, const lzma_options_lzma *options); | |||
extern lzma_ret lzma_lzma_encode(lzma_coder *restrict coder, | extern lzma_ret lzma_lzma_encode(lzma_coder *restrict coder, | |||
lzma_mf *restrict mf, uint8_t *restrict out, | lzma_mf *restrict mf, uint8_t *restrict out, | |||
size_t *restrict out_pos, size_t out_size, | size_t *restrict out_pos, size_t out_size, | |||
uint32_t read_limit); | uint32_t read_limit); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |