Add a std/gif decoder.frame_count method

This commit is contained in:
Nigel Tao committed 2018-06-11 09:11:45 +10:00
1 parent c5b7b7097e
commit a09e63320d
4 files changed
+39

No files matched your search

+7
View File
@@ -484,6 +484,13 @@ bool do_test_wuffs_gif_decode_animated(
return false;
}
uint64_t got_num_frames = wuffs_gif__decoder__frame_count(&dec);
if (got_num_frames != want_num_frames) {
FAIL("frame_count: got %" PRIu64 ", want %" PRIu32, got_num_frames,
want_num_frames);
return false;
}
// TODO: test calling wuffs_base__image_buffer__loop.
return true;
}