pub struct Metadata {
pub orientation: Orientation,
pub content_light_level: Option<ContentLightLevel>,
pub exif: Option<Vec<u8>>,
}Expand description
All optional metadata passed to the encoder, threaded through [crate::EncodeConfig].
Fields§
§orientation: OrientationDisplay orientation (irot/imir). Default Normal writes no transform.
content_light_level: Option<ContentLightLevel>HDR content light level (clli). None writes no box.
exif: Option<Vec<u8>>Raw EXIF/TIFF payload (the bytes after the "Exif\0\0" identifier — i.e. the
TIFF header onward). None writes no EXIF item. The encoder prepends the
4-byte ItemInfo offset field required by the HEIF Exif item format.
Implementations§
Source§impl Metadata
impl Metadata
pub fn new() -> Self
pub fn with_orientation(self, o: Orientation) -> Self
pub fn with_content_light_level(self, cll: ContentLightLevel) -> Self
pub fn with_exif(self, exif: Vec<u8>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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