exif: format specification

This page hosts a formal specification of exif using Kaitai Struct. This specification can be automatically translated into a variety of programming languages to get a parsing library.

Block diagram

Format specification in Kaitai Struct YAML

# Temporary solution, see this -> https://github.com/kaitai-io/kaitai_struct/issues/17
meta:
  id: exif
  imports:
    - exif_le
    - exif_be
seq:
  - id: endianness
    type: u2le
  - id: body
    type:
      switch-on: endianness
      cases:
        0x4949: exif_le
        0x4d4d: exif_be