summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-05-07 14:25:58 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-05-07 20:25:53 +0100
commit2b93687087490cb5e760405709961a9abf8e205b (patch)
tree878638957daec8bf691f64939f7f2b11e64cca21 /test
parentbdb312737d57497db67dda2543c7ea8b62315d0a (diff)
downloadlibnsgif-2b93687087490cb5e760405709961a9abf8e205b.tar.gz
libnsgif-2b93687087490cb5e760405709961a9abf8e205b.tar.bz2
Test: Add local/global colour table to info output.
Diffstat (limited to 'test')
-rw-r--r--test/nsgif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/nsgif.c b/test/nsgif.c
index 61c63d0..a87ab69 100644
--- a/test/nsgif.c
+++ b/test/nsgif.c
@@ -142,6 +142,8 @@ static void print_gif_info(const nsgif_info_t *info)
fprintf(stdout, " height: %"PRIu32"\n", info->height);
fprintf(stdout, " max-loops: %"PRIu32"\n", info->loop_max);
fprintf(stdout, " frame-count: %"PRIu32"\n", info->frame_count);
+ fprintf(stdout, " global colour table: %s\n",
+ info->colour_table ? "yes" : "no");
fprintf(stdout, " background:\n");
fprintf(stdout, " red: 0x%"PRIx8"\n", bg[0]);
fprintf(stdout, " green: 0x%"PRIx8"\n", bg[1]);
@@ -154,6 +156,7 @@ static void print_gif_frame_info(const nsgif_frame_info_t *info, uint32_t i)
const char *disposal = nsgif_str_disposal(info->disposal);
fprintf(stdout, " - frame: %"PRIu32"\n", i);
+ fprintf(stdout, " local colour table: %s\n", info->colour_table ? "yes" : "no");
fprintf(stdout, " disposal-method: %s\n", disposal);
fprintf(stdout, " transparency: %s\n", info->transparency ? "yes" : "no");
fprintf(stdout, " display: %s\n", info->display ? "yes" : "no");