iff 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #------------------------------------------------------------------------------
  2. # $File: iff,v 1.14 2015/09/07 10:03:21 christos Exp $
  3. # iff: file(1) magic for Interchange File Format (see also "audio" & "images")
  4. #
  5. # Daniel Quinlan (quinlan@yggdrasil.com) -- IFF was designed by Electronic
  6. # Arts for file interchange. It has also been used by Apple, SGI, and
  7. # especially Commodore-Amiga.
  8. #
  9. # IFF files begin with an 8 byte FORM header, followed by a 4 character
  10. # FORM type, which is followed by the first chunk in the FORM.
  11. 0 string FORM IFF data
  12. #>4 belong x \b, FORM is %d bytes long
  13. # audio formats
  14. >8 string AIFF \b, AIFF audio
  15. !:mime audio/x-aiff
  16. >8 string AIFC \b, AIFF-C compressed audio
  17. !:mime audio/x-aiff
  18. >8 string 8SVX \b, 8SVX 8-bit sampled sound voice
  19. !:mime audio/x-aiff
  20. >8 string 16SV \b, 16SV 16-bit sampled sound voice
  21. >8 string SAMP \b, SAMP sampled audio
  22. >8 string MAUD \b, MAUD MacroSystem audio
  23. >8 string SMUS \b, SMUS simple music
  24. >8 string CMUS \b, CMUS complex music
  25. # image formats
  26. >8 string ILBMBMHD \b, ILBM interleaved image
  27. >>20 beshort x \b, %d x
  28. >>22 beshort x %d
  29. >8 string RGBN \b, RGBN 12-bit RGB image
  30. >8 string RGB8 \b, RGB8 24-bit RGB image
  31. >8 string DEEP \b, DEEP TVPaint/XiPaint image
  32. >8 string DR2D \b, DR2D 2-D object
  33. >8 string TDDD \b, TDDD 3-D rendering
  34. >8 string LWOB \b, LWOB 3-D object
  35. >8 string LWO2 \b, LWO2 3-D object, v2
  36. >8 string LWLO \b, LWLO 3-D layered object
  37. >8 string REAL \b, REAL Real3D rendering
  38. >8 string MC4D \b, MC4D MaxonCinema4D rendering
  39. >8 string ANIM \b, ANIM animation
  40. >8 string YAFA \b, YAFA animation
  41. >8 string SSA\ \b, SSA super smooth animation
  42. >8 string ACBM \b, ACBM continuous image
  43. >8 string FAXX \b, FAXX fax image
  44. # other formats
  45. >8 string FTXT \b, FTXT formatted text
  46. >8 string CTLG \b, CTLG message catalog
  47. >8 string PREF \b, PREF preferences
  48. >8 string DTYP \b, DTYP datatype description
  49. >8 string PTCH \b, PTCH binary patch
  50. >8 string AMFF \b, AMFF AmigaMetaFile format
  51. >8 string WZRD \b, WZRD StormWIZARD resource
  52. >8 string DOC\ \b, DOC desktop publishing document
  53. >8 string WVQA \b, Westwood Studios VQA Multimedia,
  54. >>24 leshort x %d video frames,
  55. >>26 leshort x %d x
  56. >>28 leshort x %d
  57. >8 string MOVE \b, Wing Commander III Video
  58. >>12 string _PC_ \b, PC version
  59. >>12 string 3DO_ \b, 3DO version
  60. # These go at the end of the iff rules
  61. #
  62. # David Griffith <dave@661.org>
  63. # I don't see why these might collide with anything else.
  64. #
  65. # Interactive Fiction related formats
  66. #
  67. >8 string IFRS \b, Blorb Interactive Fiction
  68. >>24 string Exec with executable chunk
  69. >8 string IFZS \b, Z-machine or Glulx saved game file (Quetzal)
  70. !:mime application/x-blorb