Debian Codegraph @

Utilities/cmliblzma/liblzma/common/easy_preset.c

raw symbols SCIP
1 // SPDX-License-Identifier: 0BSD
2
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 /// \file easy_preset.c
6 /// \brief Preset handling for easy encoder and decoder
7 //
8 // Author: Lasse Collin
9 //
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #include "easy_preset.h"
13
14
15 extern bool
16 lzma_easy_preset(lzma_options_easy *opt_easy, uint32_t preset)
17 {
18 if (lzma_lzma_preset(&opt_easy->opt_lzma, preset))
19 return true;
20
21 opt_easy->filters[0].id = LZMA_FILTER_LZMA2;
22 opt_easy->filters[0].options = &opt_easy->opt_lzma;
23 opt_easy->filters[1].id = LZMA_VLI_UNKNOWN;
24
25 return false;
26 }