mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Add a gif.decoder buffer for uncompressed data
This commit is contained in:
1 parent
a6bf59006f
commit
2df6ea4b7a
3 files changed
+8
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user