From 5b9dc309194a55de67678df14b9c4b6deb8373cb Mon Sep 17 00:00:00 2001 From: "A. Molzer" <5550310+197g@users.noreply.github.com> Date: Wed, 10 Dec 2025 21:59:03 +0100 Subject: [PATCH] Remove badly defined layout method --- src/decoder/mod.rs | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 3fa2d4a..91d2592 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -1110,33 +1110,6 @@ impl Decoder { }) } - /// Return the layout preferred to read planes corresponding to the specified chunk. - /// - /// This is similar to [`Self::image_chunk_buffer_layout`] but iterates all planes with chunks - /// at the corresponding coordinates of the image. - /// - /// # Bugs - /// - /// Sub-sampled images are not yet supported properly. - pub fn image_plane_buffer_layout( - &mut self, - chunk_index: u32, - ) -> TiffResult { - match self.image().planar_config { - PlanarConfiguration::Chunky => return self.image_chunk_buffer_layout(chunk_index), - PlanarConfiguration::Planar => {} - } - - let data_dims = self.image().chunk_data_dimensions(chunk_index)?; - - let layout = self - .image() - .readout_for_size(data_dims.0, data_dims.1)? - .to_plane_layout()?; - - Ok(BufferLayoutPreference::from_planes(&layout)) - } - /// Read the specified chunk (at index `chunk_index`) and return the binary data as a Vector. /// /// # Bugs