Add EntryBytesReader: impl Read + Seek
This commit is contained in:
1 parent
017425b200
commit
f890d22657
4 files changed
+205
-2
No files matched your search
@@ -20,8 +20,10 @@ mod image;
|
||||
mod logluv;
|
||||
mod stream;
|
||||
mod tag_reader;
|
||||
mod value;
|
||||
|
||||
pub use self::buffer::{DecodingSampleBuffer, DecodingSampleSlice, DecodingSampleType};
|
||||
pub use self::value::EntryBytesReader;
|
||||
|
||||
#[deprecated = "Renamed to `DecodingSampleBuffer`"]
|
||||
pub type DecodingResult = DecodingSampleBuffer;
|
||||
@@ -943,6 +945,10 @@ impl<R: Read + Seek> Decoder<R> {
|
||||
Ok(val)
|
||||
}
|
||||
|
||||
pub fn read_entry(&mut self, entry: ifd::Entry) -> TiffResult<EntryBytesReader<'_, R>> {
|
||||
EntryBytesReader::from_entry(&mut self.value_reader, entry)
|
||||
}
|
||||
|
||||
/// Reads a TIFF IFA offset/value field
|
||||
#[inline]
|
||||
pub fn read_offset_u64(&mut self) -> Result<[u8; 8], io::Error> {
|
||||
|
||||
Reference in new issue
Block a user