Package: glycin
A patch for glycin to make it build with the new zune-jpeg is attatched.
Index: glycin-2.0.0+ds/glycin-loaders/glycin-image-rs/Cargo.toml
===================================================================
--- glycin-2.0.0+ds.orig/glycin-loaders/glycin-image-rs/Cargo.toml
+++ glycin-2.0.0+ds/glycin-loaders/glycin-image-rs/Cargo.toml
@@ -34,4 +34,4 @@ image = { workspace = true, features = [
log.workspace = true
jpeg-encoder = "0.6.0"
# Force newer version for bugfixes
-zune-jpeg = "0.4.20"
+zune-jpeg = "0.5"
Index: glycin-2.0.0+ds/glycin-loaders/glycin-image-rs/src/editor/jpeg.rs
===================================================================
--- glycin-2.0.0+ds.orig/glycin-loaders/glycin-image-rs/src/editor/jpeg.rs
+++ glycin-2.0.0+ds/glycin-loaders/glycin-image-rs/src/editor/jpeg.rs
@@ -5,6 +5,7 @@ use glycin_utils::*;
use gufo_common::orientation::Orientation;
use gufo_jpeg::Jpeg;
use zune_jpeg::zune_core::options::DecoderOptions;
+use zune_jpeg::zune_core::bytestream::ZCursor;
pub struct EditJpeg {
buf: Vec<u8>,
@@ -75,7 +76,7 @@ fn apply_non_sparse(
.jpeg_set_out_colorspace(zune_jpeg::zune_core::colorspace::ColorSpace::YCbCr)
.set_max_height(u32::MAX as usize)
.set_max_width(u32::MAX as usize);
- let mut decoder = zune_jpeg::JpegDecoder::new_with_options(&buf, decoder_options);
+ let mut decoder = zune_jpeg::JpegDecoder::new_with_options(ZCursor::new(&buf), decoder_options);
let mut pixels = decoder.decode().expected_error()?;
let info: zune_jpeg::ImageInfo = decoder.info().expected_error()?;
let mut simple_frame = EditingFrame {