Deleted Added
full compact
delta_private.h (292588) delta_private.h (312518)
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file delta_private.h
4/// \brief Private common stuff for Delta encoder and decoder
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.
9// You can do whatever you want with this file.
10//
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef LZMA_DELTA_PRIVATE_H
14#define LZMA_DELTA_PRIVATE_H
15
16#include "delta_common.h"
17
1///////////////////////////////////////////////////////////////////////////////
2//
3/// \file delta_private.h
4/// \brief Private common stuff for Delta encoder and decoder
5//
6// Author: Lasse Collin
7//
8// This file has been put into the public domain.
9// You can do whatever you want with this file.
10//
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef LZMA_DELTA_PRIVATE_H
14#define LZMA_DELTA_PRIVATE_H
15
16#include "delta_common.h"
17
18struct lzma_coder_s {
18typedef struct {
19 /// Next coder in the chain
20 lzma_next_coder next;
21
22 /// Delta distance
23 size_t distance;
24
25 /// Position in history[]
26 uint8_t pos;
27
28 /// Buffer to hold history of the original data
29 uint8_t history[LZMA_DELTA_DIST_MAX];
19 /// Next coder in the chain
20 lzma_next_coder next;
21
22 /// Delta distance
23 size_t distance;
24
25 /// Position in history[]
26 uint8_t pos;
27
28 /// Buffer to hold history of the original data
29 uint8_t history[LZMA_DELTA_DIST_MAX];
30};
30} lzma_delta_coder;
31
32
33extern lzma_ret lzma_delta_coder_init(
34 lzma_next_coder *next, const lzma_allocator *allocator,
35 const lzma_filter_info *filters);
36
37#endif
31
32
33extern lzma_ret lzma_delta_coder_init(
34 lzma_next_coder *next, const lzma_allocator *allocator,
35 const lzma_filter_info *filters);
36
37#endif