Lines Matching defs:filters
134 // There must be a maximum of four filters plus
194 validate_chain(const lzma_filter *filters, size_t *count)
197 if (filters == NULL || filters[0].id == LZMA_VLI_UNKNOWN)
200 // Number of non-last filters that may change the size of the data
208 // the last filter. Only filters that support embedding End of Payload
215 for (j = 0; filters[i].id != features[j].id; ++j)
228 } while (filters[++i].id != LZMA_VLI_UNKNOWN);
230 // There must be 1-4 filters. The last filter must be usable as
231 // the last filter in the chain. A maximum of three filters are
246 // Do some basic validation and get the number of filters.
251 lzma_filter_info filters[LZMA_FILTERS_MAX + 1];
254 // The order of the filters is reversed in the
264 filters[j].id = options[i].id;
265 filters[j].init = fc->init;
266 filters[j].options = options[i].options;
275 filters[i].id = options[i].id;
276 filters[i].init = fc->init;
277 filters[i].options = options[i].options;
282 filters[count].id = LZMA_VLI_UNKNOWN;
283 filters[count].init = NULL;
285 // Initialize the filters.
286 const lzma_ret ret = lzma_next_filter_init(next, allocator, filters);
296 const lzma_filter *filters)
301 if (validate_chain(filters, &tmp) != LZMA_OK)
310 = coder_find(filters[i].id);
317 // filters need only little memory, so we use 1 KiB
326 = fc->memusage(filters[i].options);
332 } while (filters[++i].id != LZMA_VLI_UNKNOWN);