Decode the rest of a GIF.

Passing an Image Descriptor's block data payload to the LZW decoder is
still a TODO.
This commit is contained in:
Nigel Tao committed 2017-06-22 11:25:07 +10:00
1 parent 17e47fbc1e
commit 8134c89786
6 files changed
+289 -10

No files matched your search

+10
View File
@@ -1033,6 +1033,16 @@ func (g *gen) writeCallSuspendibles(n *a.Expr, depth uint32) error {
g.pkgName, g.perFunc.funk.Receiver().String(g.tm), aPrefix)
g.writes("if (status) { goto cleanup0; }\n")
} else if isThisMethod(g.tm, n, "decode_extension") {
g.printf("status = puffs_%s_%s_decode_extension(self, %ssrc);\n",
g.pkgName, g.perFunc.funk.Receiver().String(g.tm), aPrefix)
g.writes("if (status) { goto cleanup0; }\n")
} else if isThisMethod(g.tm, n, "decode_id") {
g.printf("status = puffs_%s_%s_decode_id(self, %ssrc);\n",
g.pkgName, g.perFunc.funk.Receiver().String(g.tm), aPrefix)
g.writes("if (status) { goto cleanup0; }\n")
} else {
// TODO: fix this.
//