-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for resuming decoding after
UnexpectedEof
.
This commit supports resuming decoding after `UnexpectedEof` in two ways: 1. Support for detecting an unexpected EOF using the public API of `DecodingError`. Before this commit `UnexpectedEof`, `UnexpectedEndOfChunk`, and `NoMoreImageData` errors were represented as a crate-internal `FormatErrorInner` type. After this commit, these errors have a representation that can be detected using the public API: `DecodingError::IoError(std::io::ErrorKind::UnexpectedEof.into())`. 2. Support for resuming decoding after an unexpected EOF. Before this commit `fn next_interlaced_row` would unconditionally call `next_pass` - advancing to the next row. After this commit this will only happen if the previous row has been successfully decoded.
- Loading branch information
1 parent
790994e
commit d9b6e57
Showing
2 changed files
with
193 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters