Skip to content

Commit a34366e

Browse files
committed
test: expand corpus tests to full source×format matrix, add HEIC and ICC profile tests
- All corpus-builder sources (PNG, JPEG, WebP, AVIF, JXL, GIF) now test against all 6 target formats (jpg, png, webp, jxl, avif, gif) - Added animated corpus placeholders: avif-animated, jxl-animated - Added WebP animated → png/jpg tests (first-frame extraction) - Added GIF animated → png/jpg tests - Added HEIC → all formats (png, jpg, webp, avif, jxl) from /mnt/v/heic/ - Added ICC profile tests from /mnt/v/datasets/non-srgb-by-profile/: adobe-rgb, display-p3, prophoto-rgb, rec-2020-pq, bt709, camera-rgb, grayscale - Expanded wide-gamut and weird to all target formats - Expanded repro-images to jpg/webp targets - Fix zen_decoder.rs: ImageInfo.has_animation → ImageSequence::Animation match
1 parent 591df27 commit a34366e

2 files changed

Lines changed: 428 additions & 20 deletions

File tree

imageflow_core/src/codecs/zen_decoder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,8 @@ impl Decoder for ZenDecoder {
757757
];
758758

759759
// Animation path: use persistent full-frame decoder
760-
if self.meta.always_use_frame_decoder || info.has_animation || self.frame_dec.is_some() {
760+
let is_animated = matches!(info.sequence, zc::ImageSequence::Animation { .. });
761+
if self.meta.always_use_frame_decoder || is_animated || self.frame_dec.is_some() {
761762
if self.frame_dec.is_none() {
762763
let data = self.data.take().unwrap();
763764
let target = self.target_frame;

0 commit comments

Comments
 (0)