mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add gif-multiple-loop-counts comments
This commit is contained in:
1 parent
bea6378a8a
commit
d1133b105e
1 file changed
+25
@@ -1,5 +1,30 @@
|
||||
# Feed this file to script/make-artificial.go
|
||||
|
||||
# This GIF image contains multiple "loop count" entries.
|
||||
#
|
||||
# The GIF89a specification doesn't discuss loop counts: it is an extension to
|
||||
# the format. Neither the official spec nor unofficial documents (e.g.
|
||||
# http://www.vurdalakov.net/misc/gif/netscape-looping-application-extension)
|
||||
# state how to interpret having more than one of them: whether to accept the
|
||||
# first, accept the last, reject the overall animated image as invalid, etc.
|
||||
# Different spec-compliant decoders can choose different policies.
|
||||
#
|
||||
# Wuffs reports the most recent loop count seen, which may change over the
|
||||
# course of stepping through the frames. Programs that use Wuffs may enforce
|
||||
# their own policy (e.g. accept first, accept last, etc.) on top of that.
|
||||
#
|
||||
# Note also that the loop count as written in the GIF file format has "excludes"
|
||||
# semantics: it is the number of times to repeat the animation excluding the
|
||||
# initial play-through (and 0 means to loop forever). An "excludes" loop count
|
||||
# of 3 means to play each animation frame 4 times. An absent loop count means to
|
||||
# play each animation frame exactly once.
|
||||
#
|
||||
# Wuffs' API provides "includes" semantics, across all of its supported
|
||||
# animation file formats. An "includes" loop count of 3 means to play each
|
||||
# animation frame 3 times. There is no absent option. Wuffs' numbers and GIF's
|
||||
# numbers will generally differ by 1 (other than the absent case, and both
|
||||
# using 0 to mean forever).
|
||||
|
||||
make gif
|
||||
|
||||
header
|
||||
|
||||
Reference in new issue
Block a user