Deleted Added
full compact
filter.h (215187) filter.h (223935)
1/**
2 * \file lzma/filter.h
3 * \brief Common filter related types and functions
4 */
5
6/*
7 * Author: Lasse Collin
8 *

--- 117 unchanged lines hidden (view full) ---

126 * This function can be used to calculate the memory requirements for
127 * Block and Stream encoders too because Block and Stream encoders don't
128 * need significantly more memory than raw encoder.
129 *
130 * \param filters Array of filters terminated with
131 * .id == LZMA_VLI_UNKNOWN.
132 *
133 * \return Number of bytes of memory required for the given
1/**
2 * \file lzma/filter.h
3 * \brief Common filter related types and functions
4 */
5
6/*
7 * Author: Lasse Collin
8 *

--- 117 unchanged lines hidden (view full) ---

126 * This function can be used to calculate the memory requirements for
127 * Block and Stream encoders too because Block and Stream encoders don't
128 * need significantly more memory than raw encoder.
129 *
130 * \param filters Array of filters terminated with
131 * .id == LZMA_VLI_UNKNOWN.
132 *
133 * \return Number of bytes of memory required for the given
134 * filter chain when encoding.
134 * filter chain when encoding. If an error occurs,
135 * for example due to unsupported filter chain,
136 * UINT64_MAX is returned.
135 */
136extern LZMA_API(uint64_t) lzma_raw_encoder_memusage(const lzma_filter *filters)
137 lzma_nothrow lzma_attr_pure;
138
139
140/**
141 * \brief Calculate approximate memory requirements for raw decoder
142 *
143 * This function can be used to calculate the memory requirements for
144 * Block and Stream decoders too because Block and Stream decoders don't
145 * need significantly more memory than raw decoder.
146 *
147 * \param filters Array of filters terminated with
148 * .id == LZMA_VLI_UNKNOWN.
149 *
150 * \return Number of bytes of memory required for the given
137 */
138extern LZMA_API(uint64_t) lzma_raw_encoder_memusage(const lzma_filter *filters)
139 lzma_nothrow lzma_attr_pure;
140
141
142/**
143 * \brief Calculate approximate memory requirements for raw decoder
144 *
145 * This function can be used to calculate the memory requirements for
146 * Block and Stream decoders too because Block and Stream decoders don't
147 * need significantly more memory than raw decoder.
148 *
149 * \param filters Array of filters terminated with
150 * .id == LZMA_VLI_UNKNOWN.
151 *
152 * \return Number of bytes of memory required for the given
151 * filter chain when decoding.
153 * filter chain when decoding. If an error occurs,
154 * for example due to unsupported filter chain,
155 * UINT64_MAX is returned.
152 */
153extern LZMA_API(uint64_t) lzma_raw_decoder_memusage(const lzma_filter *filters)
154 lzma_nothrow lzma_attr_pure;
155
156
157/**
158 * \brief Initialize raw encoder
159 *

--- 261 unchanged lines hidden ---
156 */
157extern LZMA_API(uint64_t) lzma_raw_decoder_memusage(const lzma_filter *filters)
158 lzma_nothrow lzma_attr_pure;
159
160
161/**
162 * \brief Initialize raw encoder
163 *

--- 261 unchanged lines hidden ---