Struct ExifReader

Source
pub struct ExifReader { /* private fields */ }
Expand description

Stateful EXIF reader for processing JPEG-embedded EXIF data ExifTool: lib/Image/ExifTool/Exif.pm ProcessExif function architecture

Implementations§

Source§

impl ExifReader

Source

pub fn process_binary_data_with_dependencies( &mut self, data: &[u8], offset: usize, size: usize, table: &BinaryDataTable, ) -> Result<()>

Process binary data with variable-length formats and DataMember dependencies ExifTool: ProcessBinaryData with two-phase processing for DataMember tags Reference: third-party/exiftool/lib/Image/ExifTool.pm:9750+ ProcessBinaryData function Milestone 12: Variable ProcessBinaryData implementation

Source§

impl ExifReader

Source

pub fn process_exif_ifd( &mut self, ifd_offset: usize, ifd_name: &str, ) -> Result<()>

Process standard EXIF IFD (renamed from parse_ifd) ExifTool: ProcessExif function for standard IFD processing

Source§

impl ExifReader

Source

pub fn select_processor(&self, dir_name: &str, tag_id: Option<u16>) -> String

Select appropriate processor for a directory ExifTool: $$subdir{ProcessProc} || $$tagTablePtr{PROCESS_PROC} || &ProcessExif Phase 5: Simplified to return processor name string

Source

pub fn configure_processor_dispatch(&mut self, dispatch: ProcessorDispatch)

Configure processor dispatch for specific table/tag combinations ExifTool: Runtime processor configuration

Source

pub fn add_subdirectory_override(&mut self, tag_id: u16, processor: String)

Add SubDirectory processor override ExifTool: SubDirectory ProcessProc configuration Phase 5: Simplified to use processor name strings

Source§

impl ExifReader

Source

pub fn store_tag_with_precedence( &mut self, tag_id: u16, value: TagValue, source_info: TagSourceInfo, )

Store tag with conflict resolution and proper namespace handling ExifTool behavior: Main EXIF tags take precedence over MakerNote tags with same ID

Source§

impl ExifReader

Source

pub fn new() -> Self

Create new EXIF reader

Source

pub fn set_file_type(&mut self, file_type: String)

Set the original file type from detection

Source

pub fn get_overridden_file_type(&self) -> Option<String>

Get the overridden file type if any

Source

pub fn parse_exif_data(&mut self, exif_data: &[u8]) -> Result<()>

Parse EXIF data from JPEG APP1 segment after “Exif\0\0” ExifTool: lib/Image/ExifTool/Exif.pm:6172 ProcessExif entry point

Source

pub fn build_composite_tags(&mut self)

Build composite tags from extracted tags Milestone 11.5: Multi-pass dependency resolution for composite-on-composite dependencies ExifTool: lib/Image/ExifTool.pm BuildCompositeTags function This is now a thin facade that delegates to the composite_tags module

Source

pub fn get_tag_by_id(&self, tag_id: u16) -> Option<&TagValue>

Get extracted tag by ID

Source

pub fn get_all_tags(&self) -> HashMap<String, TagValue>

Get all extracted tags with their names (conversions already applied during extraction) Returns tags with group prefixes (e.g., “EXIF:Make”, “GPS:GPSLatitude”, “Composite:ImageSize”) matching ExifTool’s -G mode behavior Milestone 8f: Now includes composite tags with “Composite:” prefix

Source

pub fn get_all_tag_entries(&mut self) -> Vec<TagEntry>

Get all tags as TagEntry objects with both value and print representations This is the new API that returns both ValueConv and PrintConv results Milestone 8b: TagEntry API implementation

Source

pub fn get_warnings(&self) -> &[String]

Get parsing warnings

Source

pub fn get_header(&self) -> Option<&TiffHeader>

Get TIFF header information

Source

pub fn get_current_path(&self) -> String

Get current directory path for debugging ExifTool: $$self{PATH} shows directory hierarchy

Source

pub fn get_processing_stats(&self) -> HashMap<String, usize>

Get processing statistics for –show-missing functionality

Source

pub fn get_processor_dispatch(&self) -> &ProcessorDispatch

Get current processor dispatch configuration

Source

pub fn set_test_data(&mut self, data: Vec<u8>)

Test helper: Set test data (public for integration tests)

Source

pub fn set_test_header(&mut self, header: TiffHeader)

Test helper: Set TIFF header (public for integration tests)

Source

pub fn get_extracted_tags(&self) -> &HashMap<u16, TagValue>

Test helper: Get extracted tags (public for integration tests)

Source

pub fn get_tag_sources(&self) -> &HashMap<u16, TagSourceInfo>

Test helper: Get tag sources (public for integration tests)

Source

pub fn get_data_len(&self) -> usize

Test helper: Get data length (public for integration tests)

Source

pub fn get_data(&self) -> &[u8]

Get access to the raw EXIF data (public for Canon module)

Trait Implementations§

Source§

impl Debug for ExifReader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExifReader

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more