Spin out a std/lzw package

This commit is contained in:
Nigel Tao committed 2018-06-02 14:15:09 +10:00
1 parent 3e1cdd1a83
commit 6d510bcfcb
13 files changed
+3973 -565

No files matched your search

+3 -1
View File
@@ -14,6 +14,8 @@
packageid "gif "
use "std/lzw"
pub error "bad block"
pub error "bad extension label"
pub error "bad graphic control"
@@ -78,7 +80,7 @@ pub struct decoder?(
// palettes[0] and palettes[1] are the Global and Local Color Table.
palettes array[2] array[4 * 256] base.u8,
lzw lzw_decoder,
lzw lzw.decoder,
)
// TODO: should dst be an nptr instead of a ptr?