1 ///////////////////////////////////////////////////////////////////////////////
3 /// \file delta_common.h
4 /// \brief Common stuff for Delta encoder and decoder
6 // 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.
18 ///////////////////////////////////////////////////////////////////////////////
20 #ifndef LZMA_DELTA_COMMON_H
21 #define LZMA_DELTA_COMMON_H
26 /// Next coder in the chain
29 /// Uncompressed size - This is needed when we are the last
30 /// filter in the chain.
31 lzma_vli uncompressed_size;
36 /// Position in history[]
39 /// Buffer to hold history of the original data
40 uint8_t history[LZMA_DELTA_DISTANCE_MAX];
44 extern lzma_ret lzma_delta_coder_init(
45 lzma_next_coder *next, lzma_allocator *allocator,
46 const lzma_filter_info *filters, lzma_code_function code);