mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 17:55:45 +01:00
Format the streamed PNG fixture construction
This commit is contained in:
1 parent
a2e0d965e3
commit
a9ca8e42d2
1 file changed
+2
-4
@@ -2338,10 +2338,8 @@ mod streamed_tests {
|
||||
for row in pixels.chunks_exact_mut(stride).skip(h as usize / 2) {
|
||||
row[0] ^= 0x5a;
|
||||
}
|
||||
let img = Image::from_raw(w, h, layout, sample, pixels)
|
||||
.unwrap()
|
||||
.with_icc(Some((0..600u32).map(|i| (i % 251) as u8).collect()))
|
||||
.with_meta(meta);
|
||||
let img =
|
||||
Image::from_raw(w, h, layout, sample, pixels).unwrap().with_icc(Some((0..600u32).map(|i| (i % 251) as u8).collect())).with_meta(meta);
|
||||
let level = PngCompression::Default;
|
||||
let opts = EncodeOptions { png_compression: level, ..Default::default() };
|
||||
let whole = crate::encode(&img, Format::Png, &opts).unwrap();
|
||||
|
||||
Reference in new issue
Block a user