mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
Add a std/gif decoder.frame_count method
This commit is contained in:
1 parent
c5b7b7097e
commit
a09e63320d
4 files changed
+39
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user