Refactor Group4 reader into stream module

This commit is contained in:
Stephen Judkins authored and Aurelia Molzer committed 2025-08-31 01:25:43 +02:00
1 parent c75aa98ce2
commit 80ce77190e
5 files changed
+74 -67

No files matched your search

-1
View File
@@ -547,7 +547,6 @@ fn fix_endianness(buf: &mut [u8], byte_order: ByteOrder, bit_depth: u8) {
}
impl<R: Read + Seek> Decoder<R> {
/// Create a new decoder that decodes from the stream ```r```
pub fn new(mut r: R) -> TiffResult<Decoder<R>> {
let mut endianess = Vec::with_capacity(2);
(&mut r).take(2).read_to_end(&mut endianess)?;