Fixed compilation issue after merging

This commit is contained in:
Alan Race committed 2022-05-02 08:47:05 +02:00
1 parent 902f945375
commit f809d7d1bb
2 files changed
+3 -2

No files matched your search

+3
View File
@@ -1209,6 +1209,9 @@ impl<R: Read + Seek> Decoder<R> {
self.goto_offset_u64(offset)?; self.goto_offset_u64(offset)?;
let line_samples = output_width * self.image().bits_per_sample.len(); let line_samples = output_width * self.image().bits_per_sample.len();
let padding_right_samples = chunk_info.padding_right() * self.image().bits_per_sample.len();
let row_samples = chunk_info.data_width * self.image().bits_per_sample.len();
let photometric_interpretation = self.image().photometric_interpretation; let photometric_interpretation = self.image().photometric_interpretation;
let compression_method = self.image().compression_method; let compression_method = self.image().compression_method;
let jpeg_tables = self.image().jpeg_tables.clone(); let jpeg_tables = self.image().jpeg_tables.clone();
-2
View File
@@ -4,8 +4,6 @@ use std::convert::TryFrom;
use std::io::{self, BufRead, BufReader, Read, Seek, SeekFrom, Take}; use std::io::{self, BufRead, BufReader, Read, Seek, SeekFrom, Take};
use std::sync::Arc; use std::sync::Arc;
use crate::tags::PhotometricInterpretation;
/// Byte order of the TIFF file. /// Byte order of the TIFF file.
#[derive(Clone, Copy, Debug)] #[derive(Clone, Copy, Debug)]
pub enum ByteOrder { pub enum ByteOrder {