Struct libheif_rs::ImageHandle
source · pub struct ImageHandle { /* private fields */ }
Expand description
Encoded image.
Implementations§
source§impl ImageHandle
impl ImageHandle
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn has_alpha_channel(&self) -> bool
pub fn is_premultiplied_alpha(&self) -> bool
pub fn is_primary(&self) -> bool
pub fn luma_bits_per_pixel(&self) -> u8
pub fn chroma_bits_per_pixel(&self) -> u8
sourcepub fn ispe_width(&self) -> i32
pub fn ispe_width(&self) -> i32
Get the image width from the ‘ispe’ box. This is the original image size without any transformations applied to it. Do not use this unless you know exactly what you are doing.
sourcepub fn ispe_height(&self) -> i32
pub fn ispe_height(&self) -> i32
Get the image height from the ‘ispe’ box. This is the original image size without any transformations applied to it. Do not use this unless you know exactly what you are doing.
pub fn has_depth_image(&self) -> bool
pub fn number_of_depth_images(&self) -> i32
pub fn depth_image_ids(&self, item_ids: &mut [ItemId]) -> usize
pub fn depth_image_handle(&self, depth_image_id: ItemId) -> Result<Self>
pub fn number_of_thumbnails(&self) -> usize
pub fn thumbnail_ids(&self, item_ids: &mut [ItemId]) -> usize
pub fn thumbnail(&self, thumbnail_id: ItemId) -> Result<Self>
pub fn number_of_metadata_blocks<T>(&self, type_filter: T) -> i32where T: Into<FourCC>,
pub fn metadata_block_ids<T>( &self, item_ids: &mut [ItemId], type_filter: T ) -> usizewhere T: Into<FourCC>,
pub fn metadata_type(&self, metadata_id: ItemId) -> Option<&str>
pub fn metadata_content_type(&self, metadata_id: ItemId) -> Option<&str>
pub fn metadata_size(&self, metadata_id: ItemId) -> usize
pub fn metadata(&self, metadata_id: ItemId) -> Result<Vec<u8>>
pub fn color_profile_raw(&self) -> Option<ColorProfileRaw>
sourcepub fn color_profile_nclx(&self) -> Option<ColorProfileNCLX>
pub fn color_profile_nclx(&self) -> Option<ColorProfileNCLX>
NOTE: This function does currently not return an NCLX profile if it is stored in the image bitstream. Only NCLX profiles stored as colr boxes are returned. This may change in the future.