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§
Sourcefn process_raw(&self, reader: &mut ExifReader, data: &[u8]) -> Result<()>
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
Sourcefn validate_format(&self, data: &[u8]) -> bool
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