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: FourCC
An 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: String
For EXIF, the content type is ""
.
For XMP, the content type is "application/rdf+xml"
.
uri_type: String
An 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 Freeze for ImageMetadata
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