Handle gif subimage animation delay correctly.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 11 Jun 2011 23:03:16 +0000 (19:03 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 11 Jun 2011 23:03:16 +0000 (19:03 -0400)
commit1100a63ce53c2445fe7f3064b5a0812eb8bcc269
tree6706af1c2d033116e27eb74354ac66365b733532
parentdef722bf0990b94cebf4c0761cd99dc3c0de6471
Handle gif subimage animation delay correctly.

* lisp/image.el (image-animated-p): Return animation delay in seconds.
Avoid bit manipulation in Lisp; use `delay' entry in the metadata.
(image-animate-timeout): Remove DELAY argument.  Use
image-animated-p to get animation delay for each frame.
(image-animate): Caller changed.

* src/image.c (gif_load): Add animation frame delay to the metadata.
(syms_of_image): Use DEFSYM.  New symbol `delay'.
lisp/ChangeLog
lisp/image.el
src/ChangeLog
src/image.c