diff --git a/src/decoder.rs b/src/decoder.rs index a5d03db..292769d 100644 --- a/src/decoder.rs +++ b/src/decoder.rs @@ -57,12 +57,12 @@ mod codec_utils { } -struct Decoder> { +pub struct Decoder> { // Image metadata - width: u32, - height: u32, - channels: u8, - colorspace: u8, + pub width: u32, + pub height: u32, + pub channels: u8, + pub colorspace: u8, // QOI codec state information back_buffer: [PixelRGBA; 64], @@ -76,7 +76,7 @@ impl Decoder where I: Iterator, { - fn try_new(mut bytes: I) -> Result { + pub fn try_new(mut bytes: I) -> Result { let _ = try_read_magic(&mut bytes)?; Ok(Self { width: try_read_u32(&mut bytes)?,