iff 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. !:mime audio/x-aiff
  15. >8 string AIFC \b, AIFF-C compressed audio
  16. !:mime audio/x-aiff
  17. >8 string 8SVX \b, 8SVX 8-bit sampled sound voice
  18. !:mime audio/x-aiff
  19. >8 string 16SV \b, 16SV 16-bit sampled sound voice
  20. >8 string SAMP \b, SAMP sampled audio
  21. >8 string MAUD \b, MAUD MacroSystem audio
  22. >8 string SMUS \b, SMUS simple music
  23. >8 string CMUS \b, CMUS complex music
  24. # image formats
  25. >8 string ILBMBMHD \b, ILBM interleaved image
  26. >>20 beshort x \b, %d x
  27. >>22 beshort x %d
  28. >8 string RGBN \b, RGBN 12-bit RGB image
  29. >8 string RGB8 \b, RGB8 24-bit RGB image
  30. >8 string DEEP \b, DEEP TVPaint/XiPaint image
  31. >8 string DR2D \b, DR2D 2-D object
  32. >8 string TDDD \b, TDDD 3-D rendering
  33. >8 string LWOB \b, LWOB 3-D object
  34. >8 string LWO2 \b, LWO2 3-D object, v2
  35. >8 string LWLO \b, LWLO 3-D layered object
  36. >8 string REAL \b, REAL Real3D rendering
  37. >8 string MC4D \b, MC4D MaxonCinema4D rendering
  38. >8 string ANIM \b, ANIM animation
  39. >8 string YAFA \b, YAFA animation
  40. >8 string SSA\ \b, SSA super smooth animation
  41. >8 string ACBM \b, ACBM continuous image
  42. >8 string FAXX \b, FAXX fax image
  43. # other formats
  44. >8 string FTXT \b, FTXT formatted text
  45. >8 string CTLG \b, CTLG message catalog
  46. >8 string PREF \b, PREF preferences
  47. >8 string DTYP \b, DTYP datatype description
  48. >8 string PTCH \b, PTCH binary patch
  49. >8 string AMFF \b, AMFF AmigaMetaFile format
  50. >8 string WZRD \b, WZRD StormWIZARD resource
  51. >8 string DOC\ \b, DOC desktop publishing document
  52. # These go at the end of the iff rules
  53. #
  54. # I don't see why these might collide with anything else.
  55. #
  56. # Interactive Fiction related formats
  57. #
  58. >8 string IFRS \b, Blorb Interactive Fiction
  59. >>24 string Exec with executable chunk
  60. >8 string IFZS \b, Z-machine or Glulx saved game file (Quetzal)