Struct libheif_rs::ImageHandle [−][src]
Implementations
impl<'a> ImageHandle<'a>
[src]
pub fn decode(
&self,
color_space: ColorSpace,
ignore_transformations: bool
) -> Result<Image>
[src]
&self,
color_space: ColorSpace,
ignore_transformations: bool
) -> Result<Image>
pub fn width(&self) -> u32
[src]
pub fn height(&self) -> u32
[src]
pub fn has_alpha_channel(&self) -> bool
[src]
pub fn is_primary(&self) -> bool
[src]
pub fn luma_bits_per_pixel(&self) -> u8
[src]
pub fn chroma_bits_per_pixel(&self) -> u8
[src]
pub fn ispe_width(&self) -> i32
[src]
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.
pub fn ispe_height(&self) -> i32
[src]
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
[src]
pub fn number_of_depth_images(&self) -> i32
[src]
pub fn list_of_depth_image_ids(&self, count: usize) -> Vec<ItemId>
[src]
👎 Deprecated since 0.14.0:
Please use the depth_image_ids
method instead
pub fn depth_image_ids(&self, item_ids: &mut [ItemId]) -> usize
[src]
pub fn depth_image_handle(
&self,
depth_image_id: ItemId
) -> Result<ImageHandle<'_>>
[src]
&self,
depth_image_id: ItemId
) -> Result<ImageHandle<'_>>
pub fn number_of_thumbnails(&self) -> usize
[src]
pub fn list_of_thumbnail_ids(&self, count: usize) -> Vec<ItemId>
[src]
👎 Deprecated since 0.14.0:
Please use the thumbnail_ids
method instead
pub fn thumbnail_ids(&self, item_ids: &mut [ItemId]) -> usize
[src]
pub fn thumbnail(&self, thumbnail_id: ItemId) -> Result<ImageHandle<'_>>
[src]
pub fn number_of_metadata_blocks(&self, type_filter: &str) -> i32
[src]
pub fn list_of_metadata_block_ids(
&self,
type_filter: &str,
count: usize
) -> Vec<ItemId>
[src]
&self,
type_filter: &str,
count: usize
) -> Vec<ItemId>
👎 Deprecated since 0.14.0:
Please use the metadata_block_ids
method instead
pub fn metadata_block_ids(
&self,
type_filter: &str,
item_ids: &mut [ItemId]
) -> usize
[src]
&self,
type_filter: &str,
item_ids: &mut [ItemId]
) -> usize
pub fn metadata_type(&self, metadata_id: ItemId) -> Option<&str>
[src]
pub fn metadata_content_type(&self, metadata_id: ItemId) -> Option<&str>
[src]
pub fn metadata_size(&self, metadata_id: ItemId) -> usize
[src]
pub fn metadata(&self, metadata_id: ItemId) -> Result<Vec<u8>>
[src]
Trait Implementations
impl<'a> Drop for ImageHandle<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ImageHandle<'a>
impl<'a> !Send for ImageHandle<'a>
impl<'a> !Sync for ImageHandle<'a>
impl<'a> Unpin for ImageHandle<'a>
impl<'a> !UnwindSafe for ImageHandle<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,