From bdb312737d57497db67dda2543c7ea8b62315d0a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 7 May 2022 14:23:32 +0100 Subject: API: Store presence of global/local colour table in GIF/frame info. --- include/nsgif.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3