diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-05-07 14:23:32 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-05-07 20:25:53 +0100 |
commit | bdb312737d57497db67dda2543c7ea8b62315d0a (patch) | |
tree | 0f52f7194027b527a3b7fbf0080cd738ba11af45 /include | |
parent | c40d6f536473c4ee5fd310b50697ac7d0816d6e5 (diff) | |
download | libnsgif-bdb312737d57497db67dda2543c7ea8b62315d0a.tar.gz libnsgif-bdb312737d57497db67dda2543c7ea8b62315d0a.tar.bz2 |
API: Store presence of global/local colour table in GIF/frame info.
Diffstat (limited to 'include')
-rw-r--r-- | include/nsgif.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/nsgif.h b/include/nsgif.h index 0ea792b..bd0fd58 100644 --- a/include/nsgif.h +++ b/include/nsgif.h @@ -360,6 +360,8 @@ typedef struct nsgif_info { int loop_max; /** background colour in same pixel format as \ref nsgif_bitmap_t. */ uint32_t background; + /** whether the GIF has a global colour table */ + bool colour_table; } nsgif_info_t; /** @@ -392,6 +394,8 @@ typedef struct nsgif_frame_info { bool display; /** whether the frame may have transparency */ bool transparency; + /** whether the frame has a local colour table */ + bool colour_table; /** Disposal method for previous frame; affects plotting */ uint8_t disposal; |