Struct libheif_rs::ImageMetadata
source · pub struct ImageMetadata {
pub item_type: FourCC,
pub content_type: String,
pub uri_type: String,
pub raw_data: Vec<u8>,
}Fields§
§item_type: FourCCAn instance of FourCC indicating the type of the metadata,
as specified in the HEIF file.
Exif data will have the type b"Exif".
content_type: StringFor EXIF, the content type is "".
For XMP, the content type is "application/rdf+xml".
uri_type: StringAn absolute URI. Only valid for item_type == “uri”.
raw_data: Vec<u8>The data is exactly as stored in the HEIF file.
For Exif data, you probably have to skip the first four bytes of the data, since they indicate the offset to the start of the TIFF header of the Exif data.
Auto Trait Implementations§
impl RefUnwindSafe for ImageMetadata
impl Send for ImageMetadata
impl Sync for ImageMetadata
impl Unpin for ImageMetadata
impl UnwindSafe for ImageMetadata
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