1 // SPDX-License-Identifier: 0BSD
3 ///////////////////////////////////////////////////////////////////////////////
5 /// \file easy_decoder_memusage.c
6 /// \brief Decoder memory usage calculation to match easy encoder presets
8 // Author: Lasse Collin
10 ///////////////////////////////////////////////////////////////////////////////
12 #include "easy_preset.h"
15 extern LZMA_API(uint64_t)
16 lzma_easy_decoder_memusage(uint32_t preset
)
18 lzma_options_easy opt_easy
;
19 if (lzma_easy_preset(&opt_easy
, preset
))
22 return lzma_raw_decoder_memusage(opt_easy
.filters
);