1 /* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 // vim: expandtab:ts=8:sw=4:softtabstop=4: 3 /////////////////////////////////////////////////////////////////////////////// 4 // 5 /// \file easy_preset.c 6 /// \brief Preset handling for easy encoder and decoder 7 // 8 // Author: Lasse Collin 9 // 10 // This file has been put into the public domain. 11 // You can do whatever you want with this file. 12 // 13 /////////////////////////////////////////////////////////////////////////////// 14 15 #include "easy_preset.h" 16 17 18 extern bool lzma_easy_preset(lzma_options_easy * opt_easy,uint32_t preset)19lzma_easy_preset(lzma_options_easy *opt_easy, uint32_t preset) 20 { 21 if (lzma_lzma_preset(&opt_easy->opt_lzma, preset)) 22 return true; 23 24 opt_easy->filters[0].id = LZMA_FILTER_LZMA2; 25 opt_easy->filters[0].options = &opt_easy->opt_lzma; 26 opt_easy->filters[1].id = LZMA_VLI_UNKNOWN; 27 28 return false; 29 } 30