Fujifilm RAF

RAF, or Fujifilm RAW, is a raw image format used by some Fujifilm digital cameras.

Format
Byte order is Motorola (Big Endian)


 * 16 bytes string to identify the file (magic)
 * 4 bytes
 * Format version. E.g. " "
 * 8 bytes
 * Camera number ID. E.g. " "
 * 32 bytes for the camera string, \0 terminated
 * offset directory
 * Version (4 bytes) for the directory. E.g. " " or " ".
 * 20 bytes "unknown"
 * Jpeg image offset (4 bytes)
 * Jpeg Image length (4 bytes)
 * CFA Header Offset (4 bytes)
 * CFA Header Length (4 bytes)
 * CFA Offset (4 bytes)
 * CFA Length (4 bytes)
 * rest unused
 * Jpeg image offset
 * Exif JFIF with thumbnail + preview
 * CFA Header offset - Big Endian
 * 4 bytes: count of records
 * Records, one after the other
 * 2 bytes: tag ID
 * 2 bytes: size of record (N)
 * N bytes: data
 * CFA Offset
 * Uncompressed RAW
 * Uncompressed RAW

Software

 * Refer to Cameras and Digital Image Sensors.

Sample files

 * Fujifilm X-E1 Review → Sample RAW Images
 * Fujifilm X-T1 Sample Images → Fujifilm X-T1 RAW Images
 * RAW-Samples: Fuji
 * http://digikam3rdparty.free.fr/TEST_IMAGES/ → RAW/HORIZONTAL/, RAW/VERTICAL/, FUJI-X10/
 * https://telparia.com/fileFormatSamples/image/raf/

Links

 * Formats d'image - RAW (from archive.org)