1207753Smm/////////////////////////////////////////////////////////////////////////////// 2207753Smm// 3207753Smm/// \file easy_preset.h 4207753Smm/// \brief Preset handling for easy encoder and decoder 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 "common.h" 14207753Smm 15207753Smm 16207753Smmtypedef struct { 17207753Smm /// We need to keep the filters array available in case 18207753Smm /// LZMA_FULL_FLUSH is used. 19207753Smm lzma_filter filters[LZMA_FILTERS_MAX + 1]; 20207753Smm 21207753Smm /// Options for LZMA2 22207753Smm lzma_options_lzma opt_lzma; 23207753Smm 24207753Smm // Options for more filters can be added later, so this struct 25207753Smm // is not ready to be put into the public API. 26207753Smm 27207753Smm} lzma_options_easy; 28207753Smm 29207753Smm 30207753Smm/// Set *easy to the settings given by the preset. Returns true on error, 31207753Smm/// false on success. 32207753Smmextern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset); 33