easy_encoder_memusage.c revision 207753
1207753Smm/////////////////////////////////////////////////////////////////////////////// 2207753Smm// 3207753Smm/// \file easy_encoder_memusage.c 4207753Smm/// \brief Easy .xz Stream encoder memory usage calculation 5207753Smm// 6207753Smm// Author: Lasse Collin 7207753Smm// 8207753Smm// This file has been put into the public domain. 9207753Smm// You can do whatever you want with this file. 10207753Smm// 11207753Smm/////////////////////////////////////////////////////////////////////////////// 12207753Smm 13207753Smm#include "easy_preset.h" 14207753Smm 15207753Smm 16207753Smmextern LZMA_API(uint64_t) 17207753Smmlzma_easy_encoder_memusage(uint32_t preset) 18207753Smm{ 19207753Smm lzma_options_easy opt_easy; 20207753Smm if (lzma_easy_preset(&opt_easy, preset)) 21207753Smm return UINT32_MAX; 22207753Smm 23207753Smm return lzma_raw_encoder_memusage(opt_easy.filters); 24207753Smm} 25