final int standardTiffMarker = 0x002A;
final int olympusRawTiffMarker = 0x4F52; // for ORF files
final int panasonicRawTiffMarker = 0x0055; // for RW2 files
if (marker != standardTiffMarker && marker != olympusRawTiffMarker && marker != panasonicRawTiffMarker) {
throw new TiffProcessingException("Unexpected TIFF marker: 0x" + Integer.toHexString(marker));
}
}