Simplify layout proxy methods

This commit is contained in:
A. Molzer committed 2025-11-27 23:56:57 +01:00
1 parent 0de1261948
commit 6fe21da979
2 files changed
+5 -16

No files matched your search

-14
View File
@@ -606,20 +606,6 @@ impl Image {
}
}
/// Get the layout for each output plane (i.e. one plane for non-planar tiff).
pub(crate) fn preferred_output_layout(&self) -> TiffResult<PlaneLayout> {
let Image { width, height, .. } = *self;
self.preferred_output_layout_for(width, height)
}
pub(crate) fn preferred_output_layout_for(
&self,
width: u32,
height: u32,
) -> TiffResult<PlaneLayout> {
self.readout_for_size(width, height)?.to_plane_layout()
}
pub(crate) fn readout_for_image(&self) -> TiffResult<ReadoutLayout> {
let Image { width, height, .. } = *self;
self.readout_for_size(width, height)