Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/cmliblzma/liblzma/common/easy_encoder.c
3153 views
1
// SPDX-License-Identifier: 0BSD
2
3
///////////////////////////////////////////////////////////////////////////////
4
//
5
/// \file easy_encoder.c
6
/// \brief Easy .xz Stream encoder initialization
7
//
8
// Author: Lasse Collin
9
//
10
///////////////////////////////////////////////////////////////////////////////
11
12
#include "easy_preset.h"
13
14
15
extern LZMA_API(lzma_ret)
16
lzma_easy_encoder(lzma_stream *strm, uint32_t preset, lzma_check check)
17
{
18
lzma_options_easy opt_easy;
19
if (lzma_easy_preset(&opt_easy, preset))
20
return LZMA_OPTIONS_ERROR;
21
22
return lzma_stream_encoder(strm, opt_easy.filters, check);
23
}
24
25