pub struct BlobInfo {
pub version: u32,
pub data_type: u32,
pub depth: u32,
pub width: u32,
pub height: u32,
pub bands: u32,
pub valid_pixel_count: u32,
pub blob_size: u32,
pub masks: u32,
pub uses_nodata: u32,
}Expand description
Metadata extracted from a LERC blob using lerc_getBlobInfo.
This structure provides information about the dimensions, data type, and encoding details of the compressed raster data, without fully decoding the blob.
Fields§
§version: u32Codec version used to create the blob.
data_type: u32Encoded data type (see LERC C API DataType enum).
depth: u32Number of values per pixel (aka depth or dimensionality).
width: u32Width of the image in pixels (columns).
height: u32Height of the image in pixels (rows).
bands: u32Number of bands (layers) per pixel.
valid_pixel_count: u32Number of valid pixels in the first band (others may differ if multiple masks).
blob_size: u32Size of the compressed blob in bytes.
masks: u32Number of validity masks:
0: all pixels valid1: same mask for all bandsnBands: per-band masks
uses_nodata: u32Indicates how many bands use a no-data value (only applies if depth > 1).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlobInfo
impl RefUnwindSafe for BlobInfo
impl Send for BlobInfo
impl Sync for BlobInfo
impl Unpin for BlobInfo
impl UnwindSafe for BlobInfo
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
Mutably borrows from an owned value. Read more