1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
5 /// \file easy_preset.h
6 /// \brief Preset handling for easy encoder and decoder
8 // Author: Lasse Collin
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef LZMA_EASY_PRESET_H
13 #define LZMA_EASY_PRESET_H
19 /// We need to keep the filters array available in case
20 /// LZMA_FULL_FLUSH is used.
21 lzma_filter filters
[LZMA_FILTERS_MAX
+ 1];
24 lzma_options_lzma opt_lzma
;
26 // Options for more filters can be added later, so this struct
27 // is not ready to be put into the public API.
32 /// Set *easy to the settings given by the preset. Returns true on error,
34 extern bool lzma_easy_preset(lzma_options_easy
*easy
, uint32_t preset
);