]> granicus.if.org Git - file/commitdiff
Initial revision
authorChristos Zoulas <christos@zoulas.com>
Mon, 17 Oct 1994 01:22:38 +0000 (01:22 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 17 Oct 1994 01:22:38 +0000 (01:22 +0000)
magic/Magdir/animation [new file with mode: 0644]

diff --git a/magic/Magdir/animation b/magic/Magdir/animation
new file mode 100644 (file)
index 0000000..98f2374
--- /dev/null
@@ -0,0 +1,32 @@
+#
+# animation formats, originally from vax@ccwf.cc.utexas.edu (VaX#n8)
+#
+0      string          \000\000\001\263        MPEG file
+4      leshort         0xAF11                  FLI file
+>6     leshort         x                       , %d frames
+>8     leshort         x                       , width=%d pixels
+>10    leshort         x                       , height=%d pixels
+>12    leshort         x                       , depth=%d
+>16    leshort         x                       , ticks/frame=%d
+#
+# I couldn't find a real magic number for these, however, this
+# -appears- to work.  Note that it might catch other files, too,
+# so BE CAREFUL!
+#
+# Note that title and author appear in the two 20-byte chunks
+# at decimal offsets 2 and 22, respectively, but they are XOR'ed with
+# 255 (hex FF)! DL format SUCKS BIG ROCKS.
+#
+0      byte            1                       DL file version 1 , medium format (160x100, 4 images/screen)
+>42    byte            x                       , %d screens
+>43    byte            x                       , %d commands
+0      byte            2                       DL file version 2
+>1     byte            1                       , large format (320x200,1 image/screen)
+>1     byte            2                       , medium format (160x100,4 images/screen)
+>1     byte            >2                      , unknown format
+>42    byte            x                       , %d screens
+>43    byte            x                       , %d commands
+# This is total guesswork here.
+# Based on empirical evidence, version 3's have several nulls following it.
+# Most of them start with non-null values at hex offset 0x34 or so.
+0      string          \3\0\0\0\0\0\0\0\0\0\0\0                        DL file version 3