3 * \brief Raw encoder and decoder
5 * \author Copyright (C) 1999-2006 Igor Pavlov
6 * \author Copyright (C) 2007 Lasse Collin
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
19 #ifndef LZMA_H_INTERNAL
20 # error Never include this file directly. Use <lzma.h> instead.
25 * \brief Initializes raw encoder
27 * This function may be useful when implementing custom file formats.
29 * \param strm Pointer to properly prepared lzma_stream
30 * \param options Array of lzma_options_filter structures.
31 * The end of the array must be marked with
32 * .id = LZMA_VLI_VALUE_UNKNOWN. The minimum
33 * number of filters is one and the maximum is four.
35 * The `action' with lzma_code() can be LZMA_RUN, LZMA_SYNC_FLUSH (if the
36 * filter chain supports it), or LZMA_FINISH.
43 extern lzma_ret lzma_raw_encoder(
44 lzma_stream *strm, const lzma_options_filter *options);
48 * \brief Initializes raw decoder
50 * The initialization of raw decoder goes similarly to raw encoder.
52 * The `action' with lzma_code() can be LZMA_RUN or LZMA_SYNC_FLUSH.
59 extern lzma_ret lzma_raw_decoder(
60 lzma_stream *strm, const lzma_options_filter *options);