Debian Codegraph @

debian/missing-sources/png/CHANGES.md

raw symbols SCIP
1 ## 0.18.1
2
3 ### Additions
4
5 * Added `Filter::MinEntropy` for encoding, which selects the filter that
6 minimizes the Shannon entropy of the filtered row. ([#647])
7 * Made `ScaledFloat::SCALING` constant public. ([#650])
8 * Support skipping chunks without loading them into memory. ([#630])
9 * Allow full unfiltering for partial data, enabling progressive decoding
10 use cases. ([#664])
11
12 ### Changes
13
14 * Improved Paeth unfilter auto-vectorization by changing how loop state
15 is maintained. ([#635])
16 * Added `portable_simd` Paeth unfiltering for 3bpp and 4bpp images on nightly.
17 ([#632], [#633])
18 * Add early exit for adaptive filter selection when a perfect filter is found.
19 ([#646])
20 * Ignore duplicate `acTL` chunks instead of producing errors. ([#651])
21 * Require IDAT chunk(s) before fdAT chunks, as mandated by PNG specification.
22 ([#653])
23 * Enforce `acTL` frame counts to be valid PNG 4-byte integers (capped at 2^31-1).
24 ([#673])
25
26 ### Fixes
27
28 * Fixed and improved intra-doc links in documentation comments. ([#665])
29 * Fixed nightly `portable_simd` build. ([#675])
30
31 [#630]: https://github.com/image-rs/image-png/pull/630
32 [#632]: https://github.com/image-rs/image-png/pull/632
33 [#633]: https://github.com/image-rs/image-png/pull/633
34 [#635]: https://github.com/image-rs/image-png/pull/635
35 [#646]: https://github.com/image-rs/image-png/pull/646
36 [#647]: https://github.com/image-rs/image-png/pull/647
37 [#650]: https://github.com/image-rs/image-png/pull/650
38 [#651]: https://github.com/image-rs/image-png/pull/651
39 [#653]: https://github.com/image-rs/image-png/pull/653
40 [#664]: https://github.com/image-rs/image-png/pull/664
41 [#665]: https://github.com/image-rs/image-png/pull/665
42 [#673]: https://github.com/image-rs/image-png/pull/673
43 [#675]: https://github.com/image-rs/image-png/pull/675
44
45 ## 0.18.0
46
47 ### API Breaking Changes
48
49 * Removed deprecated `Info::encode` and `Encoder::set_srgb` methods.
50 * Improved the compression settings API for encoding.
51 * `Decoder` now requires a reader that implements `Seek` and `BufRead` traits.
52 * Bump bitflags dependency to 2.0.
53 * `StreamingDecoder::update` now takes a structured `UnfilterBuf` argument
54 instead of a direct reference to a vector. This allows in-place
55 decompression. There is a public constructor for `UnfilterBuf`.
56 * The methods `Decoder::output_buffer_size` and `output_line_size` now return
57 `Option<usize>` to reflect that these calculations no longer overflow on some
58 targets where the required buffers can not be represented in the address
59 space. They return the mathematically correct size where possible.
60 * The `Decoded` enum returned from `StreamingDecoder::update` was simplified to
61 no longer contains any chunk payload data. Instead, it now contains only
62 chunk events where every chunk that was started will eventually be ended by
63 `ChunkComplete`, `BadAncillaryChunk` or `SkippedAncillaryChunk`.
64 * Ancillary chunks, i.e. those not critical to decoder interpretation of the
65 file, which fail to parse are now terminated with a `BadAncillaryChunk` event
66 but no longer returned a `DecodingError`. This includes text chunks as well
67 as many metadata chunks (except for `fcTL` that we deem crucial to the
68 parser's understanding of the image sequence in an APNG despite being
69 technically ancillary).
70
71 ### Additions
72
73 * Added `Reader::read_row` method.
74 * Add support for parsing eXIf chunk.
75 * Treat most auxiliary chunk errors as benign.
76 * Added `splat_interlaced_row`, which implements an alternative method for
77 merging Adam7 interlaced lines into the output buffer that is more suitable
78 for the presentation of progressive states of the buffer.
79 * Added `Adam7Variant` documenting the various methods for applying interlaced
80 rows and to prepare an API to progressively read frames through `Decoder`.
81
82 ### Changes
83
84 * The decoding of Adam7 interlaced data is now much faster.
85 * The `acTL` chunk is now ignored when it is invalid, instead of producing
86 errors while reading or decoding the following APNG chunks.
87 * The requirement of the `fcTL` chunk for the default image to match the IHDR's
88 indicate image size is now enforced.
89 * More minor format errors in auxiliary chunks are now ignored by the decoder,
90 instead disregarding the malformed chunk.
91 * Adam7 Interlacing on 32-bit targets now handles some cases correctly that
92 previously wrote some bytes to the wrong pixel indices due to overflows.
93
94 ## 0.17.16
95
96 * Make gAMA and cHRM fallback optional for sRGB ([#547])
97 * Pass through nightly feature to crc32fast crate to get SIMD crc32 on Aarch64 ([#545])
98 * Fix bug in iCCP chunk encoding ([#458])
99 * Deprecate Info::encode ([#550])
100
101 [#545]: https://github.com/image-rs/image-png/pull/545
102 [#458]: https://github.com/image-rs/image-png/pull/548
103 [#550]: https://github.com/image-rs/image-png/pull/550
104 [#547]: https://github.com/image-rs/image-png/pull/547
105
106 ## 0.17.15
107
108 ### Added
109
110 * Add a public API to advance to the next frame in APNG decoder ([#518])
111 * Add APIs to write ICC and EXIF chunks ([#526])
112 * Add support for parsing the sBIT chunk ([#524])
113 * Add support for parsing the bKGD chunk ([#538])
114 * Add support for parsing the cICP chunk ([#529])
115 * Add support for parsing mDCV and cLLI chunks ([#528], ([#543]))
116
117 ### Changed
118
119 * Improve performance of Paeth filter during decoding ([#512], [#539])
120
121 ### Fixed
122
123 * Avoid an infinite loop when retrying after a fatal error using `StreamingDecoder` ([#520])
124 * Fixed chunk order in encoded files ([#526])
125
126 [#495]: https://github.com/image-rs/image-png/pull/495
127 [#496]: https://github.com/image-rs/image-png/pull/496
128 [#512]: https://github.com/image-rs/image-png/pull/512
129 [#518]: https://github.com/image-rs/image-png/pull/518
130 [#520]: https://github.com/image-rs/image-png/pull/520
131 [#524]: https://github.com/image-rs/image-png/pull/524
132 [#526]: https://github.com/image-rs/image-png/pull/526
133 [#528]: https://github.com/image-rs/image-png/pull/528
134 [#529]: https://github.com/image-rs/image-png/pull/529
135 [#538]: https://github.com/image-rs/image-png/pull/538
136 [#539]: https://github.com/image-rs/image-png/pull/539
137 [#543]: https://github.com/image-rs/image-png/pull/543
138
139 ## 0.17.14
140
141 * Updated to miniz_oxide 0.8.0.
142 * Added public API to consume interlaced rows one by one ([#495])
143 * Improved support for resuming decoding after an `UnexpectedEof`, which lets you start parsing a file before it's fully received over the network ([#496])
144 * Fixed some broken links in documentation, improved some documentation comments
145
146 [#495]: https://github.com/image-rs/image-png/pull/495
147 [#496]: https://github.com/image-rs/image-png/pull/496
148
149
150 ## 0.17.13
151
152 * Fix `Send` bound on `Reader`.
153
154 ## 0.17.12
155
156 * Reject zero-sized frames.
157 * Optimized decoding of paletted images.
158 * Removed remaining uses of miniz_oxide for decoding.
159 * Correct lifetime used for `Info` struct.
160 * Fix build issue with `-Z minimal-versions`.
161
162 ## 0.17.11
163
164 * Ignore subsequent iCCP chunks to match libpng behavior.
165 * Added an option to ignore ancillary chunks with invalid CRC.
166 * Added `new_with_info` constructor for encoder.
167 * Removed hard-coded memory limits.
168 * No longer allow zero sized images.
169 * Added `Reader::finish` to read all the auxiliary chunks that comes after the
170 image.
171
172 ## 0.17.10
173
174 * Added Transformations::ALPHA
175 * Enable encoding pixel dimensions
176
177 ## 0.17.9
178
179 * Fixed a bug in ICC profile decompression.
180 * Improved unfilter performance.
181
182 ## 0.17.8
183
184 * Increased MSRV to 1.57.0.
185 * Substantially optimized encoding and decoding:
186 - Autovectorize filtering and unfiltering.
187 - Make the "fast" compression preset use fdeflate.
188 - Switch decompression to always use fdeflate.
189 - Updated to miniz_oxide 0.7.
190 - Added an option to ignore checksums.
191 * Added corpus-bench example which measures the compression ratio and time to
192 re-encode and subsequently decode a corpus of images.
193 * More fuzz testing.
194
195 ## 0.17.7
196
197 * Fixed handling broken tRNS chunk.
198 * Updated to miniz_oxide 0.6.
199
200 ## 0.17.6
201
202 * Added `Decoder::read_header_info` to query the information contained in the
203 PNG header.
204 * Switched to using the flate2 crate for encoding.
205
206 ## 0.17.5
207
208 * Fixed a regression, introduced by chunk validation, that made the decoder
209 sensitive to the order of `gAMA`, `cHRM`, and `sRGB` chunks.
210
211 ## 0.17.4
212
213 * Added `{Decoder,StreamDecoder}::set_ignore_text_chunk` to disable decoding of
214 ancillary text chunks during the decoding process (chunks decoded by default).
215 * Added duplicate chunk checks. The decoder now enforces that standard chunks
216 such as palette, gamma, … occur at most once as specified.
217 * Added `#[forbid(unsafe_code)]` again. This may come at a minor performance
218 cost when decoding ASCII text for now.
219 * Fixed a bug where decoding of large chunks (>32kB) failed to produce the
220 correct result, or fail the image decoding. As new chunk types are decoded
221 this introduced regressions relative to previous versions.
222
223 ## 0.17.3
224
225 * Fixed a bug where `Writer::finish` would not drop the underlying writer. This
226 would fail to flush and leak memory when using a buffered file writers.
227 * Calling `Writer::finish` will now eagerly flush the underlying writer,
228 returning any error that this operation may result in.
229 * Errors in inflate are now diagnosed with more details.
230 * The color and depth combination is now checked in stream decoder.
231
232 ## 0.17.2
233
234 * Added support for encoding and decoding tEXt/zTXt/iTXt chunks.
235 * Added `Encoder::validate_sequence` to enable validation of the written frame
236 sequence, that is, if the number of written images is consistent with the
237 animation state.
238 * Validation is now off by default. The basis of the new validation had been
239 introduced in 0.17 but this fixes some cases where this validation was too
240 aggressive compared to previous versions.
241 * Added `Writer::finish` to fully check the write of the end of an image
242 instead of silently ignoring potential errors in `Drop`.
243 * The `Writer::write_chunk` method now validates that the computed chunk length
244 does not overflow the limit set by PNG.
245 * Fix an issue where the library would panic or even abort the process when
246 `flush` or `write` of an underlying writer panicked, or in some other uses of
247 `StreamWriter`.
248
249 ## 0.17.1
250
251 * Fix panic in adaptive filter method `sum_buffer`
252
253 ## 0.17.0
254
255 * Increased MSRV to 1.46.0
256 * Rework output info usage
257 * Implement APNG encoding
258 * Improve ergonomics of encoder set_palette and set_trns methods
259 * Make Info struct non-exhaustive
260 * Make encoder a core feature
261 * Default Transformations to Identity
262 * Add Adaptive filtering method for encoding
263 * Fix SCREAM_CASE on ColorType variants
264 * Forbid unsafe code
265
266 ## 0.16.7
267
268 * Added `Encoder::set_trns` to register a transparency table to be written.
269
270 ## 0.16.6
271
272 * Fixed silent integer overflows in buffer size calculation, resulting in
273 panics from assertions and out-of-bounds accesses when actually decoding.
274 This improves the stability of 32-bit and 16-bit targets and make decoding
275 run as stable as on 64-bit.
276 * Reject invalid color/depth combinations. Some would lead to mismatched output
277 buffer size and panics during decoding.
278 * Add `Clone` impl for `Info` struct.
279
280 ## 0.16.5
281
282 * Decoding of APNG subframes is now officially supported and specified. Note
283 that dispose ops and positioning in the image need to be done by the caller.
284 * Added encoding of indexed data.
285 * Switched to `miniz_oxide` for decompressing image data, with 30%-50% speedup
286 in common cases and up to 200% in special ones.
287 * Fix accepting images only with consecutive IDAT chunks, rules out data loss.
288
289 ## 0.16.4
290
291 * The fdAT frames are no longer inspected when the main image is read. This
292 would previously be the case for non-interlaced images. This would lead to
293 incorrect failure and, e.g. an error of the form `"invalid filter method"`.
294 * Fix always validating the last IDAT-chunks checksum, was sometimes ignored.
295 * Prevent encoding color/bit-depth combinations forbidden by the specification.
296 * The fixes for APNG/fdAT enable further implementation. The _next_ release is
297 expected to officially support APNG.
298
299 ## 0.16.3
300
301 * Fix encoding with filtering methods Up, Avg, Paeth
302 * Optimize decoding throughput by up to +30%
303
304 ## 0.16.2
305
306 * Added method constructing an owned stream encoder.
307
308 ## 0.16.1
309
310 * Addressed files bloating the packed crate
311
312 ## 0.16.0
313
314 * Fix a bug compressing images with deflate
315 * Address use of deprecated error interfaces
316
317 ## 0.15.3
318
319 * Fix panic while trying to encode empty images. Such images are no longer
320 accepted and error when calling `write_header` before any data has been
321 written. The specification does not permit empty images.
322
323 ## 0.15.2
324
325 * Fix `EXPAND` transformation to leave bit depths above 8 unchanged
326
327 ## 0.15.1
328
329 * Fix encoding writing invalid chunks. Images written can be corrected: see
330 https://github.com/image-rs/image/issues/1074 for a recovery.
331 * Fix a panic in bit unpacking with checked arithmetic (e.g. in debug builds)
332 * Added better fuzzer integration
333 * Update `term`, `rand` dev-dependency
334 * Note: The `show` example program requires a newer compiler than 1.34.2 on
335 some targets due to depending on `glium`. This is not considered a breaking
336 bug.
337
338 ## 0.15
339
340 Begin of changelog