Switch from SmartReader to EndianReader (#233)

This commit is contained in:
Jonathan Behrens authored and GitHub committed 2025-06-08 18:45:10 -07:00
1 parent ee0dbf373b
commit f44da4a00d
5 files changed
+78 -118

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ use super::ifd::{Directory, Value};
use super::stream::{ByteOrder, DeflateReader, LZWReader, PackBitsReader};
use super::tag_reader::TagReader;
use super::{predict_f16, predict_f32, predict_f64, Limits};
use super::{stream::SmartReader, ChunkType};
use super::{stream::EndianReader, ChunkType};
use crate::tags::{
CompressionMethod, PhotometricInterpretation, PlanarConfiguration, Predictor, SampleFormat, Tag,
};
@@ -80,7 +80,7 @@ pub(crate) struct Image {
impl Image {
pub fn from_reader<R: Read + Seek>(
reader: &mut SmartReader<R>,
reader: &mut EndianReader<R>,
ifd: Directory,
limits: &Limits,
bigtiff: bool,