Add a gif.decoder buffer for uncompressed data

This commit is contained in:
Nigel Tao committed 2018-05-12 21:50:27 +10:00
1 parent a6bf59006f
commit 2df6ea4b7a
3 files changed
+8

No files matched your search

+2
View File
@@ -1148,6 +1148,8 @@ typedef struct {
uint32_t f_frame_left;
uint32_t f_frame_width;
uint32_t f_frame_height;
uint32_t f_uncompressed_index;
uint8_t f_uncompressed[4096];
uint8_t f_gct[768];
uint8_t f_lct[768];
wuffs_gif__lzw_decoder f_lzw;
+2
View File
@@ -1148,6 +1148,8 @@ typedef struct {
uint32_t f_frame_left;
uint32_t f_frame_width;
uint32_t f_frame_height;
uint32_t f_uncompressed_index;
uint8_t f_uncompressed[4096];
uint8_t f_gct[768];
uint8_t f_lct[768];
wuffs_gif__lzw_decoder f_lzw;
+4
View File
@@ -50,6 +50,10 @@ pub struct decoder?(
frame_width base.u32[..65535],
frame_height base.u32[..65535],
// TODO: use these fields.
uncompressed_index base.u32[..4096],
uncompressed array[4096] base.u8,
// gct and lct are the Global / Local Color Tables: 256 (R, G, B) entries.
//
// TODO: 4 byte per pixel RGBA or BGRA instead of 3 bpp RGB?