#[non_exhaustive]pub struct SegmentationMatte {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub matte_type: AuxiliaryImageType,
}Expand description
A decoded segmentation matte from a HEIC file.
iPhone cameras store portrait mattes, skin/hair/teeth/glasses mattes as monochrome HEVC auxiliary images. Each matte is a grayscale mask scaled to 8-bit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: Vec<u8>Grayscale mask pixels (u8, 0 = background, 255 = foreground).
width: u32Matte width in pixels.
height: u32Matte height in pixels.
matte_type: AuxiliaryImageTypeWhat this matte segments.
Trait Implementations§
Source§impl Clone for SegmentationMatte
impl Clone for SegmentationMatte
Source§fn clone(&self) -> SegmentationMatte
fn clone(&self) -> SegmentationMatte
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SegmentationMatte
impl RefUnwindSafe for SegmentationMatte
impl Send for SegmentationMatte
impl Sync for SegmentationMatte
impl Unpin for SegmentationMatte
impl UnsafeUnpin for SegmentationMatte
impl UnwindSafe for SegmentationMatte
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