Clean up read_image
This commit is contained in:
1 parent
eeb79ee07a
commit
2cf33d634d
1 file changed
+3
-3
+3
-3
@@ -1533,9 +1533,9 @@ impl<R: Read + Seek> Decoder<R> {
|
|||||||
|
|
||||||
/// Decodes the entire image and return it as a Vector
|
/// Decodes the entire image and return it as a Vector
|
||||||
pub fn read_image(&mut self) -> TiffResult<DecodingResult> {
|
pub fn read_image(&mut self) -> TiffResult<DecodingResult> {
|
||||||
let result = match (self.image().chunk_type, self.image().compression_method) {
|
let result = match self.image().chunk_type {
|
||||||
(ChunkType::Strip, _) => self.read_stripped_image()?,
|
ChunkType::Strip => self.read_stripped_image()?,
|
||||||
(ChunkType::Tile, _) => self.read_tiled_image()?,
|
ChunkType::Tile => self.read_tiled_image()?,
|
||||||
};
|
};
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
|
|||||||
Reference in new issue
Block a user