Trait RawFormatHandler

Source
pub trait RawFormatHandler: Send + Sync {
    // Required methods
    fn process_raw(&self, reader: &mut ExifReader, data: &[u8]) -> Result<()>;
    fn name(&self) -> &'static str;
    fn validate_format(&self, data: &[u8]) -> bool;
}
Expand description

Trait for manufacturer-specific RAW format handlers Each RAW format (Kyocera, Canon, Nikon, etc.) implements this trait ExifTool: Each manufacturer module has ProcessBinaryData or custom processing

Required Methods§

Source

fn process_raw(&self, reader: &mut ExifReader, data: &[u8]) -> Result<()>

Process RAW format data and extract metadata ExifTool: Usually ProcessBinaryData but can be custom for complex formats

Source

fn name(&self) -> &'static str

Get handler name for debugging and logging

Source

fn validate_format(&self, data: &[u8]) -> bool

Validate that this data is the correct format for this handler ExifTool: Each module has format validation logic

Implementors§