pub struct Xmp {}
Expand description
An interface to extract information from XMP metadata.
Implementations§
source§impl Xmp
impl Xmp
sourcepub fn from_extended(_xmp_standard: &Data, _xmp_extended: &Data) -> Self
pub fn from_extended(_xmp_standard: &Data, _xmp_extended: &Data) -> Self
Create from standard XMP + extended XMP data.
see XMP Specification Part 3: Storage in files, Section 1.1.3.1: Extended XMP in JPEG
sourcepub fn get_gainmap_info_hdrgm(&self, _info: &mut GainmapInfo) -> bool
pub fn get_gainmap_info_hdrgm(&self, _info: &mut GainmapInfo) -> bool
Extract HDRGM gainmap parameters.
sourcepub fn get_gainmap_info_hdr_gain_map(&self, _info: &mut GainmapInfo) -> bool
pub fn get_gainmap_info_hdr_gain_map(&self, _info: &mut GainmapInfo) -> bool
Extract HDRGainMap
gainmap parameters.
sourcepub fn get_container_gainmap_location(
&self,
_offset: &mut usize,
_size: &mut usize
) -> bool
pub fn get_container_gainmap_location( &self, _offset: &mut usize, _size: &mut usize ) -> bool
If this includes GContainer
metadata and the GContainer
contains an item with semantic
GainMap
and Mime of image/jpeg, then return true, and populate |offset| and |size| with
that item’s offset (from the end of the primary JPEG image’s EndOfImage
), and the size of
the gainmap.
sourcepub fn get_extended_xmp_guid(&self) -> String
pub fn get_extended_xmp_guid(&self) -> String
Return the GUID of an Extended XMP if present, or null otherwise.
Auto Trait Implementations§
impl Freeze for Xmp
impl RefUnwindSafe for Xmp
impl Send for Xmp
impl Sync for Xmp
impl Unpin for Xmp
impl UnwindSafe for Xmp
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