VirtualBox

source: vbox/trunk/src/libs/liblzma-5.6.4/common/easy_encoder_memusage.c@ 109042

Last change on this file since 109042 was 108905, checked in by vboxsync, 4 weeks ago

liblzma-5.6.4: Applied and adjusted our liblzma changes to 5.6.4. jiraref:VBP-1613

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 585 bytes
Line 
1// SPDX-License-Identifier: 0BSD
2
3///////////////////////////////////////////////////////////////////////////////
4//
5/// \file easy_encoder_memusage.c
6/// \brief Easy .xz Stream encoder memory usage calculation
7//
8// Author: Lasse Collin
9//
10///////////////////////////////////////////////////////////////////////////////
11
12#include "easy_preset.h"
13
14
15extern LZMA_API(uint64_t)
16lzma_easy_encoder_memusage(uint32_t preset)
17{
18 lzma_options_easy opt_easy;
19 if (lzma_easy_preset(&opt_easy, preset))
20 return UINT32_MAX;
21
22 return lzma_raw_encoder_memusage(opt_easy.filters);
23}
Note: See TracBrowser for help on using the repository browser.

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