pub struct ExifReader;Expand description
EXIF metadata reader.
Implementations§
Source§impl ExifReader
impl ExifReader
Sourcepub fn read(data: &[u8]) -> Result<Vec<Tag>>
pub fn read(data: &[u8]) -> Result<Vec<Tag>>
Parse EXIF data from a byte slice (starting at the TIFF header).
Sourcepub fn read_with_base(data: &[u8], base: usize) -> Result<Vec<Tag>>
pub fn read_with_base(data: &[u8], base: usize) -> Result<Vec<Tag>>
Parse EXIF data, adding base (the TIFF header’s offset within the file) to
offset-type tags so they read as absolute file offsets, matching ExifTool.
Sourcepub fn read_as_named_ifd(data: &[u8], ifd_name: &str) -> Vec<Tag>
pub fn read_as_named_ifd(data: &[u8], ifd_name: &str) -> Vec<Tag>
Parse a TIFF where IFD0 is treated as a named IFD (e.g. “GPS”, “ExifIFD”). Used for CR3 CMT4 (GPS-only TIFF) and CMT2 (ExifIFD-only TIFF). Does no MakerNote/IFD1 processing.
Sourcepub fn read_ifd_at(
data: &[u8],
little_endian: bool,
offset: u32,
ifd_name: &str,
) -> Vec<Tag>
pub fn read_ifd_at( data: &[u8], little_endian: bool, offset: u32, ifd_name: &str, ) -> Vec<Tag>
Parse a single IFD located at offset inside a TIFF-like container whose
header this reader cannot parse itself (RW2 uses magic 0x55 instead of
0x2A). Offsets inside the IFD stay relative to the start of data, which
is what a TIFF IFD always uses. No ExifByteOrder and no IFD1 chaining.
Auto Trait Implementations§
impl Freeze for ExifReader
impl RefUnwindSafe for ExifReader
impl Send for ExifReader
impl Sync for ExifReader
impl Unpin for ExifReader
impl UnsafeUnpin for ExifReader
impl UnwindSafe for ExifReader
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