Add wuffs_gif__quirk_reject_empty_palette

This commit is contained in:
Nigel Tao committed 2019-05-04 13:49:22 +10:00
1 parent 1311445408
commit 746681ea68
6 files changed
+177 -21

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

@@ -0,0 +1,33 @@
# Feed this file to script/make-artificial.go
# This GIF image has two frames. There is no global palette, and only the first
# frame has a local palette.
#
# Wuffs implicitly gives the second frame an all-opaque-black palette by
# default. Wuffs can be configured to reject it instead, by enabling a 'quirk'.
make gif
header
image {
imageWidthHeight 1 1
}
frame {
frameLeftTopWidthHeight 0 0 1 1
palette {
0x00 0x00 0xFF
0x11 0x00 0xFF
0x22 0x00 0xFF
0x33 0x00 0xFF
}
}
lzw 2 0x00
frame {
frameLeftTopWidthHeight 0 0 1 1
}
lzw 2 0x00
trailer