lzma_.delta

Delta filter

Source:

Author:
Lasse Collin (original liblzma author), Johannes Pfau (D bindings)

License:
public domain

ulong LZMA_FILTER_DELTA;
Filter ID

Filter ID of the Delta filter. This is used as lzma_filter.id.

enum lzma_delta_type;
Type of the delta calculation

Currently only byte-wise delta is supported. Other possible types could be, for example, delta of 16/32/64-bit little/big endian integers, but these are not currently planned since byte-wise delta is almost as good.

struct lzma_options_delta;
Options for the Delta filter

These options are needed by both encoder and decoder.

lzma_delta_type type;
For now, this must always be LZMA_DELTA_TYPE_BYTE.

uint dist;
Delta distance

With the only currently supported type, LZMA_DELTA_TYPE_BYTE, the distance is as bytes.

Examples:
- 16-bit stereo audio: distance = 4 bytes - 24-bit RGB image data: distance = 3 bytes

int LZMA_DELTA_DIST_MIN;

int LZMA_DELTA_DIST_MAX;