VirtualBox

source: vbox/trunk/src/libs/liblzma-5.4.1/common/easy_encoder_memusage.c@ 98879

Last change on this file since 98879 was 98730, checked in by vboxsync, 21 months ago

libs/liblzma-5.4.1: Export to OSE, bugref:10254

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 654 bytes
Line 
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.
10//
11///////////////////////////////////////////////////////////////////////////////
12
13#include "easy_preset.h"
14
15
16extern LZMA_API(uint64_t)
17lzma_easy_encoder_memusage(uint32_t preset)
18{
19 lzma_options_easy opt_easy;
20 if (lzma_easy_preset(&opt_easy, preset))
21 return UINT32_MAX;
22
23 return lzma_raw_encoder_memusage(opt_easy.filters);
24}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette