1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Vendored from fdeflate 0.3.7 (src/lib.rs), https://github.com/image-rs/fdeflate
// Copyright (c) The image-rs Developers. Licensed MIT OR Apache-2.0; used here under the MIT
// terms, see LICENSE-MIT in this directory.
//! fdeflate-identical compressor (house delta, rusty_zlib; feature `fdeflate-compat`).
//!
//! This is fdeflate 0.3.7's compressor vendored verbatim, so its output is byte-identical to
//! `fdeflate::compress_to_vec`, `fdeflate::Compressor` and `fdeflate::StoredOnlyCompressor` for
//! every input. It exists so that callers replacing fdeflate (for example a PNG encoder's fast
//! mode) keep producing exactly the same bytes.
//!
//! The algorithm makes simplifying assumptions tuned for filtered PNG scanlines:
//!
//! - Exactly one block per deflate stream.
//! - No distance codes except for run length encoding of zeros.
//! - A single fixed huffman tree trained on a large corpus of PNG images.
//! - All huffman codes are 12 bits or less.
//!
//! The output is a standard zlib stream that any inflater (including this crate's) decodes.
pub use ;
const