VirtualBox

source: vbox/trunk/src/libs/liblzma-5.8.1/common/easy_preset.c

Last change on this file was 108913, checked in by vboxsync, 6 weeks ago

libs/liblzma: Liblzma ose fix. jiraref:VBP-1635

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 658 bytes
Line 
1// SPDX-License-Identifier: 0BSD
2
3///////////////////////////////////////////////////////////////////////////////
4//
5/// \file easy_preset.c
6/// \brief Preset handling for easy encoder and decoder
7//
8// Author: Lasse Collin
9//
10///////////////////////////////////////////////////////////////////////////////
11
12#include "easy_preset.h"
13
14
15extern bool
16lzma_easy_preset(lzma_options_easy *opt_easy, uint32_t preset)
17{
18 if (lzma_lzma_preset(&opt_easy->opt_lzma, preset))
19 return true;
20
21 opt_easy->filters[0].id = LZMA_FILTER_LZMA2;
22 opt_easy->filters[0].options = &opt_easy->opt_lzma;
23 opt_easy->filters[1].id = LZMA_VLI_UNKNOWN;
24
25 return false;
26}
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