# BEGIN DMI
version = 4.0
state = ""
dirs = 4
frames = 4
delay = 1,1,1,1
loop = 5
rewind = 1
# END DMI
It seems to look like this. The topmost node contains information about the version. Then there is a node for each icon state. These nodes describe the number of directions(1,4,8), the number of frames, the delay for each frame column, how often the animation should be looped and whether the animation should be rewinded.
Did I miss anything there? Also, I can't seem to find the size of the slices(32x32 by default). Does anyone know how that is stored?
There should be 'width' and 'height' parameters in the file, at least when the size is anything other than 32x32.