iff 1.0 KB

12345678910111213141516171819202122232425262728
  1. #------------------------------------------------------------------------------
  2. # iff: file(1) magic for Interchange File Format (see also "audio" & "images")
  3. #
  4. # Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
  5. # Arts for file interchange. It has also been used by Apple, SGI, and
  6. # especially Commodore-Amiga.
  7. #
  8. # IFF files begin with an 8 byte FORM header, followed by a 4 character
  9. # FORM type, which is followed by the first chunk in the FORM.
  10. 0 string FORM IFF data
  11. #>4 belong x \b, FORM is %d bytes long
  12. # audio formats
  13. >8 string AIFF \b, AIFF audio
  14. >8 string AIFC \b, AIFF-C compressed audio
  15. >8 string 8SVX \b, 8SVX 8-bit sampled sound voice
  16. >8 string SAMP \b, SAMP sampled audio
  17. # image formats
  18. >8 string ILBMBMHD \b, ILBM interleaved image
  19. >>20 beshort x \b, %d x
  20. >>22 beshort x %d
  21. >8 string RGBN \b, RGBN 12-bit RGB image
  22. >8 string RGB8 \b, RGB8 24-bit RGB image
  23. >8 string DR2D \b, DR2D 2-D object
  24. >8 string TDDD \b, TDDD 3-D rendering
  25. # other formats
  26. >8 string FTXT \b, FTXT formatted text