GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / tools / misc / xz / src / liblzma / common / easy_encoder_memusage.c
blobe910575842332ada08d9d9f754d97f885cae375a
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file easy_encoder_memusage.c
4 /// \brief Easy .xz Stream encoder memory usage calculation
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 #include "easy_preset.h"
16 extern LZMA_API(uint64_t)
17 lzma_easy_encoder_memusage(uint32_t preset)
19 lzma_options_easy opt_easy;
20 if (lzma_easy_preset(&opt_easy, preset))
21 return UINT32_MAX;
23 return lzma_raw_encoder_memusage(opt_easy.filters);