Skip to main content

parse_exif_for_apple_hdr

Function parse_exif_for_apple_hdr 

Source
pub fn parse_exif_for_apple_hdr(exif: &[u8]) -> Option<AppleHdrInfo>
Expand description

Extract Apple HDR info directly from EXIF TIFF bytes (e.g. the payload of a HEIF Exif item or a JPEG APP1 segment, with any leading TIFF-offset prefix tolerated).

Walks IFD0 → Exif sub-IFD (0x8769) → MakerNote (0x927C) → Apple iOS IFD. Returns None if the bytes are not a parseable TIFF, lack an Apple MakerNote, or carry no HDR tags.