animation 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #------------------------------------------------------------------------------
  2. # animation: file(1) magic for animation/movie formats
  3. #
  4. # animation formats
  5. # MPEG, FLI, DL originally from vax@ccwf.cc.utexas.edu (VaX#n8)
  6. # FLC, SGI, Apple originally from Daniel Quinlan (quinlan@yggdrasil.com)
  7. # MPEG animation format
  8. 0 string \000\000\001\263 MPEG file
  9. # FLI animation format
  10. 4 leshort 0xAF11 FLI file
  11. >6 leshort x - %d frames,
  12. >8 leshort x width=%d pixels,
  13. >10 leshort x height=%d pixels,
  14. >12 leshort x depth=%d,
  15. >16 leshort x ticks/frame=%d
  16. # FLC animation format
  17. 4 leshort 0xAF12 FLC file
  18. >6 leshort x - %d frames
  19. >8 leshort x width=%d pixels,
  20. >10 leshort x height=%d pixels,
  21. >12 leshort x depth=%d,
  22. >16 leshort x ticks/frame=%d
  23. # DL animation format
  24. # XXX - collision with most `mips' magic
  25. #
  26. # I couldn't find a real magic number for these, however, this
  27. # -appears- to work. Note that it might catch other files, too, so be
  28. # careful!
  29. #
  30. # Note that title and author appear in the two 20-byte chunks
  31. # at decimal offsets 2 and 22, respectively, but they are XOR'ed with
  32. # 255 (hex FF)! The DL format is really bad.
  33. #
  34. #0 byte 1 DL version 1, medium format (160x100, 4 images/screen)
  35. #>42 byte x - %d screens,
  36. #>43 byte x %d commands
  37. #0 byte 2 DL version 2
  38. #>1 byte 1 - large format (320x200,1 image/screen),
  39. #>1 byte 2 - medium format (160x100,4 images/screen),
  40. #>1 byte >2 - unknown format,
  41. #>42 byte x %d screens,
  42. #>43 byte x %d commands
  43. # Based on empirical evidence, DL version 3 have several nulls following the
  44. # \003. Most of them start with non-null values at hex offset 0x34 or so.
  45. #0 string \3\0\0\0\0\0\0\0\0\0\0\0 DL version 3
  46. # SGI and Apple formats
  47. 0 string MOVI Silicon Graphics movie file
  48. 4 string moov Apple QuickTime movie file (moov)
  49. 4 string mdat Apple QuickTime movie file (mdat)