Rizin
unix-like reverse engineering framework and cli tools
|
Filter-specific stuff common for both encoder and decoder. More...
#include "filter_common.h"
Go to the source code of this file.
Functions | |
LZMA_API (lzma_ret) | |
static lzma_ret | validate_chain (const lzma_filter *filters, size_t *count) |
lzma_ret | lzma_raw_coder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter *options, lzma_filter_find coder_find, bool is_encoder) |
uint64_t | lzma_raw_coder_memusage (lzma_filter_find coder_find, const lzma_filter *filters) |
Variables | |
struct { | |
lzma_vli id | |
Filter ID. More... | |
size_t options_size | |
Size of the filter-specific options structure. More... | |
bool non_last_ok | |
bool last_ok | |
bool changes_size | |
} | features [] |
Filter-specific stuff common for both encoder and decoder.
Definition in file filter_common.c.
LZMA_API | ( | lzma_ret | ) |
Definition at line 124 of file filter_common.c.
References allocator, assert(), dest, error(), features, i, lzma_alloc(), LZMA_FILTERS_MAX, lzma_free(), LZMA_MEM_ERROR, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, LZMA_VLI_UNKNOWN, memcpy(), NULL, options, options_size, and src.
lzma_ret lzma_raw_coder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
const lzma_filter * | options, | ||
lzma_filter_find | coder_find, | ||
bool | is_encoder | ||
) |
Definition at line 242 of file filter_common.c.
References allocator, count, filters, i, lzma_filter::id, lzma_filter_coder::init, LZMA_FILTERS_MAX, lzma_next_end(), lzma_next_filter_init(), LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_VLI_UNKNOWN, NULL, options, lzma_filter::options, return_if_error, and validate_chain().
Referenced by lzma_raw_decoder_init(), and lzma_raw_encoder_init().
uint64_t lzma_raw_coder_memusage | ( | lzma_filter_find | coder_find, |
const lzma_filter * | filters | ||
) |
Definition at line 295 of file filter_common.c.
References filters, i, LZMA_MEMUSAGE_BASE, LZMA_OK, LZMA_VLI_UNKNOWN, lzma_filter_coder::memusage, NULL, options, autogen_x86imm::tmp, UINT64_MAX, usage(), and validate_chain().
Referenced by LZMA_API().
|
static |
Definition at line 194 of file filter_common.c.
References count, features, filters, i, lzma_filter::id, last_ok, LZMA_FILTERS_MAX, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, LZMA_VLI_UNKNOWN, non_last_ok, and NULL.
Referenced by lzma_raw_coder_init(), and lzma_raw_coder_memusage().
bool changes_size |
True if the filter may change the size of the data (that is, the amount of encoded output can be different than the amount of uncompressed input).
Definition at line 34 of file filter_common.c.
const { ... } features[] |
lzma_vli id |
Filter ID.
Definition at line 18 of file filter_common.c.
bool last_ok |
True if it is OK to use this filter as the last filter in the chain.
Definition at line 29 of file filter_common.c.
Referenced by validate_chain().
bool non_last_ok |
True if it is OK to use this filter as non-last filter in the chain.
Definition at line 25 of file filter_common.c.
Referenced by validate_chain().
size_t options_size |
Size of the filter-specific options structure.
Definition at line 21 of file filter_common.c.
Referenced by LZMA_API().