chore(deps): update rust crate png to 0.18 #14123
Draft
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.17
->0.18
Release Notes
image-rs/image-png (png)
v0.18.0
API Breaking Changes
Info::encode
andEncoder::set_srgb
methods.Decoder
now requires a reader that implementsSeek
andBufRead
traits.StreamingDecoder::update
now takes a structuredUnfilterBuf
argumentinstead of a direct reference to a vector. This allows in-place
decompression. There is a public constructor for
UnfilterBuf
.Decoder::output_buffer_size
andoutput_line_size
now returnOption<usize>
to reflect that these calculations no longer overflow on sometargets where the required buffers can not be represented in the address
space. They return the mathematically correct size where possible.
Decoded
enum returned fromStreamingDecoder::update
was simplified tono longer contains any chunk payload data. Instead, it now contains only
chunk events where every chunk that was started will eventually be ended by
ChunkComplete
,BadAncillaryChunk
orSkippedAncillaryChunk
.file, which fail to parse are now terminated with a
BadAncillaryChunk
eventbut no longer returned a
DecodingError
. This includes text chunks as wellas many metadata chunks (except for
fcTL
that we deem crucial to theparser's understanding of the image sequence in an APNG despite being
technically ancillary).
Additions
Reader::read_row
method.splat_interlaced_row
, which implements an alternative method formerging Adam7 interlaced lines into the output buffer that is more suitable
for the presentation of progressive states of the buffer.
Adam7Variant
documenting the various methods for applying interlacedrows and to prepare an API to progressively read frames through
Decoder
.Changes
acTL
chunk is now ignored when it is invalid, instead of producingerrors while reading or decoding the following APNG chunks.
fcTL
chunk for the default image to match the IHDR'sindicate image size is now enforced.
instead disregarding the malformed chunk.
previously wrote some bytes to the wrong pixel indices due to overflows.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.