feat(webp)!: migrate WebP to gamut-webp - #60
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
libwebp-sysFFI codec/mux wrapper with crates.iogamut-webp 0.3.1for pure-Rust VP8/VP8L decode and encodegamut-webpandgamut-metadata::MetadataBlock, removing the manual RIFF EXIF scannerwebp/gamutat registry version0.3Breaking API changes
LibwebpDecodeConfig→WebpDecodeConfigLibwebpEncodeConfig→WebpEncodeConfigf32tou8; the libwebp-onlymethodandnear_losslessfields are removed (future tuning remains upstream in gamut-webp: encoder knobs — effort/method and near-lossless gamut#261)EncodeError::WebP,webp-decode-libwebp, andwebp-encode-libwebpare removedPerformance
Full Criterion runs on the same Ryzen 7 7800X3D host, using the 512×512 synthetic lossy round trip at quality 75:
The decode comparison uses each backend's own encoded output. These numbers are recorded in
docs/BENCHMARKS.mdas the new upstream-first baseline.Validation
cargo test --workspace --features rawshift-image/fullcargo clippy --workspace --all-targets --features rawshift-image/full -- -D warningscargo doc --workspace --no-deps --features rawshift-image/fullcargo publish --dry-run -p rawshift-imagewebp-decode,webp-encode, andwebpdecode,demosaic, andpipelinebenches (HEIC/AVIF hardware benches skipped cleanly because their external encoder tools are unavailable)Closes #24