pub struct PyramidLevel {Show 15 fields
pub level_index: usize,
pub ifd_index: usize,
pub width: u32,
pub height: u32,
pub tile_width: u32,
pub tile_height: u32,
pub tiles_x: u32,
pub tiles_y: u32,
pub tile_count: u32,
pub downsample: f64,
pub compression: u16,
pub ifd: Ifd,
pub tile_offsets_entry: Option<IfdEntry>,
pub tile_byte_counts_entry: Option<IfdEntry>,
pub jpeg_tables_entry: Option<IfdEntry>,
}Expand description
A single level in the image pyramid.
Each level represents the image at a specific resolution. Level 0 is the highest resolution (full size), with higher levels being progressively smaller (lower resolution).
Fields§
§level_index: usizeIndex of this level in the pyramid (0 = highest resolution)
ifd_index: usizeIndex of the IFD in the file’s IFD chain
width: u32Image width in pixels
height: u32Image height in pixels
tile_width: u32Tile width in pixels
tile_height: u32Tile height in pixels
tiles_x: u32Number of tiles in X direction
tiles_y: u32Number of tiles in Y direction
tile_count: u32Total number of tiles
downsample: f64Downsample factor relative to level 0 (1.0 for level 0)
compression: u16Compression scheme (7 = JPEG)
ifd: IfdThe parsed IFD for this level
tile_offsets_entry: Option<IfdEntry>Offset in file where TileOffsets array is stored (if not inline)
tile_byte_counts_entry: Option<IfdEntry>Offset in file where TileByteCounts array is stored (if not inline)
jpeg_tables_entry: Option<IfdEntry>JPEGTables entry for this level (if present)
Implementations§
Source§impl PyramidLevel
impl PyramidLevel
Sourcepub fn has_tile_data(&self) -> bool
pub fn has_tile_data(&self) -> bool
Check if this level has valid tile offset and byte count entries.
Trait Implementations§
Source§impl Clone for PyramidLevel
impl Clone for PyramidLevel
Source§fn clone(&self) -> PyramidLevel
fn clone(&self) -> PyramidLevel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PyramidLevel
impl RefUnwindSafe for PyramidLevel
impl Send for PyramidLevel
impl Sync for PyramidLevel
impl Unpin for PyramidLevel
impl UnwindSafe for PyramidLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more