Path: blob/master/Utilities/cmliblzma/liblzma/common/easy_preset.h
3153 views
// SPDX-License-Identifier: 0BSD12///////////////////////////////////////////////////////////////////////////////3//4/// \file easy_preset.h5/// \brief Preset handling for easy encoder and decoder6//7// Author: Lasse Collin8//9///////////////////////////////////////////////////////////////////////////////1011#ifndef LZMA_EASY_PRESET_H12#define LZMA_EASY_PRESET_H1314#include "common.h"151617typedef struct {18/// We need to keep the filters array available in case19/// LZMA_FULL_FLUSH is used.20lzma_filter filters[LZMA_FILTERS_MAX + 1];2122/// Options for LZMA223lzma_options_lzma opt_lzma;2425// Options for more filters can be added later, so this struct26// is not ready to be put into the public API.2728} lzma_options_easy;293031/// Set *easy to the settings given by the preset. Returns true on error,32/// false on success.33extern bool lzma_easy_preset(lzma_options_easy *easy, uint32_t preset);3435#endif363738